2021-01-15 09:19:50 +00:00
|
|
|
{ lib, stdenv, fetchurl, liblockfile }:
|
2012-08-25 09:13:59 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2022-02-23 21:39:52 +00:00
|
|
|
pname = "lockfile-progs";
|
|
|
|
version = "0.1.19";
|
2012-08-25 09:13:59 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-02-23 21:39:52 +00:00
|
|
|
url = "mirror://debian/pool/main/l/${pname}/${pname}_${version}.tar.gz";
|
|
|
|
sha256 = "sha256-LFcEsByPR0+CkheA5Fkqknsr9qbXYWNUpsXXzVZkhX4=";
|
2012-08-25 09:13:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ liblockfile ];
|
|
|
|
|
2023-02-19 19:23:32 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = toString [
|
2022-12-23 16:57:29 +00:00
|
|
|
# Needed with GCC 12
|
|
|
|
"-Wno-error=format-overflow"
|
|
|
|
];
|
|
|
|
|
2012-08-25 09:13:59 +00:00
|
|
|
installPhase = ''
|
2022-02-23 21:39:52 +00:00
|
|
|
runHook preInstall
|
2012-08-25 09:13:59 +00:00
|
|
|
mkdir -p $out/bin $out/man/man1
|
|
|
|
install -s bin/* $out/bin
|
|
|
|
install man/*.1 $out/man/man1
|
2022-02-23 21:39:52 +00:00
|
|
|
runHook postInstall
|
2012-08-25 09:13:59 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2022-05-28 13:22:26 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2012-08-25 09:13:59 +00:00
|
|
|
description = "Programs for locking and unlocking files and mailboxes";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://packages.debian.org/sid/lockfile-progs";
|
2022-02-23 21:39:52 +00:00
|
|
|
license = lib.licenses.gpl2Only;
|
2012-08-25 09:13:59 +00:00
|
|
|
|
2021-01-15 09:19:50 +00:00
|
|
|
maintainers = [ lib.maintainers.bluescreen303 ];
|
|
|
|
platforms = lib.platforms.all;
|
2012-08-25 09:13:59 +00:00
|
|
|
};
|
|
|
|
}
|