commit
274d4eaa00
37
pkgs/tools/virtualization/udocker/default.nix
Normal file
37
pkgs/tools/virtualization/udocker/default.nix
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
{ stdenv, fetchFromGitHub, proot, patchelf, fakechroot, runc, simplejson, pycurl, coreutils, nose, mock, buildPythonApplication }:
|
||||||
|
|
||||||
|
buildPythonApplication rec {
|
||||||
|
|
||||||
|
version = "1.1.1";
|
||||||
|
pname = "udocker";
|
||||||
|
|
||||||
|
src = fetchFromGitHub rec {
|
||||||
|
owner = "indigo-dc";
|
||||||
|
repo = "udocker" ;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "134xk7rfj0xki9znryk5qf1nsfa318ahrrsi1k6ia7kipp7i3hb4";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ proot patchelf fakechroot runc simplejson pycurl coreutils nose mock ];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace udocker.py --replace /usr/sbin:/sbin:/usr/bin:/bin $PATH
|
||||||
|
substituteInPlace udocker.py --replace /bin/chmod ${coreutils}/bin/chmod
|
||||||
|
substituteInPlace udocker.py --replace /bin/rm ${coreutils}/bin/rm
|
||||||
|
substituteInPlace tests/unit_tests.py --replace /bin/rm ${coreutils}/bin/rm
|
||||||
|
substituteInPlace udocker.py --replace "autoinstall = True" "autoinstall = False"
|
||||||
|
'';
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
NOSE_EXCLUDE=test_03_create_repo,test_04_is_repo,test_02__get_group_from_host nosetests -v tests/unit_tests.py
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "basic user tool to execute simple docker containers in user space without root privileges";
|
||||||
|
homepage = https://www.gitbook.com/book/indigo-dc/udocker;
|
||||||
|
license = licenses.asl20;
|
||||||
|
maintainers = [ maintainers.bzizou ];
|
||||||
|
platforms = platforms.linux;
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
@ -17459,6 +17459,8 @@ with pkgs;
|
|||||||
|
|
||||||
umurmur = callPackage ../applications/networking/umurmur { };
|
umurmur = callPackage ../applications/networking/umurmur { };
|
||||||
|
|
||||||
|
udocker = pythonPackages.callPackage ../tools/virtualization/udocker { };
|
||||||
|
|
||||||
unigine-valley = callPackage ../applications/graphics/unigine-valley { };
|
unigine-valley = callPackage ../applications/graphics/unigine-valley { };
|
||||||
|
|
||||||
inherit (ocamlPackages) unison;
|
inherit (ocamlPackages) unison;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user