diff options
author | Justin Bedo <cu@cua0.org> | 2019-06-18 12:05:42 +1000 |
---|---|---|
committer | Justin Bedo <cu@cua0.org> | 2019-06-18 12:05:42 +1000 |
commit | 086d5998dd575c30f5ee5638c5b853fe67f85eac (patch) | |
tree | fec6ecbf17ff10686151e6070e02a197e032b780 /pkgs/applications/virtualization/singularity/default.nix | |
parent | 348489c685d411e758f8c86ed35df350befb96ab (diff) |
singularity: 3.0.1 -> 3.2.1
Diffstat (limited to 'pkgs/applications/virtualization/singularity/default.nix')
-rw-r--r-- | pkgs/applications/virtualization/singularity/default.nix | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/pkgs/applications/virtualization/singularity/default.nix b/pkgs/applications/virtualization/singularity/default.nix index 12057c221e8f..8ec9ec6c8b49 100644 --- a/pkgs/applications/virtualization/singularity/default.nix +++ b/pkgs/applications/virtualization/singularity/default.nix @@ -15,13 +15,13 @@ with lib; buildGoPackage rec { name = "singularity-${version}"; - version = "3.0.1"; + version = "3.2.1"; src = fetchFromGitHub { owner = "sylabs"; repo = "singularity"; rev = "v${version}"; - sha256 = "1wpsd0il2ipa2n5cnbj8dzs095jycdryq2rx62kikbq7ahzz4fsi"; + sha256 = "14lhxwy21s7q081x7kbnvkjsbxgsg2f181qlzmlxcn6n7gfav3kj"; }; goPackagePath = "github.com/sylabs/singularity"; @@ -32,22 +32,16 @@ buildGoPackage rec { propagatedBuildInputs = [ coreutils squashfsTools ]; postConfigure = '' - find . -name vendor -type d -print0 | xargs -0 rm -rf - cd go/src/github.com/sylabs/singularity patchShebangs . - sed -i 's|defaultEnv := "/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin"|defaultEnv := "${stdenv.lib.makeBinPath propagatedBuildInputs}"|' src/cmd/singularity/cli/singularity.go + sed -i 's|defaultPath := "[^"]*"|defaultPath := "${stdenv.lib.makeBinPath propagatedBuildInputs}"|' cmd/internal/cli/actions.go ./mconfig -V ${version} -p $bin --localstatedir=/var - touch builddir/.dep-done - touch builddir/vendors-done # Don't install SUID binaries sed -i 's/-m 4755/-m 755/g' builddir/Makefile - # Point to base gopath - sed -i "s|^cni_vendor_GOPATH :=.*\$|cni_vendor_GOPATH := $NIX_BUILD_TOP/go/src/github.com/containernetworking/plugins/plugins|" builddir/Makefile ''; buildPhase = '' @@ -57,6 +51,7 @@ buildGoPackage rec { installPhase = '' make -C builddir install LOCALSTATEDIR=$bin/var chmod 755 $bin/libexec/singularity/bin/starter-suid + wrapProgram $bin/bin/singularity --prefix PATH : ${stdenv.lib.makeBinPath propagatedBuildInputs} ''; postFixup = '' |