nixpkgs/pkgs/applications/window-managers/i3/lock-color.nix
Rok Garbas 9c20849da4 i3lock-color: renaming bin/i3lock binary to bin/i3lock-color
... that it doesn't conflict with i3lock
2016-05-24 12:37:04 +02:00

31 lines
1.0 KiB
Nix

{ stdenv, fetchFromGitHub, which, pkgconfig, libxcb, xcbutilkeysyms
, xcbutilimage, pam, libX11, libev, cairo, libxkbcommon, libxkbfile }:
stdenv.mkDerivation rec {
rev = "63a4c23ec6f0b3f62144122a4277d51caf023e4f";
name = "i3lock-color-2.7_rev${builtins.substring 0 7 rev}";
src = fetchFromGitHub {
owner = "Arcaena";
repo = "i3lock-color";
inherit rev;
sha256 = "1wfp0p85h45l50l6zfk5cr9ynka60vhjlgnyk8mqd5fp0w4ibxip";
};
buildInputs = [ which pkgconfig libxcb xcbutilkeysyms xcbutilimage pam libX11
libev cairo libxkbcommon libxkbfile ];
makeFlags = "all";
preInstall = ''
mkdir -p $out/share/man/man1
'';
installFlags = "PREFIX=\${out} SYSCONFDIR=\${out}/etc MANDIR=\${out}/share/man";
postInstall = ''
mv $out/bin/i3lock $out/bin/i3lock-color
'';
meta = with stdenv.lib; {
description = "A simple screen locker like slock";
homepage = http://i3wm.org/i3lock/;
maintainers = with maintainers; [ garbas malyn ];
license = licenses.bsd3;
platforms = platforms.all;
};
}