Merge pull request #329823 from ExpidusOS/fix/pkgsllvm/elfutils
[NixPkgs.git] / pkgs / by-name / el / elvish / package.nix
blob20369246ba85b29dff483335687bdc82fd7207af
1 { lib
2 , buildGoModule
3 , fetchFromGitHub
4 , callPackage
5 }:
7 let
8   pname = "elvish";
9   version = "0.20.1";
11 buildGoModule {
12   inherit pname version;
14   src = fetchFromGitHub {
15     owner = "elves";
16     repo = "elvish";
17     rev = "v${version}";
18     hash = "sha256-lKrX38gVUhYwwuNF25LcZ+TytP4vx/GO7ay6Au4BBZA=";
19   };
21   vendorHash = "sha256-sgVGqpncV7Ylok5FRcV01a3MCX6UdZvTt3nfVh5L2so=";
23   subPackages = [ "cmd/elvish" ];
25   ldflags = [
26     "-s"
27     "-w"
28     "-X src.elv.sh/pkg/buildinfo.Version==${version}"
29   ];
31   strictDeps = true;
33   doCheck = false;
35   passthru = {
36     shellPath = "/bin/elvish";
37     tests = {
38       expectVersion = callPackage ./tests/expect-version.nix { };
39     };
40   };
42   meta = {
43     homepage = "https://elv.sh/";
44     description = "Friendly and expressive command shell";
45     mainProgram = "elvish";
46     longDescription = ''
47       Elvish is a friendly interactive shell and an expressive programming
48       language. It runs on Linux, BSDs, macOS and Windows. Despite its pre-1.0
49       status, it is already suitable for most daily interactive use.
50     '';
51     license = lib.licenses.bsd2;
52     maintainers = with lib.maintainers; [ AndersonTorres ];
53   };