slock: fix cross-compilation

This commit is contained in:
Nikolay Korotkiy 2021-11-13 15:34:17 +03:00
parent b1c58be1ac
commit 24c9cd84c2
No known key found for this signature in database
GPG Key ID: D1DE6D7F693663A5

View File

@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
buildInputs = [ xorgproto libX11 libXext libXrandr ]; buildInputs = [ xorgproto libX11 libXext libXrandr ];
installFlags = [ "DESTDIR=\${out}" "PREFIX=" ]; installFlags = [ "PREFIX=$(out)" ];
postPatch = "sed -i '/chmod u+s/d' Makefile"; postPatch = "sed -i '/chmod u+s/d' Makefile";
@ -24,6 +24,8 @@ stdenv.mkDerivation rec {
cp ${writeText "config.def.h" conf} config.def.h cp ${writeText "config.def.h" conf} config.def.h
''; '';
makeFlags = [ "CC:=$(CC)" ];
meta = { meta = {
homepage = "https://tools.suckless.org/slock"; homepage = "https://tools.suckless.org/slock";
description = "Simple X display locker"; description = "Simple X display locker";