nixfmt-rfc-style
There is nothing in this commit except for the changes made by nix-shell -p nixfmt-rfc-style --run "nixfmt ." If this has mucked up your open branches then sorry about that. You can probably nixfmt them to match before merging
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
{ buildPackages
|
||||
, callPackage
|
||||
, pseudofile
|
||||
, runCommand
|
||||
, writeText
|
||||
} : filesystem :
|
||||
{
|
||||
buildPackages,
|
||||
callPackage,
|
||||
pseudofile,
|
||||
runCommand,
|
||||
writeText,
|
||||
}:
|
||||
filesystem:
|
||||
let
|
||||
pseudofiles = pseudofile.write "files.pf" filesystem;
|
||||
|
||||
@@ -14,12 +16,18 @@ let
|
||||
# the pseudofile will give us all the needed packages
|
||||
storeContents = [ pseudofiles ];
|
||||
};
|
||||
in runCommand "frob-squashfs" {
|
||||
nativeBuildInputs = with buildPackages; [ squashfsTools qprint ];
|
||||
} ''
|
||||
in
|
||||
runCommand "frob-squashfs"
|
||||
{
|
||||
nativeBuildInputs = with buildPackages; [
|
||||
squashfsTools
|
||||
qprint
|
||||
];
|
||||
}
|
||||
''
|
||||
cp ${storefs} ./store.img
|
||||
chmod +w store.img
|
||||
mksquashfs - store.img -exit-on-error -no-recovery -quiet -no-progress -root-becomes store -p "/ d 0755 0 0"
|
||||
mksquashfs - store.img -exit-on-error -no-recovery -quiet -no-progress -root-becomes nix -p "/ d 0755 0 0" -pf ${pseudofiles}
|
||||
cp store.img $out
|
||||
''
|
||||
''
|
||||
|
Reference in New Issue
Block a user