nixpkgs/pkgs/tools/nix/nar-serve/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

28 lines
621 B
Nix

{ buildGoModule
, fetchFromGitHub
, lib
}:
buildGoModule rec {
pname = "nar-serve";
version = "0.6.1";
src = fetchFromGitHub {
owner = "numtide";
repo = "nar-serve";
rev = "v${version}";
hash = "sha256-cSOYHYJJEGzFtkD4mjTmYBiM9CaWKt64xgV/JeNHpfM=";
};
vendorHash = "sha256-RpjLs4+9abbbysYAlPDUXBLe1cz4Lp+QmR1yv+LpYwQ=";
doCheck = false;
meta = with lib; {
description = "Serve NAR file contents via HTTP";
mainProgram = "nar-serve";
homepage = "https://github.com/numtide/nar-serve";
license = licenses.mit;
maintainers = with maintainers; [ rizary zimbatm ];
};
}