2022-09-11 15:47:08 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitLab
|
|
|
|
, rustPlatform
|
|
|
|
, cargo
|
|
|
|
, pkg-config
|
|
|
|
, binutils-unwrapped
|
|
|
|
, gtk3-x11
|
|
|
|
, atk
|
|
|
|
, glib
|
|
|
|
, librsvg
|
|
|
|
, gdk-pixbuf
|
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "pizarra";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "1.7.5";
|
2022-09-11 15:47:08 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "categulario";
|
|
|
|
repo = "pizarra-gtk";
|
|
|
|
rev = "v${version}";
|
|
|
|
fetchSubmodules = true;
|
2023-11-16 04:20:00 +00:00
|
|
|
sha256 = "sha256-vnjhveX3EVIfJLiHWhlvhoPcRx1a8Nnjj7hIaPgU3Zw=";
|
2022-09-11 15:47:08 +00:00
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
cargoHash = "sha256-btvMUKADGHlXLmeKF1K9Js44SljZ0MejGId8aDwPhVU=";
|
2022-09-11 15:47:08 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ wrapGAppsHook pkg-config gdk-pixbuf ];
|
|
|
|
|
|
|
|
buildInputs = [ gtk3-x11 atk glib librsvg ];
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
postInstall = ''
|
|
|
|
install -Dm444 res/icons/tk.categulario.pizarra.svg $out/share/icons/hicolor/scalable/apps/pizarra.svg
|
|
|
|
install -Dm444 res/pizarra.desktop -t $out/share/applications
|
|
|
|
substituteInPlace $out/share/applications/pizarra.desktop \
|
|
|
|
--replace "TryExec=/usr/bin/" "TryExec=" \
|
|
|
|
--replace "Exec=/usr/bin/" "Exec=" \
|
|
|
|
--replace "Icon=/usr/share/icons/hicolor/scalable/apps/pizarra.svg" "Icon=pizarra"
|
|
|
|
'';
|
|
|
|
|
2022-09-11 15:47:08 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A simple blackboard written in GTK";
|
|
|
|
longDescription = ''
|
|
|
|
A simple endless blackboard.
|
|
|
|
Contains various features, such as:
|
|
|
|
- Pencil
|
|
|
|
- Rectangle
|
|
|
|
- Ellipse
|
|
|
|
- Line
|
|
|
|
- Text
|
|
|
|
- Grids
|
|
|
|
'';
|
2022-09-30 11:47:45 +00:00
|
|
|
homepage = "https://pizarra.categulario.xyz/en/";
|
2022-09-11 15:47:08 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ mglolenstine ];
|
|
|
|
};
|
|
|
|
}
|