mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-30 16:53:40 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
58 lines
1.4 KiB
Nix
58 lines
1.4 KiB
Nix
{ lib
|
|
, fetchFromGitLab
|
|
, rustPlatform
|
|
, pkg-config
|
|
, gtk3-x11
|
|
, atk
|
|
, glib
|
|
, librsvg
|
|
, gdk-pixbuf
|
|
, wrapGAppsHook3
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "pizarra";
|
|
version = "1.7.5";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "categulario";
|
|
repo = "pizarra-gtk";
|
|
rev = "v${version}";
|
|
fetchSubmodules = true;
|
|
hash = "sha256-vnjhveX3EVIfJLiHWhlvhoPcRx1a8Nnjj7hIaPgU3Zw=";
|
|
};
|
|
|
|
cargoHash = "sha256-btvMUKADGHlXLmeKF1K9Js44SljZ0MejGId8aDwPhVU=";
|
|
|
|
nativeBuildInputs = [ wrapGAppsHook3 pkg-config gdk-pixbuf ];
|
|
|
|
buildInputs = [ gtk3-x11 atk glib librsvg ];
|
|
|
|
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"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Simple blackboard written in GTK";
|
|
mainProgram = "pizarra";
|
|
longDescription = ''
|
|
A simple endless blackboard.
|
|
Contains various features, such as:
|
|
- Pencil
|
|
- Rectangle
|
|
- Ellipse
|
|
- Line
|
|
- Text
|
|
- Grids
|
|
'';
|
|
homepage = "https://pizarra.categulario.xyz/en/";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ mglolenstine ];
|
|
};
|
|
}
|