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 ]; }; -} +})