summary refs log tree commit diff
path: root/pkgs/tools/nix/nar-serve/default.nix
blob: 1d7fd6beb4a7d2a9d646aed59b15d18d9e1374aa (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
{ buildGoModule
, fetchFromGitHub
, lib
}:
buildGoModule rec {
  pname = "nar-serve";
  version = "0.4.0";

  src = fetchFromGitHub {
    owner = "numtide";
    repo = "nar-serve";
    rev = "v${version}";
    hash = "sha256-h/pzKRXgcGTpr1YUKppDa+iTLKak/PGhbYa8ZczWj1U=";
  };

  vendorSha256 = "sha256-eW+cul/5qJocpKV/6azxj7HTmkezDw6dNubPtAOP5HU=";

  doCheck = false;

  meta = with lib; {
    description = "Serve NAR file contents via HTTP";
    homepage = "https://github.com/numtide/nar-serve";
    license = licenses.mit;
    maintainers = with maintainers; [ rizary ];
  };
}