diff options
Diffstat (limited to 'pkgs/by-name/li/license-go/package.nix')
-rw-r--r-- | pkgs/by-name/li/license-go/package.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/by-name/li/license-go/package.nix b/pkgs/by-name/li/license-go/package.nix new file mode 100644 index 0000000000000..2aa87c802070f --- /dev/null +++ b/pkgs/by-name/li/license-go/package.nix @@ -0,0 +1,36 @@ +{ + lib, + buildGoModule, + fetchFromGitHub, +}: +let + version = "5.0.4"; +in +buildGoModule { + pname = "license-go"; + inherit version; + + src = fetchFromGitHub { + owner = "nishanths"; + repo = "license"; + rev = "v${version}"; + hash = "sha256-Rz/eIGa3xLjirPMOs4otfmwy4OzJgopKPbka2OKt8Fo="; + }; + + vendorHash = "sha256-kx3lPhmEo515sHgHBqDC6udz6xkZvB+nn6x3/JaBHbo="; + + ldflags = [ + "-s" + "-w" + "-X main.version=${version}" + "-X main.builtBy=nixpkgs" + ]; + + meta = { + description = "Command line license text generator"; + homepage = "https://github.com/nishanths/license"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ uncenter ]; + mainProgram = "license"; + }; +} |