Merge pull request #52329 from Mic92/xsecurelock
xsecurelock: 1.1 -> 1.2
This commit is contained in:
commit
b90e52ea55
|
@ -4,16 +4,18 @@
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "xsecurelock-${version}";
|
name = "xsecurelock-${version}";
|
||||||
version = "1.1";
|
version = "1.2";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "google";
|
owner = "google";
|
||||||
repo = "xsecurelock";
|
repo = "xsecurelock";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0yqp5xhkl9jpjyrmrxbyp7azwxmqc3lxv5lxrjqjaapl3q3096g5";
|
sha256 = "1vaw2m3yyfazj1x7xdwppmm0ch075q399g5vzrmhhrkzdrs53r1x";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
nativeBuildInputs = [
|
||||||
|
autoreconfHook pkgconfig
|
||||||
|
];
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
libX11 libXcomposite libXft libXmu pam
|
libX11 libXcomposite libXft libXmu pam
|
||||||
apacheHttpd imagemagick pamtester
|
apacheHttpd imagemagick pamtester
|
||||||
|
@ -24,6 +26,12 @@ stdenv.mkDerivation rec {
|
||||||
"--with-xscreensaver=${xscreensaver}/libexec/xscreensaver"
|
"--with-xscreensaver=${xscreensaver}/libexec/xscreensaver"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
preConfigure = ''
|
||||||
|
cat > version.c <<'EOF'
|
||||||
|
const char *const git_version = "${version}";
|
||||||
|
EOF
|
||||||
|
'';
|
||||||
|
|
||||||
preInstall = ''
|
preInstall = ''
|
||||||
substituteInPlace helpers/saver_blank \
|
substituteInPlace helpers/saver_blank \
|
||||||
--replace 'protect xset' 'protect ${xset}/bin/xset'
|
--replace 'protect xset' 'protect ${xset}/bin/xset'
|
||||||
|
|
Loading…
Reference in New Issue