Skip to content

Commit 70f8fa6

Browse files
committed
drawy: init at 1.0.0-alpha-unstable-2025-11-17
1 parent 0614f69 commit 70f8fa6

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed

pkgs/by-name/dr/drawy/package.nix

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{
2+
lib,
3+
stdenv,
4+
fetchFromGitHub,
5+
cmake,
6+
qt6,
7+
nix-update-script,
8+
}:
9+
10+
stdenv.mkDerivation {
11+
pname = "drawy";
12+
version = "1.0.0-alpha-unstable-2025-11-17";
13+
14+
src = fetchFromGitHub {
15+
owner = "Prayag2";
16+
repo = "drawy";
17+
rev = "ca02b66a9615c45c78f2e29839a40c1e5bf8f71c";
18+
hash = "sha256-PzIeyhF/1wKD6JyybNRzruuxzSKJZvIq+L7X0rrcQUY=";
19+
};
20+
21+
strictDeps = true;
22+
23+
nativeBuildInputs = [
24+
cmake
25+
qt6.wrapQtAppsHook
26+
];
27+
28+
buildInputs = with qt6; [
29+
qtbase
30+
qttools
31+
];
32+
33+
postInstall = ''
34+
for size in 16 32 256 512; do
35+
install -D --mode=644 \
36+
"$src"/assets/logo-$size.png \
37+
"$out/share/icons/hicolor/''${size}x''${size}/apps/drawy.png"
38+
done
39+
40+
install -D --mode=644 \
41+
"$src"/assets/logo.svg \
42+
"$out"/share/icons/hicolor/scalable/apps/drawy.svg
43+
44+
install -D --mode=644 \
45+
"$src"/deploy/appimage/AppDir/usr/share/applications/drawy.desktop \
46+
--target-directory="$out"/share/applications
47+
'';
48+
49+
passthru.updateScript = nix-update-script { };
50+
51+
meta = {
52+
description = "Handy and infinite brainstorming tool";
53+
homepage = "https://github.com/Prayag2/drawy";
54+
license = lib.licenses.gpl3Only;
55+
maintainers = with lib.maintainers; [
56+
yiyu
57+
quarterstar
58+
];
59+
mainProgram = "drawy";
60+
platforms = lib.platforms.all;
61+
};
62+
}

0 commit comments

Comments
 (0)