fix running and building without devshell

This commit is contained in:
nek0 2024-10-05 23:25:42 +02:00
parent 57eb11a695
commit 6557a3496c

View file

@ -14,6 +14,10 @@
crateName = "fractals";
packageBuildInputs = with pkgs; [
SDL2
];
inherit (import "${crate2nix}/tools.nix" { inherit pkgs; })
generatedCargoNix;
@ -23,21 +27,8 @@
}) {
inherit pkgs;
defaultCrateOverrides = pkgs.defaultCrateOverrides // {
alsa-sys = attrs: {
nativeBuildInputs = [
pkgs.pkg-config
];
buildInputs = [
pkgs.alsa-lib.dev
];
};
libudev-sys = attrs: {
nativeBuildInputs = [
pkgs.pkg-config
];
buildInputs = [
pkgs.systemd.dev
];
${crateName} = attrs: {
buildInputs = packageBuildInputs;
};
};
};
@ -59,11 +50,9 @@
rust-analyzer
clippy
pkg-config
alsa-lib.dev
systemd.dev
SDL2
];
buildInputs = packageBuildInputs;
};
});
}