From 9a1d2b98add7ab665398d3fad5fd83da88da77bf Mon Sep 17 00:00:00 2001 From: linsui Date: Mon, 10 Jun 2024 23:00:00 +0800 Subject: [PATCH] design: init at 46-alpha1 --- pkgs/by-name/de/design/package.nix | 58 ++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 pkgs/by-name/de/design/package.nix diff --git a/pkgs/by-name/de/design/package.nix b/pkgs/by-name/de/design/package.nix new file mode 100644 index 000000000000..fc6b5f2fc4b4 --- /dev/null +++ b/pkgs/by-name/de/design/package.nix @@ -0,0 +1,58 @@ +{ lib +, stdenv +, fetchFromGitHub +, wrapGAppsHook4 +, appstream-glib +, blueprint-compiler +, desktop-file-utils +, meson +, ninja +, pkg-config +, glib +, gjs +, libadwaita +}: + +stdenv.mkDerivation rec { + pname = "design"; + version = "46-alpha1"; + + src = fetchFromGitHub { + owner = "dubstar-04"; + repo = "Design"; + rev = "v${version}"; + fetchSubmodules = true; + hash = "sha256-Q4R/Ztu4w8IRvq15xNXN/iP/6hIHe/W+me1jROGpYc8="; + }; + + nativeBuildInputs = [ + appstream-glib + blueprint-compiler + desktop-file-utils + gjs + meson + ninja + pkg-config + wrapGAppsHook4 + ]; + + buildInputs = [ + glib + libadwaita + ]; + + # Use a symlink here so that the basename isn't changed by the wrapper which is used to decide the resource path. + postInstall = '' + mv $out/bin/io.github.dubstar_04.design $out/share/design/ + ln -s $out/share/design/io.github.dubstar_04.design $out/bin + ''; + + meta = { + homepage = "https://github.com/dubstar-04/Design"; + description = "2D CAD For GNOME"; + maintainers = with lib.maintainers; [ linsui ]; + license = lib.licenses.gpl3Plus; + platforms = lib.platforms.linux; + mainProgram = "io.github.dubstar_04.design"; + }; +}