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