slock: 1.4 → 1.5
This commit is contained in:
parent
cef44108c3
commit
218a36d6b9
@ -4,14 +4,13 @@
|
|||||||
# https://git.suckless.org/slock/tree/config.def.h
|
# https://git.suckless.org/slock/tree/config.def.h
|
||||||
, conf ? null }:
|
, conf ? null }:
|
||||||
|
|
||||||
with lib;
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
stdenv.mkDerivation rec {
|
|
||||||
pname = "slock";
|
pname = "slock";
|
||||||
version = "1.4";
|
version = "1.5";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://dl.suckless.org/tools/slock-${version}.tar.gz";
|
url = "https://dl.suckless.org/tools/slock-${finalAttrs.version}.tar.gz";
|
||||||
sha256 = "0sif752303dg33f14k6pgwq2jp1hjyhqv6x4sy3sj281qvdljf5m";
|
hash = "sha256-ruHj+/aid/tiWjg4BzuXm2SD57rKTOgvVt4f8ZLbDk0=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ xorgproto libX11 libXext libXrandr libxcrypt ];
|
buildInputs = [ xorgproto libX11 libXext libXrandr libxcrypt ];
|
||||||
@ -20,13 +19,13 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
postPatch = "sed -i '/chmod u+s/d' Makefile";
|
postPatch = "sed -i '/chmod u+s/d' Makefile";
|
||||||
|
|
||||||
preBuild = optionalString (conf != null) ''
|
preBuild = lib.optionalString (conf != null) ''
|
||||||
cp ${writeText "config.def.h" conf} config.def.h
|
cp ${writeText "config.def.h" conf} config.def.h
|
||||||
'';
|
'';
|
||||||
|
|
||||||
makeFlags = [ "CC:=$(CC)" ];
|
makeFlags = [ "CC:=$(CC)" ];
|
||||||
|
|
||||||
meta = {
|
meta = with lib; {
|
||||||
homepage = "https://tools.suckless.org/slock";
|
homepage = "https://tools.suckless.org/slock";
|
||||||
description = "Simple X display locker";
|
description = "Simple X display locker";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
@ -36,4 +35,4 @@ stdenv.mkDerivation rec {
|
|||||||
maintainers = with maintainers; [ astsmtl ];
|
maintainers = with maintainers; [ astsmtl ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user