diff options
author | Vladimír Čunát <vcunat@gmail.com> | 2015-04-19 13:29:53 +0200 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2015-04-19 15:16:05 +0200 |
commit | fc206609451ca5888b1f6e54c7a6c7e83270a26d (patch) | |
tree | cb4b5ee08c21b685bb549697678e187acbe1ba3a /pkgs/os-specific/linux/util-linux | |
parent | e392e3aabe8100b0955fee6c08af19b437f4bff9 (diff) | |
download | nixlib-fc206609451ca5888b1f6e54c7a6c7e83270a26d.tar nixlib-fc206609451ca5888b1f6e54c7a6c7e83270a26d.tar.gz nixlib-fc206609451ca5888b1f6e54c7a6c7e83270a26d.tar.bz2 nixlib-fc206609451ca5888b1f6e54c7a6c7e83270a26d.tar.lz nixlib-fc206609451ca5888b1f6e54c7a6c7e83270a26d.tar.xz nixlib-fc206609451ca5888b1f6e54c7a6c7e83270a26d.tar.zst nixlib-fc206609451ca5888b1f6e54c7a6c7e83270a26d.zip |
util-linux, e2fsprogs: fixup multiple outputs
Also revert back to using util-linux as the default libuuid provider, and make e2fsprogs use shared libs from util-linux.
Diffstat (limited to 'pkgs/os-specific/linux/util-linux')
-rw-r--r-- | pkgs/os-specific/linux/util-linux/default.nix | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/pkgs/os-specific/linux/util-linux/default.nix b/pkgs/os-specific/linux/util-linux/default.nix index c4ccd6d37f8a..82c1ec120bdd 100644 --- a/pkgs/os-specific/linux/util-linux/default.nix +++ b/pkgs/os-specific/linux/util-linux/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, zlib, ncurses ? null, perl ? null, pam }: +{ stdenv, fetchurl, pkgconfig, zlib, ncurses ? null, perl ? null, pam }: stdenv.mkDerivation rec { name = "util-linux-2.26.1"; @@ -10,7 +10,10 @@ stdenv.mkDerivation rec { patches = [ ./rtcwake-search-PATH-for-shutdown.patch ]; - outputs = [ "dev" "out" "bin" ]; # ToDo: problems with e2fsprogs + + outputs = [ "bin" "out" "man" ]; # TODO: $bin is kept the first for now + # due to lots of ${utillinux}/bin occurences and headers being rather small + outputDev = "bin"; #FIXME: make it also work on non-nixos? @@ -41,13 +44,13 @@ stdenv.mkDerivation rec { makeFlags = "usrbin_execdir=$(bin)/bin usrsbin_execdir=$(bin)/sbin"; + nativeBuildInputs = [ pkgconfig ]; buildInputs = [ zlib pam ] ++ stdenv.lib.optional (ncurses != null) ncurses ++ stdenv.lib.optional (perl != null) perl; postInstall = '' - sed "s,$out$out,$out,g" -i "$dev"/lib/pkgconfig/*.pc rm "$bin/bin/su" # su should be supplied by the su package (shadow) ''; @@ -60,4 +63,3 @@ stdenv.mkDerivation rec { platforms = platforms.linux; }; } - |