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.

55 lines
1.2 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";
2024-02-15 15:29:04 +00:00
version = "0.20.1";
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}";
2024-02-15 15:29:04 +00:00
hash = "sha256-lKrX38gVUhYwwuNF25LcZ+TytP4vx/GO7ay6Au4BBZA=";
};
2024-02-12 04:01:40 +00:00
vendorHash = "sha256-sgVGqpncV7Ylok5FRcV01a3MCX6UdZvTt3nfVh5L2so=";
2023-03-22 02:16:39 +00:00
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 = "Friendly and expressive command shell";
mainProgram = "elvish";
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
}