nixpkgs/pkgs/by-name/el/elvish/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

54 lines
1.1 KiB
Nix
Raw Normal View History

2023-03-22 02:16:39 +00:00
{ lib
, buildGoModule
, fetchFromGitHub
, callPackage
2023-03-22 02:16:39 +00:00
}:
2023-03-22 02:16:39 +00:00
let
pname = "elvish";
version = "0.19.2";
2023-03-22 02:16:39 +00:00
in
buildGoModule {
inherit pname version;
src = fetchFromGitHub {
owner = "elves";
2023-03-22 02:16:39 +00:00
repo = "elvish";
rev = "v${version}";
2023-03-22 02:16:39 +00:00
hash = "sha256-eCPJXCgmMvrJ2yVqYgXHXJWb6Ec0sutc91LNs4yRBYk=";
};
2023-03-22 02:16:39 +00:00
vendorHash = "sha256-VMI20IP1jVkUK3rJm35szaFDfZGEEingUEL/xfVJ1cc=";
subPackages = [ "cmd/elvish" ];
ldflags = [
"-s"
"-w"
"-X src.elv.sh/pkg/buildinfo.Version==${version}"
];
2020-03-10 02:16:51 +00:00
2022-05-06 18:39:28 +00:00
strictDeps = true;
2023-03-22 02:16:39 +00:00
doCheck = false;
2023-03-22 02:16:39 +00:00
passthru = {
shellPath = "/bin/elvish";
tests = {
expectVersion = callPackage ./tests/expect-version.nix { };
};
2023-03-22 02:16:39 +00:00
};
meta = {
homepage = "https://elv.sh/";
description = "A friendly and expressive command shell";
longDescription = ''
Elvish is a friendly interactive shell and an expressive programming
language. It runs on Linux, BSDs, macOS and Windows. Despite its pre-1.0
status, it is already suitable for most daily interactive use.
'';
2023-03-22 02:16:39 +00:00
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ AndersonTorres ];
};
2020-07-15 20:09:10 +00:00
}