flake.nix: extract packages/devshells/modules into smaller files
This commit is contained in:
parent
6f7f3f2461
commit
505e85b9c5
9 changed files with 360 additions and 323 deletions
16
devShells/default.nix
Normal file
16
devShells/default.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{ mkShell, lib, systemd, cargo, rust-analyzer, rustfmt, passt, bubblewrap, libkrun, muvm }:
|
||||
|
||||
let
|
||||
projects = [ libkrun muvm ];
|
||||
in mkShell {
|
||||
MUVM_UDEVD_PATH = "${systemd}/lib/systemd/systemd-udevd";
|
||||
nativeBuildInputs = lib.concatMap (pkg: pkg.nativeBuildInputs) projects;
|
||||
buildInputs = (lib.concatMap (pkg: pkg.buildInputs) projects) ++ [
|
||||
# virglrenderer
|
||||
cargo
|
||||
rust-analyzer
|
||||
rustfmt
|
||||
passt
|
||||
bubblewrap
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue