delineate: 0.1.0 -> 0.1.1 (#442893)

This commit is contained in:
Peder Bergebakken Sundt
2025-09-15 23:13:55 +00:00
committed by GitHub
2 changed files with 9 additions and 23 deletions
@@ -1,13 +0,0 @@
diff --git a/meson.build b/meson.build
index 616ccff..d32b4c5 100644
--- a/meson.build
+++ b/meson.build
@@ -29,7 +29,7 @@ version = meson.project_version()
prefix = get_option('prefix')
bindir = prefix / get_option('bindir')
localedir = prefix / get_option('localedir')
-graphviewsrcdir = prefix / 'src/delineate/graph_view'
+graphviewsrcdir = prefix / 'opt/delineate/graph_view'
datadir = prefix / get_option('datadir')
pkgdatadir = datadir / meson.project_name()
+9 -10
View File
@@ -2,7 +2,6 @@
appstream,
buildNpmPackage,
cargo,
cmake,
desktop-file-utils,
fetchFromGitHub,
gtk4,
@@ -40,27 +39,29 @@ let
in
stdenv.mkDerivation (finalAttrs: {
pname = "delineate";
version = "0.1.0";
version = "0.1.1";
src = fetchFromGitHub {
owner = "SeaDve";
repo = "Delineate";
tag = "v${finalAttrs.version}";
hash = "sha256-dFGh7clxc6UxQRTsNKrggWDvL3CPmzJmrvO1jqMVoTg=";
hash = "sha256-rYA5TKHX3QJHcUhaTFDpcXQ6tdaG3MbX8buvzV0V5iY=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
inherit (finalAttrs) src;
hash = "sha256-RtQnpbjULtnvlc71L4KIKPES0WRSY2GoaIwt8UvlYOA=";
hash = "sha256-6XBg9kbIr5k+TMQ/TE/qsAA5rKIevU9M1m+jsPrqfYw=";
};
patches = [
./graphview-dir.patch
];
# rename $out/src -> $out/opt
postPatch = ''
substituteInPlace ./meson.build --replace-fail \
"graphviewsrcdir = prefix / 'src/delineate/graph_view'" \
"graphviewsrcdir = prefix / 'opt/delineate/graph_view'"
'';
nativeBuildInputs = [
cargo
cmake
desktop-file-utils
gtk4
meson
@@ -79,8 +80,6 @@ stdenv.mkDerivation (finalAttrs: {
webkitgtk_6_0
];
dontUseCmakeConfigure = true;
postInstall = ''
ln -s ${d3-graphviz}/lib/node_modules/d3-graphviz $out/opt/delineate/graph_view/d3-graphviz
'';