From 984462d5f1fe91fc35c8248aca655deff82afd2d Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Wed, 10 Jun 2026 11:56:43 +0000 Subject: [PATCH] tblite: cleanup --- .../libraries/science/chemistry/tblite/default.nix | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/pkgs/development/libraries/science/chemistry/tblite/default.nix b/pkgs/development/libraries/science/chemistry/tblite/default.nix index 20a89a3647de..1c21aa56c2ec 100644 --- a/pkgs/development/libraries/science/chemistry/tblite/default.nix +++ b/pkgs/development/libraries/science/chemistry/tblite/default.nix @@ -27,14 +27,16 @@ assert ( ] ); -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "tblite"; version = "0.6.0"; + __structuredAttrs = true; + strictDeps = true; src = fetchFromGitHub { owner = "tblite"; repo = "tblite"; - rev = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-z0g+bf6APqNLB9mDE49FelitQ9ptZXdFQuYeXIT0NIw="; }; @@ -86,7 +88,9 @@ stdenv.mkDerivation rec { "dev" ]; - checkInputs = [ + nativeCheckInputs = [ + # Runs python test drivers (test/*/tester.py) during checkPhase, so it must be available on the + # build host (strictDeps) python3 ]; @@ -108,7 +112,8 @@ stdenv.mkDerivation rec { lgpl3Plus ]; homepage = "https://github.com/tblite/tblite"; + changelog = "https://github.com/tblite/tblite/releases/tag/${finalAttrs.src.tag}"; platforms = lib.platforms.linux; maintainers = [ lib.maintainers.sheepforce ]; }; -} +})