git.iko.soy/typeable/nixpkgs
on master help sign in
wmname: fix cross-compilation
commit72dbc9005ec54e47d05860122ff52c4d69b4d754 authorNikolay Korotkiy <sikmir@gmail.com> dateSat 13 Nov 2021, 15:33 (5 years ago) parentd2972ca
1 file changed+7−1
pkgs/applications/misc/wmname/default.nix+7−1
pkgs/applications/misc/wmname/default.nix+7−1
@@ -9,9 +9,15 @@ stdenv.mkDerivation rec {
99 sha256 = "559ad188b2913167dcbb37ecfbb7ed474a7ec4bbcb0129d8d5d08cb9208d02c5";
1010 };
1111
12+ postPatch = ''
13+ substituteInPlace Makefile --replace "@strip" "#@strip"
14+ '';
15+
1216 buildInputs = [ libX11 ];
1317
14− preConfigure = ''sed -i "s@PREFIX = /usr/local@PREFIX = $out@g" config.mk'';
18+ makeFlags = [ "CC:=$(CC)" ];
19+
20+ installFlags = [ "PREFIX=$(out)" ];
1521
1622 meta = {
1723 description = "Prints or set the window manager name property of the root window";