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
14
packages/munix/default.nix
Normal file
14
packages/munix/default.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{ writeScriptBin, symlinkJoin, makeWrapper, muvm, passt, bubblewrap }:
|
||||
|
||||
let
|
||||
munixScript = (writeScriptBin "munix" (builtins.readFile ../../munix)).overrideAttrs(old: {
|
||||
buildCommand = "${old.buildCommand}\n patchShebangs $out";
|
||||
});
|
||||
in symlinkJoin {
|
||||
name = "munix";
|
||||
paths = [ munixScript muvm passt bubblewrap ];
|
||||
buildInputs = [ makeWrapper ];
|
||||
postBuild = ''
|
||||
wrapProgram $out/bin/munix --prefix PATH : $out/bin
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue