Skip to content

Commit

Permalink
splash: init at 3.10.3
Browse files Browse the repository at this point in the history
  • Loading branch information
doronbehar committed Aug 31, 2024
1 parent 3f1e3e5 commit 30fc5db
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions pkgs/by-name/sp/splash/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
lib,
stdenv,
fetchFromGitHub,
gfortran,
giza,
hdf5,
cairo,
freetype,
versionCheckHook,
}:

stdenv.mkDerivation (finalAttrs: {
pname = "splash";
version = "3.10.3";

src = fetchFromGitHub {
owner = "danieljprice";
repo = "splash";
rev = "v${finalAttrs.version}";
hash = "sha256-5ieJHUWZDGgsNj7U9tbdhtDIsN+wgbs03IxVd1xM+hw=";
};

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 = "An 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;
};
})

0 comments on commit 30fc5db

Please sign in to comment.