2022-07-14 12:49:19 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, cmake
|
|
|
|
, fetchFromGitHub
|
2022-12-02 08:20:57 +00:00
|
|
|
, fetchpatch
|
2022-07-14 12:49:19 +00:00
|
|
|
, wrapQtAppsHook
|
|
|
|
, qtbase
|
|
|
|
, qtquickcontrols2
|
|
|
|
, qtgraphicaleffects
|
2021-06-06 07:54:09 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "graphia";
|
2022-12-02 08:20:57 +00:00
|
|
|
version = "3.2";
|
2021-06-06 07:54:09 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "graphia-app";
|
|
|
|
repo = "graphia";
|
|
|
|
rev = version;
|
2022-12-02 08:20:57 +00:00
|
|
|
sha256 = "sha256-9kohXLXF4F/qoHm8qmvPM1y9ak0Thb4xvgKJlVuOPTg=";
|
2021-06-06 07:54:09 +00:00
|
|
|
};
|
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
patches = [
|
|
|
|
# Fix for a breakpad incompatibility with glibc>2.33
|
|
|
|
# https://github.com/pytorch/pytorch/issues/70297
|
|
|
|
# https://github.com/google/breakpad/commit/605c51ed96ad44b34c457bbca320e74e194c317e
|
|
|
|
./breakpad-sigstksz.patch
|
2022-12-02 08:20:57 +00:00
|
|
|
|
|
|
|
# FIXME: backport patch fixing build with Qt 5.15, remove for next release
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/graphia-app/graphia/commit/4b51bb8d465afa7ed0b2b30cb1c5e1c6af95976f.patch";
|
|
|
|
hash = "sha256-GDJAFLxQlRWKvcOgqqPYV/aVTRM7+KDjW7Zp9l7SuyM=";
|
|
|
|
})
|
2022-07-14 12:49:19 +00:00
|
|
|
];
|
|
|
|
|
2021-06-06 07:54:09 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
wrapQtAppsHook
|
|
|
|
];
|
2022-07-14 12:49:19 +00:00
|
|
|
|
2021-06-06 07:54:09 +00:00
|
|
|
buildInputs = [
|
|
|
|
qtbase
|
|
|
|
qtquickcontrols2
|
|
|
|
qtgraphicaleffects
|
|
|
|
];
|
|
|
|
|
|
|
|
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
|
|
|
|
broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin;
|
2021-06-06 07:54:09 +00:00
|
|
|
description = "A visualisation tool for the creation and analysis of graphs.";
|
|
|
|
homepage = "https://graphia.app";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = [ maintainers.bgamari ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|