2022-07-14 12:49:19 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, cmake
|
2024-04-21 15:54:59 +00:00
|
|
|
, git
|
2022-07-14 12:49:19 +00:00
|
|
|
, fetchFromGitHub
|
2022-12-02 08:20:57 +00:00
|
|
|
, fetchpatch
|
2022-07-14 12:49:19 +00:00
|
|
|
, wrapQtAppsHook
|
|
|
|
, qtbase
|
2024-04-21 15:54:59 +00:00
|
|
|
, qtdeclarative
|
|
|
|
, qtsvg
|
|
|
|
, qtwebengine
|
2021-06-06 07:54:09 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "graphia";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "4.2";
|
2021-06-06 07:54:09 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "graphia-app";
|
|
|
|
repo = "graphia";
|
|
|
|
rev = version;
|
2024-04-21 15:54:59 +00:00
|
|
|
sha256 = "sha256-8+tlQbTr6BGx+/gjviuNrQQWcxC/j6dJ+PxwB4fYmqQ=";
|
2021-06-06 07:54:09 +00:00
|
|
|
};
|
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
patches = [
|
2024-04-21 15:54:59 +00:00
|
|
|
# Fix gcc-13 build:
|
2022-12-02 08:20:57 +00:00
|
|
|
(fetchpatch {
|
2024-04-21 15:54:59 +00:00
|
|
|
name = "gcc-13.patch";
|
|
|
|
url = "https://github.com/graphia-app/graphia/commit/78fb55a4d73f96e9a182de433c7da60330bd5b5e.patch";
|
|
|
|
hash = "sha256-waI2ur3gOKMQvqB2Qnyz7oMOMConl3jLMVKKmOmTpJs=";
|
2022-12-02 08:20:57 +00:00
|
|
|
})
|
2022-07-14 12:49:19 +00:00
|
|
|
];
|
|
|
|
|
2021-06-06 07:54:09 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
2024-04-21 15:54:59 +00:00
|
|
|
git # needs to define some hash as a version
|
2021-06-06 07:54:09 +00:00
|
|
|
wrapQtAppsHook
|
|
|
|
];
|
2022-07-14 12:49:19 +00:00
|
|
|
|
2021-06-06 07:54:09 +00:00
|
|
|
buildInputs = [
|
|
|
|
qtbase
|
2024-04-21 15:54:59 +00:00
|
|
|
qtdeclarative
|
|
|
|
qtsvg
|
|
|
|
qtwebengine
|
2021-06-06 07:54:09 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2022-06-16 17:23:12 +00:00
|
|
|
# never built on Hydra https://hydra.nixos.org/job/nixpkgs/trunk/graphia.x86_64-darwin
|
2024-09-26 11:04:55 +00:00
|
|
|
broken = (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) || stdenv.hostPlatform.isDarwin;
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Visualisation tool for the creation and analysis of graphs";
|
2021-06-06 07:54:09 +00:00
|
|
|
homepage = "https://graphia.app";
|
|
|
|
license = licenses.gpl3Only;
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "Graphia";
|
2021-06-06 07:54:09 +00:00
|
|
|
maintainers = [ maintainers.bgamari ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|