diff options
author | Dmitry Bogatov <serenity@kaction.cc> | 2022-11-24 18:38:15 -0500 |
---|---|---|
committer | Dmitry Bogatov <serenity@kaction.cc> | 2022-11-24 18:38:52 -0500 |
commit | c4d336b239c982c11c0354ae27ceb65375261387 (patch) | |
tree | 53a02a4301b5edb06382632139c5968b95066949 /pkgs/tools/misc/xstow | |
parent | 2da473132f8a6ccce1c70c33ad19c023431faa51 (diff) |
pkgsStatic.xstow: fix undefined reference error
Diffstat (limited to 'pkgs/tools/misc/xstow')
-rw-r--r-- | pkgs/tools/misc/xstow/default.nix | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/pkgs/tools/misc/xstow/default.nix b/pkgs/tools/misc/xstow/default.nix index 079f4e67579d0..c46bef50caf25 100644 --- a/pkgs/tools/misc/xstow/default.nix +++ b/pkgs/tools/misc/xstow/default.nix @@ -1,4 +1,4 @@ -{ stdenv, lib, fetchurl, ncurses }: +{ stdenv, lib, fetchurl, ncurses, autoreconfHook }: stdenv.mkDerivation rec { pname = "xstow"; version = "1.1.0"; @@ -8,6 +8,16 @@ stdenv.mkDerivation rec { sha256 = "sha256-wXQ5XSmogAt1torfarrqIU4nBYj69MGM/HBYqeIE+dw="; }; + nativeBuildInputs = [ autoreconfHook ]; + + # Upstream seems to try to support building both static and dynamic version + # of executable on dynamic systems, but fails with link error when attempting + # to cross-build "xstow-static" to the system where "xstow" proper is static. + postPatch = lib.optionalString stdenv.hostPlatform.isStatic '' + substituteInPlace src/Makefile.am --replace xstow-static "" + substituteInPlace src/Makefile.am --replace xstow-stow "" + ''; + buildInputs = [ ncurses ]; |