singularity: 2.2 -> 2.4
This commit is contained in:
@@ -1,20 +1,52 @@
|
||||
{ stdenv
|
||||
, fetchFromGitHub
|
||||
, autoreconfHook }:
|
||||
, autoreconfHook
|
||||
, gnutar
|
||||
, which
|
||||
, gnugrep
|
||||
, coreutils
|
||||
, python
|
||||
, e2fsprogs
|
||||
, makeWrapper
|
||||
, squashfsTools
|
||||
, gzip
|
||||
, gnused
|
||||
, curl
|
||||
, utillinux
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "singularity-${version}";
|
||||
version = "2.2";
|
||||
version = "2.4";
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
patches = [ ./env.patch ];
|
||||
|
||||
preConfigure = ''
|
||||
sed -i 's/-static//g' src/Makefile.am
|
||||
patchShebangs .
|
||||
'';
|
||||
|
||||
fixupPhase = ''
|
||||
patchShebangs $out
|
||||
for f in $out/libexec/singularity/helpers/help.sh $out/libexec/singularity/cli/*.exec $out/libexec/singularity/bootstrap-scripts/*.sh ; do
|
||||
chmod a+x $f
|
||||
sed -i 's| /sbin/| |g' $f
|
||||
sed -i 's| /bin/bash| ${stdenv.shell}|g' $f
|
||||
wrapProgram $f --prefix PATH : ${stdenv.lib.makeBinPath buildInputs}
|
||||
done
|
||||
'';
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "singularityware";
|
||||
repo = "singularity";
|
||||
rev = version;
|
||||
sha256 = "19g43gfdy5s8y4252474cp39d6ypn5dd37wp0s21fgd13vqy26px";
|
||||
sha256 = "1hi1ag1lb2x4djbz4x34wix83ymx0g9mzn2md6yrpiflc1d85rjz";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook ];
|
||||
buildInputs = [ ];
|
||||
nativeBuildInputs = [ autoreconfHook makeWrapper ];
|
||||
buildInputs = [ coreutils gnugrep python e2fsprogs which gnutar squashfsTools gzip gnused curl utillinux ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://singularity.lbl.gov/;
|
||||
|
||||
Reference in New Issue
Block a user