diff options
author | Rick van Schijndel <rol3517@gmail.com> | 2021-07-29 20:58:15 +0200 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2021-07-30 19:23:42 +0200 |
commit | e95d10eeab61954ef55070d9b9914bb9ec0bbc2a (patch) | |
tree | 55860e244c9d0e8928e9440ed005628d5f2d040a | |
parent | 09c573b5b09dbad3da18f9b315c1e4a352f59cb9 (diff) | |
download | nixpkgs-e95d10eeab61954ef55070d9b9914bb9ec0bbc2a.tar nixpkgs-e95d10eeab61954ef55070d9b9914bb9ec0bbc2a.tar.gz nixpkgs-e95d10eeab61954ef55070d9b9914bb9ec0bbc2a.tar.bz2 nixpkgs-e95d10eeab61954ef55070d9b9914bb9ec0bbc2a.tar.lz nixpkgs-e95d10eeab61954ef55070d9b9914bb9ec0bbc2a.tar.xz nixpkgs-e95d10eeab61954ef55070d9b9914bb9ec0bbc2a.tar.zst nixpkgs-e95d10eeab61954ef55070d9b9914bb9ec0bbc2a.zip |
newt: support cross-compilation
-rw-r--r-- | pkgs/development/libraries/newt/default.nix | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/pkgs/development/libraries/newt/default.nix b/pkgs/development/libraries/newt/default.nix index dc6b604bd8e..7b5316b144a 100644 --- a/pkgs/development/libraries/newt/default.nix +++ b/pkgs/development/libraries/newt/default.nix @@ -12,16 +12,21 @@ stdenv.mkDerivation rec { sha256 = "0cdvbancr7y4nrj8257y5n45hmhizr8isynagy4fpsnpammv8pi6"; }; - patchPhase = '' + postPatch = '' sed -i -e s,/usr/bin/install,install, -e s,-I/usr/include/slang,, Makefile.in po/Makefile substituteInPlace configure \ --replace "/usr/include/python" "${pythonIncludePath}" substituteInPlace configure.ac \ --replace "/usr/include/python" "${pythonIncludePath}" + + substituteInPlace Makefile.in \ + --replace "ar rv" "${stdenv.cc.targetPrefix}ar rv" ''; - buildInputs = [ slang popt python ]; + strictDeps = true; + nativeBuildInputs = [ python ]; + buildInputs = [ slang popt ]; NIX_LDFLAGS = "-lncurses"; |