1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-03-06 23:31:34 +00:00

Merge pull request #51170 from eburimu/fix/cross-xfsprogs

xfsprogs: fix cross compilation
This commit is contained in:
John Ericson 2018-12-02 14:59:01 -05:00 committed by GitHub
commit 7beb1adcf5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 4 deletions

View file

@ -1,4 +1,6 @@
{ stdenv, fetchpatch, fetchgit, autoconf, automake, gettext, libtool, readline, utillinux, pkgconfig, icu }:
{ stdenv, buildPackages, fetchpatch, fetchgit, autoconf, automake, gettext, libtool, pkgconfig
, icu, libuuid, readline
}:
let
gentooPatch = name: sha256: fetchpatch {
@ -19,9 +21,13 @@ stdenv.mkDerivation rec {
outputs = [ "bin" "dev" "out" "doc" ];
nativeBuildInputs = [ autoconf automake libtool gettext pkgconfig ];
propagatedBuildInputs = [ utillinux ]; # Dev headers include <uuid/uuid.h>
depsBuildBuild = [ buildPackages.stdenv.cc ];
nativeBuildInputs = [
autoconf automake libtool gettext pkgconfig
libuuid # codegen tool uses libuuid
];
buildInputs = [ readline icu ];
propagatedBuildInputs = [ libuuid ]; # Dev headers include <uuid/uuid.h>
enableParallelBuilding = true;

View file

@ -6324,7 +6324,7 @@ with pkgs;
gnome_python = gnome2.gnome_python;
};
xfsprogs = callPackage ../tools/filesystems/xfsprogs { utillinux = utillinuxMinimal; };
xfsprogs = callPackage ../tools/filesystems/xfsprogs { };
libxfs = xfsprogs.dev;
xml2 = callPackage ../tools/text/xml/xml2 { };