lol
1{
2 lib,
3 stdenv,
4 fetchurl,
5 liblockfile,
6}:
7
8stdenv.mkDerivation rec {
9 pname = "lockfile-progs";
10 version = "0.1.19";
11
12 src = fetchurl {
13 url = "mirror://debian/pool/main/l/lockfile-progs/lockfile-progs_${version}.tar.gz";
14 sha256 = "sha256-LFcEsByPR0+CkheA5Fkqknsr9qbXYWNUpsXXzVZkhX4=";
15 };
16
17 buildInputs = [ liblockfile ];
18
19 env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isGNU (toString [
20 # Needed with GCC 12
21 "-Wno-error=format-overflow"
22 ]);
23
24 installPhase = ''
25 runHook preInstall
26 mkdir -p $out/bin $out/man/man1
27 install bin/* $out/bin
28 install man/*.1 $out/man/man1
29 runHook postInstall
30 '';
31
32 meta = {
33 description = "Programs for locking and unlocking files and mailboxes";
34 homepage = "http://packages.debian.org/sid/lockfile-progs";
35 license = lib.licenses.gpl2Only;
36 platforms = lib.platforms.all;
37 };
38}