forscape: init at 0.0.2-unstable-2025-04-28 (#401373)

This commit is contained in:
Doron Behar
2025-05-01 15:54:32 +03:00
committed by GitHub
2 changed files with 87 additions and 0 deletions
+55
View File
@@ -0,0 +1,55 @@
{
lib,
stdenv,
fetchFromGitHub,
# nativeBuildInputs
cmake,
qt6,
python3,
# buildInputs
eigen,
parallel-hashmap,
readerwriterqueue,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "forscape";
version = "0.0.2-unstable-2025-04-28";
src = fetchFromGitHub {
owner = "JohnDTill";
repo = "Forscape";
rev = "1b6d82cdee7ed1ffeee8adffa56ca2b0a866cb34";
hash = "sha256-Ee3SAFZG8I0ZEbggLVViqTYu4SFjNJ62xLcpfLgFlR0=";
};
cmakeFlags = [
"-DUSE_CONAN=OFF"
];
# Relative to build directory
cmakeDir = "../app";
nativeBuildInputs = [
cmake
qt6.wrapQtAppsHook
python3
];
buildInputs = [
eigen
parallel-hashmap
readerwriterqueue
qt6.qtbase
qt6.qtsvg
];
meta = {
description = "Scientific computing language";
homepage = "https://github.com/JohnDTill/Forscape";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ doronbehar ];
mainProgram = "Forscape";
platforms = lib.platforms.all;
};
})
@@ -0,0 +1,32 @@
{
lib,
stdenv,
fetchFromGitHub,
cmake,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "readerwriterqueue";
# Not using a stable version since this one produces
# readerwriterqueueConfig.cmake needed by dependent packages.
version = "1.0.6-2024-07-09";
src = fetchFromGitHub {
owner = "cameron314";
repo = "readerwriterqueue";
rev = "16b48ae1148284e7b40abf72167206a4390a4592";
hash = "sha256-m4cUIXiDFxTguDZ7d0svjlOSkUNYY0bbUp3t7adBwOo=";
};
nativeBuildInputs = [
cmake
];
meta = {
description = "Fast single-producer, single-consumer lock-free queue for C";
homepage = "https://github.com/cameron314/readerwriterqueue";
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ doronbehar ];
platforms = lib.platforms.all;
};
})