nixpkgs/pkgs/by-name/pa/pablodraw/package.nix
Jan Tojnar eb04659fc2 treewide: wrapGAppsHook → wrapGAppsHook3
This was achieved using the following command:

    sd 'wrapGAppsHook\b' wrapGAppsHook3 (rg -l 'wrapGAppsHook\b')

And then manually reverted the following changes:

- alias in top-level.nix
- function name in wrap-gapps-hook.sh
- comment in postFixup of at-spi2-core
- comment in gtk4
- comment in preFixup of 1password-gui/linux.nix
- comment in postFixup of qgis/unwrapped-ltr.nix and qgis/unwrapped.nix
- comment in postFixup of telegram-desktop
- comment in postFixup of fwupd
- buildCommand of mongodb-compass
- postFixup of xflux-gui
- comment in a patch in kdePackages.kde-gtk-config and plasma5Packages.kde-gtk-config
- description of programs.sway.wrapperFeatures.gtk NixOS option (manual rebuild)
2024-04-27 02:23:22 +02:00

70 lines
1.8 KiB
Nix

{ lib
, buildDotnetModule
, fetchFromGitHub
, dotnetCorePackages
, wrapGAppsHook3
, copyDesktopItems
, gtk3
, libnotify
, makeDesktopItem
, stdenv
}:
buildDotnetModule rec {
pname = "pablodraw";
version = "3.3.13-beta";
src = fetchFromGitHub {
owner = "cwensley";
repo = "pablodraw";
rev = version;
hash = "sha256-PsCFiNcWYh6Bsf5Ihi3IoYyv66xUT1cRBKkx+K5gB/M=";
};
postPatch = ''
substituteInPlace ${projectFile} \
--replace-warn '<EnableCompressionInSingleFile>True</EnableCompressionInSingleFile>' ""
'';
projectFile = "Source/PabloDraw/PabloDraw.csproj";
executables = [ "PabloDraw" ];
dotnet-sdk = dotnetCorePackages.sdk_7_0;
dotnet-runtime = dotnetCorePackages.runtime_7_0;
nugetDeps = ./deps.nix;
nativeBuildInputs = [ wrapGAppsHook3 copyDesktopItems ];
runtimeDeps = [ gtk3 libnotify ];
desktopItems = [
(makeDesktopItem {
name = "PabloDraw";
exec = "PabloDraw";
comment = "An Ansi/Ascii text and RIPscrip vector graphic art editor/viewer";
type = "Application";
icon = "pablodraw";
desktopName = "PabloDraw";
terminal = false;
categories = [ "Graphics" ];
})
];
postInstall = ''
install -Dm644 Assets/PabloDraw-512.png $out/share/icons/hicolor/512x512/apps/pablodraw.png
install -Dm644 Assets/PabloDraw-64.png $out/share/icons/hicolor/64x64/apps/pablodraw.png
'';
meta = with lib; {
description = "An Ansi/Ascii text and RIPscrip vector graphic art editor/viewer with multi-user capabilities";
homepage = "https://picoe.ca/products/pablodraw";
license = licenses.mit;
mainProgram = "PabloDraw";
maintainers = with maintainers; [ aleksana kip93 ];
platforms = platforms.all;
broken = stdenv.isDarwin; # Eto.Platform.Mac64 not found in nugetSource
};
}