2022-12-18 02:10:24 +00:00
|
|
|
{ buildGoModule, fetchFromGitHub, fetchpatch, lib }:
|
2019-05-13 21:43:05 +01:00
|
|
|
|
2022-12-18 02:10:24 +00:00
|
|
|
buildGoModule rec {
|
2019-05-13 21:43:05 +01:00
|
|
|
pname = "devd";
|
2022-12-18 02:10:24 +00:00
|
|
|
version = "unstable-2020-04-27";
|
|
|
|
|
2019-05-13 21:43:05 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cortesi";
|
|
|
|
repo = "devd";
|
2022-12-18 02:10:24 +00:00
|
|
|
rev = "c1a3bfba27d8e028de90fb24452374412a4cffb3";
|
|
|
|
hash = "sha256-k0zj7fiYbaHnNUUI7ruD0vXiT4c1bxPuR4I0dRouCbU=";
|
2019-05-13 21:43:05 +01:00
|
|
|
};
|
2022-12-18 02:10:24 +00:00
|
|
|
|
|
|
|
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=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2019-05-13 21:43:05 +01:00
|
|
|
subPackages = [ "cmd/devd" ];
|
2022-12-18 02:10:24 +00:00
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with lib; {
|
2019-05-13 21:43:05 +01:00
|
|
|
description = "A local webserver for developers";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/cortesi/devd";
|
2019-05-13 21:43:05 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ brianhicks ];
|
|
|
|
};
|
|
|
|
}
|