nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

Select the types of activity you want to include in your feed.

at release-19.03 42 lines 1.4 kB view raw
1{ stdenv, fetchFromGitHub, proot, patchelf, fakechroot, runc, simplejson, pycurl, coreutils, nose, mock, buildPythonApplication }: 2 3buildPythonApplication rec { 4 5 version = "1.1.1"; 6 pname = "udocker"; 7 8 src = fetchFromGitHub rec { 9 owner = "indigo-dc"; 10 repo = "udocker" ; 11 rev = "v${version}"; 12 sha256 = "134xk7rfj0xki9znryk5qf1nsfa318ahrrsi1k6ia7kipp7i3hb4"; 13 }; 14 15 buildInputs = [ proot patchelf fakechroot runc simplejson pycurl coreutils ]; 16 17 postPatch = '' 18 substituteInPlace udocker.py --replace /usr/sbin:/sbin:/usr/bin:/bin $PATH 19 substituteInPlace udocker.py --replace /bin/chmod ${coreutils}/bin/chmod 20 substituteInPlace udocker.py --replace /bin/rm ${coreutils}/bin/rm 21 substituteInPlace tests/unit_tests.py --replace /bin/rm ${coreutils}/bin/rm 22 substituteInPlace udocker.py --replace "autoinstall = True" "autoinstall = False" 23 ''; 24 25 checkInputs = [ 26 nose 27 mock 28 ]; 29 30 checkPhase = '' 31 NOSE_EXCLUDE=test_03_create_repo,test_04_is_repo,test_02__get_group_from_host nosetests -v tests/unit_tests.py 32 ''; 33 34 meta = with stdenv.lib; { 35 description = "basic user tool to execute simple docker containers in user space without root privileges"; 36 homepage = https://indigo-dc.gitbooks.io/udocker; 37 license = licenses.asl20; 38 maintainers = [ maintainers.bzizou ]; 39 platforms = platforms.linux; 40 }; 41 42}