notmuch: use finalAttrs

Co-authored-by: Doron Behar <doron.behar@gmail.com>
This commit is contained in:
Ryan Gibb
2024-05-02 15:41:49 +01:00
co-authored by Doron Behar
parent 39b74baeb3
commit ea85f8e80c
@@ -15,12 +15,12 @@
, withVim ? true
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "notmuch";
version = "0.38.3";
src = fetchurl {
url = "https://notmuchmail.org/releases/notmuch-${version}.tar.xz";
url = "https://notmuchmail.org/releases/notmuch-${finalAttrs.version}.tar.xz";
hash = "sha256-mvRsyA2li0MByiuu/MJaQNES0DFVB+YywPPw8IMo0FQ=";
};
@@ -141,9 +141,8 @@ stdenv.mkDerivation rec {
'';
passthru = {
pythonSourceRoot = "notmuch-${version}/bindings/python";
pythonSourceRoot = "notmuch-${finalAttrs.version}/bindings/python";
tests.version = testers.testVersion { package = notmuch; };
inherit version;
updateScript = gitUpdater {
url = "https://git.notmuchmail.org/git/notmuch";
@@ -160,4 +159,4 @@ stdenv.mkDerivation rec {
platforms = platforms.unix;
mainProgram = "notmuch";
};
}
})