1{ stdenv, lib, fetchFromGitHub, fetchpatch, autoreconfHook, ronn }:
2
3stdenv.mkDerivation rec {
4 pname = "flock";
5 version = "0.4.0";
6
7 src = fetchFromGitHub {
8 owner = "discoteq";
9 repo = pname;
10 rev = "v${version}";
11 sha256 = "sha256-cCpckORtogs6Nt7c5q2+z0acXAnALdLV6uzxa5ng3s4=";
12 };
13
14 nativeBuildInputs = [ autoreconfHook ronn ];
15
16 patches = [
17 (fetchpatch {
18 name = "fix-format-specifier.patch";
19 url = "https://github.com/discoteq/flock/commit/408bad42eb8d76cdd0c504c2f97f21c0b424c3b1.patch";
20 sha256 = "sha256-YuFKXWTBu9A2kBNqkg1Oek6vDbVo/y8dB1k9Fuh3QmA";
21 })
22 ];
23
24 meta = with lib; {
25 description = "Cross-platform version of flock(1)";
26 maintainers = with maintainers; [ matthewbauer msfjarvis ];
27 platforms = platforms.all;
28 license = licenses.isc;
29 };
30}