Files
nixpkgs/pkgs/by-name/dk/dkh/package.nix
quantenzitrone 6b61249106 various: switch to finalAttrs pattern
this shouldn't create any rebuilds
2026-01-30 02:36:22 +01:00

43 lines
882 B
Nix

{
lib,
stdenv,
gfortran,
fetchFromGitHub,
cmake,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "dkh";
version = "1.2";
src = fetchFromGitHub {
owner = "psi4";
repo = "dkh";
rev = "v${finalAttrs.version}";
sha256 = "1wb4qmb9f8rnrwnnw1gdhzx1fmhy628bxfrg56khxy3j5ljxkhck";
};
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace-fail "cmake_minimum_required(VERSION 3.0)" "cmake_minimum_required(VERSION 3.10)"
'';
nativeBuildInputs = [
gfortran
cmake
];
cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" ];
hardeningDisable = [
"format"
];
meta = {
description = "Arbitrary-order scalar-relativistic Douglas-Kroll-Hess module";
license = lib.licenses.lgpl3Only;
homepage = "https://github.com/psi4/dkh";
platforms = lib.platforms.unix;
maintainers = [ lib.maintainers.sheepforce ];
};
})