From 722d61c2f251595c5021aeef13564082c5bd2923 Mon Sep 17 00:00:00 2001 From: mingchuan Date: Thu, 22 Jun 2017 22:41:55 +0800 Subject: [PATCH] slock: Avoid chmod u+s (#26600) --- pkgs/misc/screensavers/slock/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/misc/screensavers/slock/default.nix b/pkgs/misc/screensavers/slock/default.nix index 2a2be06fde6a..55765a520da2 100644 --- a/pkgs/misc/screensavers/slock/default.nix +++ b/pkgs/misc/screensavers/slock/default.nix @@ -17,6 +17,8 @@ stdenv.mkDerivation rec { installFlags = "DESTDIR=\${out} PREFIX="; + patchPhase = "sed -i '/chmod u+s/d' Makefile"; + preBuild = optionalString (conf != null) '' cp ${writeText "config.def.h" conf} config.def.h '';