Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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 ]; 15 buildInputs = [ ronn ]; 16 17 patches = [ 18 (fetchpatch { 19 name = "fix-format-specifier.patch"; 20 url = "https://github.com/discoteq/flock/commit/408bad42eb8d76cdd0c504c2f97f21c0b424c3b1.patch"; 21 sha256 = "sha256-YuFKXWTBu9A2kBNqkg1Oek6vDbVo/y8dB1k9Fuh3QmA"; 22 }) 23 ]; 24 25 meta = with lib; { 26 description = "Cross-platform version of flock(1)"; 27 maintainers = with maintainers; [ matthewbauer msfjarvis ]; 28 platforms = platforms.all; 29 license = licenses.isc; 30 }; 31}