mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
singularity-tools: drop override argument storeDir
This commit is contained in:
parent
c2fa248bca
commit
d3692ddf54
@ -124,6 +124,8 @@
|
||||
Processes also now run as a dynamically allocated user by default instead of
|
||||
root.
|
||||
|
||||
- `singularity-tools` have the `storeDir` argument removed from its override interface and use `builtins.storeDir` instead.
|
||||
|
||||
- The `budgie` and `budgiePlugins` scope have been removed and their packages
|
||||
moved into the top level scope (i.e., `budgie.budgie-desktop` is now
|
||||
`budgie-desktop`)
|
||||
|
@ -13,7 +13,6 @@
|
||||
bashInteractive,
|
||||
runtimeShell,
|
||||
singularity,
|
||||
storeDir ? builtins.storeDir,
|
||||
}:
|
||||
|
||||
let
|
||||
@ -83,10 +82,10 @@ rec {
|
||||
|
||||
# Run root script
|
||||
${lib.optionalString (runAsRoot != null) ''
|
||||
mkdir -p ./${storeDir}
|
||||
mount --rbind ${storeDir} ./${storeDir}
|
||||
mkdir -p ./${builtins.storeDir}
|
||||
mount --rbind "${builtins.storeDir}" ./${builtins.storeDir}
|
||||
unshare -imnpuf --mount-proc chroot ./ ${runAsRootFile}
|
||||
umount -R ./${storeDir}
|
||||
umount -R ./${builtins.storeDir}
|
||||
''}
|
||||
|
||||
# Build /bin and copy across closure
|
||||
|
Loading…
Reference in New Issue
Block a user