2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, liblockfile }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2022-03-05 16:20:37 +00:00
|
|
|
pname = "lockfile-progs";
|
|
|
|
version = "0.1.19";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2024-09-19 14:19:46 +00:00
|
|
|
url = "mirror://debian/pool/main/l/lockfile-progs/lockfile-progs_${version}.tar.gz";
|
2022-03-05 16:20:37 +00:00
|
|
|
sha256 = "sha256-LFcEsByPR0+CkheA5Fkqknsr9qbXYWNUpsXXzVZkhX4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ liblockfile ];
|
|
|
|
|
2024-02-07 01:22:34 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isGNU (toString [
|
2023-02-16 17:41:37 +00:00
|
|
|
# Needed with GCC 12
|
|
|
|
"-Wno-error=format-overflow"
|
2024-02-07 01:22:34 +00:00
|
|
|
]);
|
2023-02-16 17:41:37 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
installPhase = ''
|
2022-03-05 16:20:37 +00:00
|
|
|
runHook preInstall
|
2020-04-24 23:36:52 +00:00
|
|
|
mkdir -p $out/bin $out/man/man1
|
2024-02-29 20:09:43 +00:00
|
|
|
install bin/* $out/bin
|
2020-04-24 23:36:52 +00:00
|
|
|
install man/*.1 $out/man/man1
|
2022-03-05 16:20:37 +00:00
|
|
|
runHook postInstall
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Programs for locking and unlocking files and mailboxes";
|
|
|
|
homepage = "http://packages.debian.org/sid/lockfile-progs";
|
2022-03-05 16:20:37 +00:00
|
|
|
license = lib.licenses.gpl2Only;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
maintainers = [ lib.maintainers.bluescreen303 ];
|
|
|
|
platforms = lib.platforms.all;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|