nixpkgs/pkgs/development/interpreters/ivy/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
574 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "ivy";
version = "0.2.10";
src = fetchFromGitHub {
rev = "v${version}";
owner = "robpike";
repo = "ivy";
hash = "sha256-6rZfBx6jKNOEnG+cmrzgvjUoCHQe+olPeX11qX8ep38=";
};
vendorHash = null;
subPackages = [ "." ];
ldflags = [ "-s" "-w" ];
meta = with lib; {
homepage = "https://github.com/robpike/ivy";
description = "ivy, an APL-like calculator";
mainProgram = "ivy";
license = licenses.bsd3;
maintainers = with maintainers; [ smasher164 ];
};
}