about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/devd/default.nix
blob: 05ed14dfcd6e7c0cdee26fa74ae7f21f4c705326 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ buildGoModule, fetchFromGitHub, fetchpatch, lib }:

buildGoModule rec {
  pname = "devd";
  version = "unstable-2020-04-27";

  src = fetchFromGitHub {
    owner = "cortesi";
    repo = "devd";
    rev = "c1a3bfba27d8e028de90fb24452374412a4cffb3";
    hash = "sha256-k0zj7fiYbaHnNUUI7ruD0vXiT4c1bxPuR4I0dRouCbU=";
  };

  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" ];

  ldflags = [ "-s" "-w" ];

  meta = with lib; {
    description = "A local webserver for developers";
    homepage = "https://github.com/cortesi/devd";
    license = licenses.mit;
    maintainers = with maintainers; [ brianhicks ];
  };
}