2023-03-24 00:07:29 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
2023-10-09 19:29:22 +00:00
|
|
|
, callPackage
|
2023-03-24 00:07:29 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-03-24 00:07:29 +00:00
|
|
|
let
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "elvish";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "0.20.1";
|
2023-03-24 00:07:29 +00:00
|
|
|
in
|
|
|
|
buildGoModule {
|
|
|
|
inherit pname version;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "elves";
|
2023-03-24 00:07:29 +00:00
|
|
|
repo = "elvish";
|
2020-04-24 23:36:52 +00:00
|
|
|
rev = "v${version}";
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-lKrX38gVUhYwwuNF25LcZ+TytP4vx/GO7ay6Au4BBZA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
vendorHash = "sha256-sgVGqpncV7Ylok5FRcV01a3MCX6UdZvTt3nfVh5L2so=";
|
2023-03-24 00:07:29 +00:00
|
|
|
|
|
|
|
subPackages = [ "cmd/elvish" ];
|
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X src.elv.sh/pkg/buildinfo.Version==${version}"
|
|
|
|
];
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
strictDeps = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-03-24 00:07:29 +00:00
|
|
|
doCheck = false;
|
2022-01-03 16:56:52 +00:00
|
|
|
|
2023-03-24 00:07:29 +00:00
|
|
|
passthru = {
|
2023-10-09 19:29:22 +00:00
|
|
|
shellPath = "/bin/elvish";
|
|
|
|
tests = {
|
|
|
|
expectVersion = callPackage ./tests/expect-version.nix { };
|
|
|
|
};
|
2023-03-24 00:07:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://elv.sh/";
|
2020-04-24 23:36:52 +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-24 00:07:29 +00:00
|
|
|
license = lib.licenses.bsd2;
|
2023-10-09 19:29:22 +00:00
|
|
|
maintainers = with lib.maintainers; [ AndersonTorres ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2020-08-20 17:08:02 +00:00
|
|
|
}
|