diff options
Diffstat (limited to 'nixpkgs/pkgs/applications/networking/mailreaders/aerc/default.nix')
-rw-r--r-- | nixpkgs/pkgs/applications/networking/mailreaders/aerc/default.nix | 33 |
1 files changed, 9 insertions, 24 deletions
diff --git a/nixpkgs/pkgs/applications/networking/mailreaders/aerc/default.nix b/nixpkgs/pkgs/applications/networking/mailreaders/aerc/default.nix index 58412835639..9a607b54b9c 100644 --- a/nixpkgs/pkgs/applications/networking/mailreaders/aerc/default.nix +++ b/nixpkgs/pkgs/applications/networking/mailreaders/aerc/default.nix @@ -4,32 +4,19 @@ , fetchFromGitHub }: -let - rev = "ea0df7bee433fedae5716906ea56141f92b9ce53"; -in buildGoModule rec { +buildGoModule rec { pname = "aerc"; - version = "unstable-2020-02-01"; + version = "0.4.0"; src = fetchurl { - url = "https://git.sr.ht/~sircmpwn/aerc/archive/${rev}.tar.gz"; - sha256 = "1bx2fypw053v3bzalfgyi6a0s5fvv040z8jy4i63s7p53m8gmzs9"; + url = "https://git.sr.ht/~sircmpwn/aerc/archive/${version}.tar.gz"; + sha256 = "05qy14k9wmyhsg1hiv4njfx1zn1m9lz4d1p50kc36v7pq0n4csfk"; }; - libvterm = fetchFromGitHub { - owner = "ddevault"; - repo = "go-libvterm"; - rev = "b7d861da381071e5d3701e428528d1bfe276e78f"; - sha256 = "06vv4pgx0i6hjdjcar4ch18hp9g6q6687mbgkvs8ymmbacyhp7s6"; - }; - - vendorSha256 = "0rnyjjlsxsi0y23m6ckyd52562m33qr35fvdcdzy31mbfpi8kl2k"; + runVend = true; + vendorSha256 = "13zs5113ip85yl6sw9hzclxwlnrhy18d39vh9cwbq97dgnh9rz89"; - overrideModAttrs = (_: { - postBuild = '' - cp -r --reflink=auto ${libvterm}/libvterm vendor/github.com/ddevault/go-libvterm - cp -r --reflink=auto ${libvterm}/encoding vendor/github.com/ddevault/go-libvterm - ''; - }); + doCheck = false; nativeBuildInputs = [ scdoc @@ -46,8 +33,6 @@ in buildGoModule rec { buildInputs = [ python3 notmuch ]; - GOFLAGS="-tags=notmuch"; - buildPhase = " runHook preBuild # we use make instead of go build @@ -56,7 +41,7 @@ in buildGoModule rec { installPhase = '' runHook preInstall - make PREFIX=$out install + make PREFIX=$out GOFLAGS="$GOFLAGS -tags=notmuch" install wrapPythonProgramsIn $out/share/aerc/filters "$out $pythonPath" runHook postInstall ''; @@ -75,4 +60,4 @@ in buildGoModule rec { license = licenses.mit; platforms = platforms.unix; }; -}
\ No newline at end of file +} |