diff options
author | Sandro | 2024-06-20 12:01:27 +0200 |
---|---|---|
committer | GitHub | 2024-06-20 12:01:27 +0200 |
commit | 9576a4c9e0dce842fc0c2a2734bc785751695c61 (patch) | |
tree | 04872e7f268a7ae412f1e0a558796026e9999433 /pkgs/by-name/de | |
parent | d01280a978c7403f23e2bc650aa43804420b4b52 (diff) | |
parent | 9a1d2b98add7ab665398d3fad5fd83da88da77bf (diff) |
Merge pull request #318829 from linsui/design
Diffstat (limited to 'pkgs/by-name/de')
-rw-r--r-- | pkgs/by-name/de/design/package.nix | 58 |
1 files changed, 58 insertions, 0 deletions
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"; + }; +} |