From 1563671e88336c7b2c93879167675fcd1043a6c6 Mon Sep 17 00:00:00 2001 From: Jan Malakhovski Date: Wed, 8 Aug 2018 21:35:34 +0000 Subject: parted: use checkInputs --- pkgs/tools/misc/parted/default.nix | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'pkgs/tools/misc') diff --git a/pkgs/tools/misc/parted/default.nix b/pkgs/tools/misc/parted/default.nix index 6649db4c48da..643a3bafc66f 100644 --- a/pkgs/tools/misc/parted/default.nix +++ b/pkgs/tools/misc/parted/default.nix @@ -23,7 +23,7 @@ stdenv.mkDerivation rec { sha256 = "0i29lfg8cwj342q5s7qwqhncz2bkifj5rjc7cx6jd4zqb6ykkndj"; }); - postPatch = stdenv.lib.optionalString doCheck '' + postPatch = '' patchShebangs tests ''; @@ -31,8 +31,7 @@ stdenv.mkDerivation rec { ++ stdenv.lib.optional (readline != null) readline ++ stdenv.lib.optional (gettext != null) gettext ++ stdenv.lib.optional (lvm2 != null) lvm2 - ++ stdenv.lib.optional (hurd != null) hurd - ++ stdenv.lib.optionals doCheck [ check perl python2 ]; + ++ stdenv.lib.optional (hurd != null) hurd; configureFlags = (if (readline != null) @@ -45,10 +44,7 @@ stdenv.mkDerivation rec { # That should hopefully be fixed now. doCheck = !stdenv.hostPlatform.isMusl; /* translation test */ - preCheck = - stdenv.lib.optionalString doCheck - # The `t0400-loop-clobber-infloop.sh' test wants `mkswap'. - "export PATH=\"${utillinux}/sbin:$PATH\""; + checkInputs = [ check perl python2 utillinux ]; meta = { description = "Create, destroy, resize, check, and copy partitions"; -- cgit 1.4.1