Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ buildGoModule, fetchFromGitHub, fetchpatch, lib }: 2 3buildGoModule rec { 4 pname = "devd"; 5 version = "unstable-2020-04-27"; 6 7 src = fetchFromGitHub { 8 owner = "cortesi"; 9 repo = "devd"; 10 rev = "c1a3bfba27d8e028de90fb24452374412a4cffb3"; 11 hash = "sha256-k0zj7fiYbaHnNUUI7ruD0vXiT4c1bxPuR4I0dRouCbU="; 12 }; 13 14 vendorHash = "sha256-o7MbN/6n7fkp/yqYyQbfWBUqI09/JYh5jtV31gjNf6w="; 15 16 patches = [ 17 # Update x/sys to support go 1.17. 18 (fetchpatch { 19 url = "https://github.com/cortesi/devd/commit/5f4720bf41399736b4e7e1a493da6c87a583d0b2.patch"; 20 hash = "sha256-WDN08XNsDPuZwBCE8iDXgGAWFwx2UTwqRkhzKMtPKR8="; 21 }) 22 ]; 23 24 subPackages = [ "cmd/devd" ]; 25 26 ldflags = [ "-s" "-w" ]; 27 28 meta = with lib; { 29 description = "A local webserver for developers"; 30 homepage = "https://github.com/cortesi/devd"; 31 license = licenses.mit; 32 maintainers = with maintainers; [ brianhicks ]; 33 }; 34}