Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 42 lines 912 B view raw
1{ 2 stdenv, 3 lib, 4 fetchFromGitHub, 5 fetchpatch, 6 autoreconfHook, 7 ronn, 8}: 9 10stdenv.mkDerivation rec { 11 pname = "flock"; 12 version = "0.4.0"; 13 14 src = fetchFromGitHub { 15 owner = "discoteq"; 16 repo = "flock"; 17 rev = "v${version}"; 18 sha256 = "sha256-cCpckORtogs6Nt7c5q2+z0acXAnALdLV6uzxa5ng3s4="; 19 }; 20 21 nativeBuildInputs = [ 22 autoreconfHook 23 ronn 24 ]; 25 26 patches = [ 27 (fetchpatch { 28 name = "fix-format-specifier.patch"; 29 url = "https://github.com/discoteq/flock/commit/408bad42eb8d76cdd0c504c2f97f21c0b424c3b1.patch"; 30 sha256 = "sha256-YuFKXWTBu9A2kBNqkg1Oek6vDbVo/y8dB1k9Fuh3QmA"; 31 }) 32 ]; 33 34 meta = with lib; { 35 description = "Cross-platform version of flock(1)"; 36 homepage = "https://github.com/discoteq/flock"; 37 maintainers = with maintainers; [ matthewbauer ]; 38 mainProgram = "flock"; 39 platforms = platforms.all; 40 license = licenses.isc; 41 }; 42}