Files
nixpkgs/pkgs/by-name/sp/splash/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

57 lines
1.1 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
gfortran,
giza,
hdf5,
cairo,
freetype,
versionCheckHook,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "splash";
version = "3.11.5";
src = fetchFromGitHub {
owner = "danieljprice";
repo = "splash";
rev = "v${finalAttrs.version}";
hash = "sha256-Zvg8QOpRBb9VmuJCKhwAxy0k04a4FOWDHfgFmIV9ruk=";
};
nativeBuildInputs = [
gfortran
];
buildInputs = [
giza
cairo
freetype
hdf5
];
makeFlags = [
"SYSTEM=gfortran"
"GIZA_DIR=${giza}"
"PREFIX=${placeholder "out"}"
];
# Upstream's simplistic makefile doesn't even `mkdir $(PREFIX)`, so we help
# it:
preInstall = ''
mkdir -p $out/bin
'';
nativeInstallCheckInputs = [
versionCheckHook
];
doInstallCheck = true;
meta = {
description = "Interactive visualisation and plotting tool using kernel interpolation, mainly used for Smoothed Particle Hydrodynamics simulations";
inherit (finalAttrs.src.meta) homepage;
license = lib.licenses.lgpl3Plus;
maintainers = with lib.maintainers; [ doronbehar ];
platforms = lib.platforms.all;
};
})