From 24c9cd84c2e5d244b88b805b85b20512af37325d Mon Sep 17 00:00:00 2001 From: Nikolay Korotkiy Date: Sat, 13 Nov 2021 15:34:17 +0300 Subject: [PATCH] slock: fix cross-compilation --- pkgs/misc/screensavers/slock/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/misc/screensavers/slock/default.nix b/pkgs/misc/screensavers/slock/default.nix index 63ca76e391f4..9f364ba520cd 100644 --- a/pkgs/misc/screensavers/slock/default.nix +++ b/pkgs/misc/screensavers/slock/default.nix @@ -16,7 +16,7 @@ stdenv.mkDerivation rec { buildInputs = [ xorgproto libX11 libXext libXrandr ]; - installFlags = [ "DESTDIR=\${out}" "PREFIX=" ]; + installFlags = [ "PREFIX=$(out)" ]; postPatch = "sed -i '/chmod u+s/d' Makefile"; @@ -24,6 +24,8 @@ stdenv.mkDerivation rec { cp ${writeText "config.def.h" conf} config.def.h ''; + makeFlags = [ "CC:=$(CC)" ]; + meta = { homepage = "https://tools.suckless.org/slock"; description = "Simple X display locker";