mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-08 05:54:24 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
29 lines
680 B
Nix
29 lines
680 B
Nix
{ lib, stdenv, fetchFromGitHub, pam, systemd }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "13";
|
|
pname = "physlock";
|
|
src = fetchFromGitHub {
|
|
owner = "muennich";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "1mz4xxjip5ldiw9jgfq9zvqb6w10bcjfx6939w1appqg8f521a7s";
|
|
};
|
|
|
|
buildInputs = [ pam systemd ];
|
|
|
|
preConfigure = ''
|
|
substituteInPlace Makefile \
|
|
--replace "-m 4755 -o root -g root" ""
|
|
'';
|
|
|
|
makeFlags = [ "PREFIX=$(out)" "SESSION=systemd" ];
|
|
|
|
meta = with lib; {
|
|
description = "A secure suspend/hibernate-friendly alternative to `vlock -an`";
|
|
mainProgram = "physlock";
|
|
license = licenses.gpl2;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|