46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
39 lines
1007 B
Nix
39 lines
1007 B
Nix
{ stdenv, fetchFromGitHub
|
|
, meson, ninja, pkgconfig, scdoc
|
|
, wayland, wayland-protocols, libxkbcommon, cairo, gdk-pixbuf, pam
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "swaylock";
|
|
version = "1.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "swaywm";
|
|
repo = "swaylock";
|
|
rev = version;
|
|
sha256 = "1ii9ql1mxkk2z69dv6bg1x22nl3a46iww764wqjiv78x08xpk982";
|
|
};
|
|
|
|
postPatch = ''
|
|
sed -iE "s/version: '1\.3',/version: '${version}',/" meson.build
|
|
'';
|
|
|
|
nativeBuildInputs = [ meson ninja pkgconfig scdoc ];
|
|
buildInputs = [ wayland wayland-protocols libxkbcommon cairo gdk-pixbuf pam ];
|
|
|
|
mesonFlags = [
|
|
"-Dpam=enabled" "-Dgdk-pixbuf=enabled" "-Dman-pages=enabled"
|
|
];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Screen locker for Wayland";
|
|
longDescription = ''
|
|
swaylock is a screen locking utility for Wayland compositors.
|
|
'';
|
|
inherit (src.meta) homepage;
|
|
license = licenses.mit;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ primeos ];
|
|
};
|
|
}
|