3fdf0a656a
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/singularity/versions. These checks were done: - built on NixOS - ran `/nix/store/893zy5r9ih8lp9p24s9l198jdjdwadj4-singularity-2.4.5/bin/singularity -h` got 0 exit code - ran `/nix/store/893zy5r9ih8lp9p24s9l198jdjdwadj4-singularity-2.4.5/bin/singularity --help` got 0 exit code - ran `/nix/store/893zy5r9ih8lp9p24s9l198jdjdwadj4-singularity-2.4.5/bin/singularity help` got 0 exit code - ran `/nix/store/893zy5r9ih8lp9p24s9l198jdjdwadj4-singularity-2.4.5/bin/singularity -v` and found version 2.4.5 - found 2.4.5 with grep in /nix/store/893zy5r9ih8lp9p24s9l198jdjdwadj4-singularity-2.4.5 - directory tree listing: https://gist.github.com/f42298f39e3c1c4832de9817cc1fc5bf
62 lines
1.6 KiB
Nix
62 lines
1.6 KiB
Nix
{ stdenv
|
|
, fetchFromGitHub
|
|
, autoreconfHook
|
|
, gnutar
|
|
, which
|
|
, gnugrep
|
|
, coreutils
|
|
, python
|
|
, e2fsprogs
|
|
, makeWrapper
|
|
, squashfsTools
|
|
, gzip
|
|
, gnused
|
|
, curl
|
|
, utillinux
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "singularity-${version}";
|
|
version = "2.4.5";
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
patches = [ ./env.patch ];
|
|
|
|
preConfigure = ''
|
|
sed -i 's/-static//g' src/Makefile.am
|
|
patchShebangs .
|
|
'';
|
|
|
|
configureFlags = "--localstatedir=/var";
|
|
installFlags = "CONTAINER_MOUNTDIR=dummy CONTAINER_FINALDIR=dummy CONTAINER_OVERLAY=dummy SESSIONDIR=dummy";
|
|
|
|
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 = "0wz2in07197n5c2csww864nn2qmr925lqcjsd1kmlwwnrhq6lzl3";
|
|
};
|
|
|
|
nativeBuildInputs = [ autoreconfHook makeWrapper ];
|
|
buildInputs = [ coreutils gnugrep python e2fsprogs which gnutar squashfsTools gzip gnused curl utillinux ];
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = http://singularity.lbl.gov/;
|
|
description = "Designed around the notion of extreme mobility of compute and reproducible science, Singularity enables users to have full control of their operating system environment";
|
|
license = "BSD license with 2 modifications";
|
|
platforms = platforms.linux;
|
|
maintainers = [ maintainers.jbedo ];
|
|
};
|
|
}
|