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