nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 78 lines 1.8 kB view raw
1{ 2 lib, 3 buildDotnetModule, 4 fetchFromGitHub, 5 dotnetCorePackages, 6 wrapGAppsHook3, 7 copyDesktopItems, 8 gtk3, 9 libnotify, 10 makeDesktopItem, 11 stdenv, 12}: 13 14buildDotnetModule rec { 15 pname = "pablodraw"; 16 version = "3.1.14-beta"; 17 18 src = fetchFromGitHub { 19 owner = "cwensley"; 20 repo = "pablodraw"; 21 tag = version; 22 hash = "sha256-p2YeWC3ZZOI5zDpgDmEX3C5ByAAjLxJ0CqFAqKeoJ0Q="; 23 }; 24 25 projectFile = "Source/PabloDraw/PabloDraw.csproj"; 26 27 executables = [ "PabloDraw" ]; 28 29 dotnet-sdk = dotnetCorePackages.sdk_9_0; 30 31 nugetDeps = ./deps.json; 32 33 dotnetFlags = [ 34 "-p:EnableCompressionInSingleFile=false" 35 "-p:TargetFrameworks=net9.0" 36 ]; 37 38 nativeBuildInputs = [ 39 wrapGAppsHook3 40 copyDesktopItems 41 ]; 42 43 runtimeDeps = [ 44 gtk3 45 libnotify 46 ]; 47 48 desktopItems = [ 49 (makeDesktopItem { 50 name = "PabloDraw"; 51 exec = "PabloDraw"; 52 comment = "An Ansi/Ascii text and RIPscrip vector graphic art editor/viewer"; 53 type = "Application"; 54 icon = "pablodraw"; 55 desktopName = "PabloDraw"; 56 terminal = false; 57 categories = [ "Graphics" ]; 58 }) 59 ]; 60 61 postInstall = '' 62 install -Dm644 Assets/PabloDraw-512.png $out/share/icons/hicolor/512x512/apps/pablodraw.png 63 install -Dm644 Assets/PabloDraw-64.png $out/share/icons/hicolor/64x64/apps/pablodraw.png 64 ''; 65 66 meta = { 67 description = "Ansi/Ascii text and RIPscrip vector graphic art editor/viewer with multi-user capabilities"; 68 homepage = "https://picoe.ca/products/pablodraw"; 69 license = lib.licenses.mit; 70 mainProgram = "PabloDraw"; 71 maintainers = with lib.maintainers; [ 72 aleksana 73 kip93 74 ]; 75 platforms = lib.platforms.all; 76 broken = stdenv.hostPlatform.isDarwin; # Eto.Platform.Mac64 not found in nugetSource 77 }; 78}