Files
nixpkgs/pkgs/by-name/de/design/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

60 lines
1.2 KiB
Nix

{
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";
tag = "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";
};
}