wmname: fix cross-compilation

main
Nikolay Korotkiy 3 years ago
parent d2972cac85
commit 72dbc9005e
No known key found for this signature in database
GPG Key ID: D1DE6D7F693663A5
  1. 8
      pkgs/applications/misc/wmname/default.nix

@ -9,9 +9,15 @@ stdenv.mkDerivation rec {
sha256 = "559ad188b2913167dcbb37ecfbb7ed474a7ec4bbcb0129d8d5d08cb9208d02c5";
};
postPatch = ''
substituteInPlace Makefile --replace "@strip" "#@strip"
'';
buildInputs = [ libX11 ];
preConfigure = ''sed -i "s@PREFIX = /usr/local@PREFIX = $out@g" config.mk'';
makeFlags = [ "CC:=$(CC)" ];
installFlags = [ "PREFIX=$(out)" ];
meta = {
description = "Prints or set the window manager name property of the root window";

Loading…
Cancel
Save