Merge pull request #109376 from B4dM4n/nixpart0-eval-error

nixpart0: stdenv.lib -> lib

authored by Sandro and committed by GitHub cbadccb0 e1ac6eba

+51 -51
+3 -3
pkgs/tools/filesystems/nixpart/0.4/blivet.nix
··· 1 # FIXME: Unify with pkgs/development/python-modules/blivet/default.nix. 2 3 - { lib, stdenv, fetchurl, buildPythonApplication, pykickstart, pyparted, pyblock 4 , libselinux, cryptsetup, multipath_tools, lsof, util-linux 5 , useNixUdev ? true, systemd ? null 6 # useNixUdev is here for bw compatibility ··· 30 sed -i -e 's|"lsof"|"${lsof}/bin/lsof"|' blivet/formats/fs.py 31 sed -i -r -e 's|"(u?mount)"|"${util-linux.bin}/bin/\1"|' blivet/util.py 32 sed -i -e '/find_library/,/find_library/ { 33 - c libudev = "${stdenv.lib.getLib systemd}/lib/libudev.so.1" 34 }' blivet/pyudev.py 35 ''; 36 37 propagatedBuildInputs = [ 38 pykickstart pyparted pyblock libselinux cryptsetup 39 - ] ++ stdenv.lib.optional useNixUdev systemd; 40 41 # tests are currently _heavily_ broken upstream 42 doCheck = false;
··· 1 # FIXME: Unify with pkgs/development/python-modules/blivet/default.nix. 2 3 + { lib, fetchurl, buildPythonApplication, pykickstart, pyparted, pyblock 4 , libselinux, cryptsetup, multipath_tools, lsof, util-linux 5 , useNixUdev ? true, systemd ? null 6 # useNixUdev is here for bw compatibility ··· 30 sed -i -e 's|"lsof"|"${lsof}/bin/lsof"|' blivet/formats/fs.py 31 sed -i -r -e 's|"(u?mount)"|"${util-linux.bin}/bin/\1"|' blivet/util.py 32 sed -i -e '/find_library/,/find_library/ { 33 + c libudev = "${lib.getLib systemd}/lib/libudev.so.1" 34 }' blivet/pyudev.py 35 ''; 36 37 propagatedBuildInputs = [ 38 pykickstart pyparted pyblock libselinux cryptsetup 39 + ] ++ lib.optional useNixUdev systemd; 40 41 # tests are currently _heavily_ broken upstream 42 doCheck = false;
+7 -7
pkgs/tools/filesystems/nixpart/0.4/cryptsetup.nix
··· 1 - { stdenv, fetchurl, fetchpatch, lvm2, libgcrypt, libuuid, pkgconfig, popt 2 , enablePython ? true, python ? null 3 }: 4 ··· 22 ]; 23 24 configureFlags = [ "--enable-cryptsetup-reencrypt" ] 25 - ++ stdenv.lib.optional enablePython "--enable-python"; 26 27 nativeBuildInputs = [ pkgconfig ]; 28 buildInputs = [ lvm2 libgcrypt libuuid popt ] 29 - ++ stdenv.lib.optional enablePython python; 30 31 - meta = { 32 homepage = "http://code.google.com/p/cryptsetup/"; 33 description = "LUKS for dm-crypt"; 34 - license = stdenv.lib.licenses.gpl2; 35 - maintainers = with stdenv.lib.maintainers; [ ]; 36 - platforms = with stdenv.lib.platforms; linux; 37 }; 38 }
··· 1 + { lib, stdenv, fetchurl, fetchpatch, lvm2, libgcrypt, libuuid, pkgconfig, popt 2 , enablePython ? true, python ? null 3 }: 4 ··· 22 ]; 23 24 configureFlags = [ "--enable-cryptsetup-reencrypt" ] 25 + ++ lib.optional enablePython "--enable-python"; 26 27 nativeBuildInputs = [ pkgconfig ]; 28 buildInputs = [ lvm2 libgcrypt libuuid popt ] 29 + ++ lib.optional enablePython python; 30 31 + meta = with lib; { 32 homepage = "http://code.google.com/p/cryptsetup/"; 33 description = "LUKS for dm-crypt"; 34 + license = licenses.gpl2; 35 + maintainers = with maintainers; [ ]; 36 + platforms = with platforms; linux; 37 }; 38 }
+9 -9
pkgs/tools/filesystems/nixpart/0.4/default.nix
··· 10 11 let 12 blivet = import ./blivet.nix { 13 - inherit stdenv fetchurl buildPythonApplication; 14 inherit pykickstart pyparted pyblock cryptsetup libselinux multipath_tools; 15 inherit useNixUdev; 16 inherit (pkgs) lsof util-linux systemd; 17 }; 18 19 cryptsetup = import ./cryptsetup.nix { 20 - inherit stdenv fetchurl python; 21 inherit (pkgs) fetchpatch pkgconfig libgcrypt libuuid popt lvm2; 22 }; 23 24 dmraid = import ./dmraid.nix { 25 - inherit stdenv fetchurl lvm2; 26 }; 27 28 lvm2 = import ./lvm2.nix { 29 - inherit stdenv fetchurl; 30 inherit (pkgs) fetchpatch pkgconfig util-linux systemd coreutils; 31 }; 32 33 multipath_tools = import ./multipath-tools.nix { 34 - inherit stdenv fetchurl lvm2; 35 inherit (pkgs) fetchpatch readline systemd libaio gzip; 36 }; 37 38 parted = import ./parted.nix { 39 - inherit stdenv fetchurl; 40 inherit (pkgs) fetchpatch util-linux readline libuuid gettext check lvm2; 41 }; 42 43 pyblock = import ./pyblock.nix { 44 - inherit stdenv fetchurl python lvm2 dmraid; 45 }; 46 47 pykickstart = import ./pykickstart.nix { 48 - inherit stdenv fetchurl python buildPythonApplication urlgrabber; 49 }; 50 51 pyparted = import ./pyparted.nix { 52 - inherit stdenv fetchurl python buildPythonApplication parted; 53 inherit (pkgs) pkgconfig e2fsprogs; 54 }; 55
··· 10 11 let 12 blivet = import ./blivet.nix { 13 + inherit lib fetchurl buildPythonApplication; 14 inherit pykickstart pyparted pyblock cryptsetup libselinux multipath_tools; 15 inherit useNixUdev; 16 inherit (pkgs) lsof util-linux systemd; 17 }; 18 19 cryptsetup = import ./cryptsetup.nix { 20 + inherit lib stdenv fetchurl python; 21 inherit (pkgs) fetchpatch pkgconfig libgcrypt libuuid popt lvm2; 22 }; 23 24 dmraid = import ./dmraid.nix { 25 + inherit lib stdenv fetchurl lvm2; 26 }; 27 28 lvm2 = import ./lvm2.nix { 29 + inherit lib stdenv fetchurl; 30 inherit (pkgs) fetchpatch pkgconfig util-linux systemd coreutils; 31 }; 32 33 multipath_tools = import ./multipath-tools.nix { 34 + inherit lib stdenv fetchurl lvm2; 35 inherit (pkgs) fetchpatch readline systemd libaio gzip; 36 }; 37 38 parted = import ./parted.nix { 39 + inherit lib stdenv fetchurl; 40 inherit (pkgs) fetchpatch util-linux readline libuuid gettext check lvm2; 41 }; 42 43 pyblock = import ./pyblock.nix { 44 + inherit lib stdenv fetchurl python lvm2 dmraid; 45 }; 46 47 pykickstart = import ./pykickstart.nix { 48 + inherit lib fetchurl python buildPythonApplication urlgrabber; 49 }; 50 51 pyparted = import ./pyparted.nix { 52 + inherit lib stdenv fetchurl python buildPythonApplication parted; 53 inherit (pkgs) pkgconfig e2fsprogs; 54 }; 55
+4 -4
pkgs/tools/filesystems/nixpart/0.4/dmraid.nix
··· 1 - { stdenv, fetchurl, lvm2 }: 2 3 stdenv.mkDerivation rec { 4 name = "dmraid-1.0.0.rc15"; ··· 12 13 buildInputs = [ lvm2 ]; 14 15 - meta = { 16 description = "Old-style RAID configuration utility"; 17 longDescription = '' 18 Old RAID configuration utility (still under development, though). ··· 20 its volumes. May be needed for rescuing an older system or nuking 21 the metadata when reformatting. 22 ''; 23 - maintainers = [ stdenv.lib.maintainers.raskin ]; 24 - platforms = stdenv.lib.platforms.linux; 25 }; 26 }
··· 1 + { lib, stdenv, fetchurl, lvm2 }: 2 3 stdenv.mkDerivation rec { 4 name = "dmraid-1.0.0.rc15"; ··· 12 13 buildInputs = [ lvm2 ]; 14 15 + meta = with lib; { 16 description = "Old-style RAID configuration utility"; 17 longDescription = '' 18 Old RAID configuration utility (still under development, though). ··· 20 its volumes. May be needed for rescuing an older system or nuking 21 the metadata when reformatting. 22 ''; 23 + maintainers = [ maintainers.raskin ]; 24 + platforms = platforms.linux; 25 }; 26 }
+3 -3
pkgs/tools/filesystems/nixpart/0.4/lvm2.nix
··· 1 - { stdenv, fetchurl, fetchpatch, pkgconfig, systemd, util-linux, coreutils }: 2 3 let 4 v = "2.02.106"; ··· 68 cp scripts/lvm2_activation_generator_systemd_red_hat $out/lib/systemd/system-generators 69 ''; 70 71 - meta = { 72 homepage = "http://sourceware.org/lvm2/"; 73 description = "Tools to support Logical Volume Management (LVM) on Linux"; 74 - platforms = stdenv.lib.platforms.linux; 75 }; 76 }
··· 1 + { lib, stdenv, fetchurl, fetchpatch, pkgconfig, systemd, util-linux, coreutils }: 2 3 let 4 v = "2.02.106"; ··· 68 cp scripts/lvm2_activation_generator_systemd_red_hat $out/lib/systemd/system-generators 69 ''; 70 71 + meta = with lib; { 72 homepage = "http://sourceware.org/lvm2/"; 73 description = "Tools to support Logical Volume Management (LVM) on Linux"; 74 + platforms = platforms.linux; 75 }; 76 }
+5 -5
pkgs/tools/filesystems/nixpart/0.4/multipath-tools.nix
··· 1 # FIXME: unify with pkgs/os-specific/linux/multipath-tools/default.nix. 2 3 - { stdenv, fetchurl, fetchpatch, lvm2, libaio, gzip, readline, systemd }: 4 5 stdenv.mkDerivation rec { 6 name = "multipath-tools-0.4.9"; ··· 36 substituteInPlace kpartx/kpartx.rules --replace /sbin/kpartx $out/sbin/kpartx 37 substituteInPlace kpartx/kpartx_id --replace /sbin/dmsetup ${lvm2}/sbin/dmsetup 38 39 - substituteInPlace libmultipath/defaults.h --replace /lib/udev/scsi_id ${stdenv.lib.getLib systemd}/lib/udev/scsi_id 40 - substituteInPlace libmultipath/hwtable.c --replace /lib/udev/scsi_id ${stdenv.lib.getLib systemd}/lib/udev/scsi_id 41 42 sed -i -re ' 43 s,^( *#define +DEFAULT_MULTIPATHDIR\>).*,\1 "'"$out/lib/multipath"'", ··· 45 46 ''; 47 48 - meta = { 49 description = "Tools for the Linux multipathing driver"; 50 homepage = "http://christophe.varoqui.free.fr/"; 51 - platforms = stdenv.lib.platforms.linux; 52 }; 53 }
··· 1 # FIXME: unify with pkgs/os-specific/linux/multipath-tools/default.nix. 2 3 + { lib, stdenv, fetchurl, fetchpatch, lvm2, libaio, gzip, readline, systemd }: 4 5 stdenv.mkDerivation rec { 6 name = "multipath-tools-0.4.9"; ··· 36 substituteInPlace kpartx/kpartx.rules --replace /sbin/kpartx $out/sbin/kpartx 37 substituteInPlace kpartx/kpartx_id --replace /sbin/dmsetup ${lvm2}/sbin/dmsetup 38 39 + substituteInPlace libmultipath/defaults.h --replace /lib/udev/scsi_id ${lib.getLib systemd}/lib/udev/scsi_id 40 + substituteInPlace libmultipath/hwtable.c --replace /lib/udev/scsi_id ${lib.getLib systemd}/lib/udev/scsi_id 41 42 sed -i -re ' 43 s,^( *#define +DEFAULT_MULTIPATHDIR\>).*,\1 "'"$out/lib/multipath"'", ··· 45 46 ''; 47 48 + meta = with lib; { 49 description = "Tools for the Linux multipathing driver"; 50 homepage = "http://christophe.varoqui.free.fr/"; 51 + platforms = platforms.linux; 52 }; 53 }
+9 -9
pkgs/tools/filesystems/nixpart/0.4/parted.nix
··· 1 - { stdenv, fetchurl, fetchpatch, lvm2, libuuid, gettext, readline 2 , util-linux, check 3 , enableStatic ? stdenv.hostPlatform.isStatic 4 }: ··· 21 ]; 22 23 buildInputs = [ libuuid ] 24 - ++ stdenv.lib.optional (readline != null) readline 25 - ++ stdenv.lib.optional (gettext != null) gettext 26 - ++ stdenv.lib.optional (lvm2 != null) lvm2; 27 28 configureFlags = 29 (if (readline != null) 30 then [ "--with-readline" ] 31 else [ "--without-readline" ]) 32 - ++ stdenv.lib.optional (lvm2 == null) "--disable-device-mapper" 33 - ++ stdenv.lib.optional enableStatic "--enable-static"; 34 35 doCheck = true; 36 checkInputs = [ check util-linux ]; 37 38 - meta = { 39 description = "Create, destroy, resize, check, and copy partitions"; 40 41 longDescription = '' ··· 49 ''; 50 51 homepage = "https://www.gnu.org/software/parted/"; 52 - license = stdenv.lib.licenses.gpl3Plus; 53 54 maintainers = [ 55 # Add your name here! 56 ]; 57 58 # GNU Parted requires libuuid, which is part of util-linux-ng. 59 - platforms = stdenv.lib.platforms.linux; 60 }; 61 }
··· 1 + { lib,stdenv, fetchurl, fetchpatch, lvm2, libuuid, gettext, readline 2 , util-linux, check 3 , enableStatic ? stdenv.hostPlatform.isStatic 4 }: ··· 21 ]; 22 23 buildInputs = [ libuuid ] 24 + ++ lib.optional (readline != null) readline 25 + ++ lib.optional (gettext != null) gettext 26 + ++ lib.optional (lvm2 != null) lvm2; 27 28 configureFlags = 29 (if (readline != null) 30 then [ "--with-readline" ] 31 else [ "--without-readline" ]) 32 + ++ lib.optional (lvm2 == null) "--disable-device-mapper" 33 + ++ lib.optional enableStatic "--enable-static"; 34 35 doCheck = true; 36 checkInputs = [ check util-linux ]; 37 38 + meta = with lib; { 39 description = "Create, destroy, resize, check, and copy partitions"; 40 41 longDescription = '' ··· 49 ''; 50 51 homepage = "https://www.gnu.org/software/parted/"; 52 + license = licenses.gpl3Plus; 53 54 maintainers = [ 55 # Add your name here! 56 ]; 57 58 # GNU Parted requires libuuid, which is part of util-linux-ng. 59 + platforms = platforms.linux; 60 }; 61 }
+3 -3
pkgs/tools/filesystems/nixpart/0.4/pyblock.nix
··· 1 - { stdenv, fetchurl, python, lvm2, dmraid }: 2 3 stdenv.mkDerivation rec { 4 pname = "pyblock"; ··· 29 "SITELIB=$(out)/lib/${python.libPrefix}/site-packages" 30 ]; 31 32 - meta = { 33 description = "Interface for working with block devices"; 34 - license = stdenv.lib.licenses.gpl2Plus; 35 }; 36 }
··· 1 + { lib, stdenv, fetchurl, python, lvm2, dmraid }: 2 3 stdenv.mkDerivation rec { 4 pname = "pyblock"; ··· 29 "SITELIB=$(out)/lib/${python.libPrefix}/site-packages" 30 ]; 31 32 + meta = with lib; { 33 description = "Interface for working with block devices"; 34 + license = licenses.gpl2Plus; 35 }; 36 }
+3 -3
pkgs/tools/filesystems/nixpart/0.4/pykickstart.nix
··· 1 - { stdenv, python, buildPythonApplication, fetchurl, urlgrabber }: 2 3 buildPythonApplication rec { 4 pname = "pykickstart"; ··· 22 ${python}/bin/${python.executable} tests/baseclass.py -vv 23 ''; 24 25 - meta = { 26 homepage = "http://fedoraproject.org/wiki/Pykickstart"; 27 description = "Read and write Fedora kickstart files"; 28 - license = stdenv.lib.licenses.gpl2Plus; 29 }; 30 }
··· 1 + { lib, python, buildPythonApplication, fetchurl, urlgrabber }: 2 3 buildPythonApplication rec { 4 pname = "pykickstart"; ··· 22 ${python}/bin/${python.executable} tests/baseclass.py -vv 23 ''; 24 25 + meta = with lib; { 26 homepage = "http://fedoraproject.org/wiki/Pykickstart"; 27 description = "Read and write Fedora kickstart files"; 28 + license = licenses.gpl2Plus; 29 }; 30 }
+5 -5
pkgs/tools/filesystems/nixpart/0.4/pyparted.nix
··· 1 - { stdenv, fetchurl, pkgconfig, python, buildPythonApplication, parted, e2fsprogs }: 2 3 buildPythonApplication rec { 4 pname = "pyparted"; ··· 14 sed -i -e ' 15 s|e\.path\.startswith("/tmp/temp-device-")|"temp-device-" in e.path| 16 ' tests/test__ped_ped.py 17 - '' + stdenv.lib.optionalString stdenv.isi686 '' 18 # remove some integers in this test case which overflow on 32bit systems 19 sed -i -r -e '/class *UnitGetSizeTestCase/,/^$/{/[0-9]{11}/d}' \ 20 tests/test__ped_ped.py ··· 33 make test PYTHON=${python.executable} 34 ''; 35 36 - meta = { 37 homepage = "https://fedorahosted.org/pyparted/"; 38 description = "Python interface for libparted"; 39 - license = stdenv.lib.licenses.gpl2Plus; 40 - platforms = stdenv.lib.platforms.linux; 41 }; 42 }
··· 1 + { lib, stdenv, fetchurl, pkgconfig, python, buildPythonApplication, parted, e2fsprogs }: 2 3 buildPythonApplication rec { 4 pname = "pyparted"; ··· 14 sed -i -e ' 15 s|e\.path\.startswith("/tmp/temp-device-")|"temp-device-" in e.path| 16 ' tests/test__ped_ped.py 17 + '' + lib.optionalString stdenv.isi686 '' 18 # remove some integers in this test case which overflow on 32bit systems 19 sed -i -r -e '/class *UnitGetSizeTestCase/,/^$/{/[0-9]{11}/d}' \ 20 tests/test__ped_ped.py ··· 33 make test PYTHON=${python.executable} 34 ''; 35 36 + meta = with lib; { 37 homepage = "https://fedorahosted.org/pyparted/"; 38 description = "Python interface for libparted"; 39 + license = licenses.gpl2Plus; 40 + platforms = platforms.linux; 41 }; 42 }