Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

splash: init at 3.10.3 #336295

Merged
merged 2 commits into from
Sep 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions pkgs/by-name/gi/giza/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
lib,
stdenv,
fetchFromGitHub,
autoreconfHook,
pkg-config,
gfortran,
cairo,
freetype,
}:

stdenv.mkDerivation (finalAttrs: {
pname = "giza";
version = "1.4.1";

src = fetchFromGitHub {
owner = "danieljprice";
repo = "giza";
rev = "v${finalAttrs.version}";
hash = "sha256-spb46IoySf6DM454adcWmqqLlzNA2HK9z29TzOCECJ4=";
};

nativeBuildInputs = [
autoreconfHook
pkg-config
gfortran
];

buildInputs = [
cairo
freetype
];

meta = {
description = "Scientific plotting library for C/Fortran";
inherit (finalAttrs.src.meta) homepage;
changelog = "${finalAttrs.src.meta.homepage}/blob/${finalAttrs.src.rev}/ChangeLog";
license = lib.licenses.lgpl3Plus;
maintainers = with lib.maintainers; [ doronbehar ];
platforms = lib.platforms.all;
};
})
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;
};
})