summary refs log tree commit diff
path: root/pkgs/tools/nix/nar-serve/default.nix
blob: 146165d880dedf94a41a734493c060c3e7983950 (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
{ buildGoModule
, fetchFromGitHub
, lib

}:
let
  pname = "nar-serve";
  version = "0.3.0";

in
buildGoModule rec {
  inherit pname version;

  src = fetchFromGitHub {
    owner = "numtide";
    repo = "nar-serve";
    rev = "v${version}";
    sha256 = "000xxrar5ngrqqfi7ynx84i6wi27mirgm26brhyg0y4pygc9ykhz";
  };

  vendorSha256 = "0qkzbr85wkx3r7qgnzg9pdl7vsli10bzcdbj2gqd1kdzwb8khszs";

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