Merge pull request #206654 from aaronjheng/devd
This commit is contained in:
commit
eafcc78020
1 changed files with 20 additions and 6 deletions
|
@ -1,16 +1,30 @@
|
||||||
{ buildGoPackage, fetchFromGitHub, lib }:
|
{ buildGoModule, fetchFromGitHub, fetchpatch, lib }:
|
||||||
|
|
||||||
buildGoPackage rec {
|
buildGoModule rec {
|
||||||
pname = "devd";
|
pname = "devd";
|
||||||
version = "0.9";
|
version = "unstable-2020-04-27";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "cortesi";
|
owner = "cortesi";
|
||||||
repo = "devd";
|
repo = "devd";
|
||||||
rev = "v${version}";
|
rev = "c1a3bfba27d8e028de90fb24452374412a4cffb3";
|
||||||
sha256 = "1b02fj821k68q7xl48wc194iinqw9jiavzfl136hlzvg4m07p1wf";
|
hash = "sha256-k0zj7fiYbaHnNUUI7ruD0vXiT4c1bxPuR4I0dRouCbU=";
|
||||||
};
|
};
|
||||||
goPackagePath = "github.com/cortesi/devd";
|
|
||||||
|
vendorHash = "sha256-o7MbN/6n7fkp/yqYyQbfWBUqI09/JYh5jtV31gjNf6w=";
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# Update x/sys to support go 1.17.
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/cortesi/devd/commit/5f4720bf41399736b4e7e1a493da6c87a583d0b2.patch";
|
||||||
|
hash = "sha256-WDN08XNsDPuZwBCE8iDXgGAWFwx2UTwqRkhzKMtPKR8=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
subPackages = [ "cmd/devd" ];
|
subPackages = [ "cmd/devd" ];
|
||||||
|
|
||||||
|
ldflags = [ "-s" "-w" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A local webserver for developers";
|
description = "A local webserver for developers";
|
||||||
homepage = "https://github.com/cortesi/devd";
|
homepage = "https://github.com/cortesi/devd";
|
||||||
|
|
Loading…
Reference in a new issue