2023-03-22 02:16:39 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
2023-09-18 17:24:35 +00:00
|
|
|
, callPackage
|
2023-03-22 02:16:39 +00:00
|
|
|
}:
|
2016-06-19 06:12:21 +00:00
|
|
|
|
2023-03-22 02:16:39 +00:00
|
|
|
let
|
2019-01-26 14:25:20 +00:00
|
|
|
pname = "elvish";
|
2023-03-21 10:47:54 +00:00
|
|
|
version = "0.19.2";
|
2023-03-22 02:16:39 +00:00
|
|
|
in
|
|
|
|
buildGoModule {
|
|
|
|
inherit pname version;
|
2016-06-19 06:12:21 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "elves";
|
2023-03-22 02:16:39 +00:00
|
|
|
repo = "elvish";
|
2019-01-26 14:25:20 +00:00
|
|
|
rev = "v${version}";
|
2023-03-22 02:16:39 +00:00
|
|
|
hash = "sha256-eCPJXCgmMvrJ2yVqYgXHXJWb6Ec0sutc91LNs4yRBYk=";
|
2016-06-19 06:12:21 +00:00
|
|
|
};
|
|
|
|
|
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;
|
2020-08-04 00:26:27 +00:00
|
|
|
|
2023-03-22 02:16:39 +00:00
|
|
|
doCheck = false;
|
2022-01-03 13:29:36 +00:00
|
|
|
|
2023-03-22 02:16:39 +00:00
|
|
|
passthru = {
|
2023-09-18 17:24:35 +00:00
|
|
|
shellPath = "/bin/elvish";
|
|
|
|
tests = {
|
|
|
|
expectVersion = callPackage ./tests/expect-version.nix { };
|
|
|
|
};
|
2023-03-22 02:16:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://elv.sh/";
|
2019-01-26 14:25:20 +00:00
|
|
|
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;
|
2023-09-18 17:24:35 +00:00
|
|
|
maintainers = with lib.maintainers; [ AndersonTorres ];
|
2016-06-19 06:12:21 +00:00
|
|
|
};
|
2020-07-15 20:09:10 +00:00
|
|
|
}
|