diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2024-04-10 16:46:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-10 16:46:20 +0200 |
commit | d715ca173af6ebe2a0fdcfbed28d8e6bb823fad8 (patch) | |
tree | 4e3b479c648b8ebce9ea59cfb2ff97430d2229f5 /pkgs/by-name/pa | |
parent | 1530c0622bd74bfbb93ab694f55b44551c84bc8c (diff) | |
parent | 3b6cbc4da2084a8669078ca4091a6fba84e21a4e (diff) |
Merge pull request #287984 from Aleksanaa/pablodraw
pablodraw: init at 3.3.13-beta
Diffstat (limited to 'pkgs/by-name/pa')
-rw-r--r-- | pkgs/by-name/pa/pablodraw/deps.nix | 28 | ||||
-rw-r--r-- | pkgs/by-name/pa/pablodraw/package.nix | 69 |
2 files changed, 97 insertions, 0 deletions
diff --git a/pkgs/by-name/pa/pablodraw/deps.nix b/pkgs/by-name/pa/pablodraw/deps.nix new file mode 100644 index 0000000000000..16de8a8c63fd1 --- /dev/null +++ b/pkgs/by-name/pa/pablodraw/deps.nix @@ -0,0 +1,28 @@ +# This file was automatically generated by passthru.fetch-deps. +# Please dont edit it manually, your changes might get overwritten! + +{ fetchNuGet }: [ + (fetchNuGet { pname = "AtkSharp"; version = "3.24.24.38"; sha256 = "12dv3j8nzhjb5c0093djajdnv8n7m0q7vq2d5ry2v4xk9wqzxpr7"; }) + (fetchNuGet { pname = "CairoSharp"; version = "3.24.24.38"; sha256 = "0n3y5w088k81apxik9amfvjdwcic4k2ixxvnrk9cw6d2wh1d5r8d"; }) + (fetchNuGet { pname = "dotnet-outdated-tool"; version = "4.1.0"; sha256 = "1i3i2hnf4qszlp3yzwggnvz4qpp3lgrzf19ygsmbvqzw1g7w150c"; }) + (fetchNuGet { pname = "Eto.Forms"; version = "2.7.4"; sha256 = "0q50fw646h25an5j8c4p1gck8ja20vy344w1gb7rdp167d573mb3"; }) + (fetchNuGet { pname = "Eto.Platform.Gtk"; version = "2.7.4"; sha256 = "0zy35zw1s4al305y4b496f5nf9vmmm7i0jf8j0dlq6df8bfjifcn"; }) + (fetchNuGet { pname = "GdkSharp"; version = "3.24.24.38"; sha256 = "0c5gzg106bnnc4wwwhch6lja68623a9hk8r2sjcv35hl5dh21616"; }) + (fetchNuGet { pname = "GioSharp"; version = "3.24.24.38"; sha256 = "1b3irarxjbbpf24fw2avdglcslb5653gn6m829yhlcm5ay37pds4"; }) + (fetchNuGet { pname = "GLibSharp"; version = "3.24.24.38"; sha256 = "1a0ixdq1gdb46gkb2nnlydsi10bjrbd3risfyaphsy8fbsyzrzvm"; }) + (fetchNuGet { pname = "GtkSharp"; version = "3.24.24.38"; sha256 = "0cn8aggci6n088y5giiaxmyzv01rcz37r8pm738q2bsb57zppz2j"; }) + (fetchNuGet { pname = "Lidgren.Network"; version = "1.0.2"; sha256 = "0ka0vwyy060wd1dn1551m56fv957mmc7dxlj71g7n6qmsi1mdhif"; }) + (fetchNuGet { pname = "Microsoft.NETCore.Platforms"; version = "1.1.0"; sha256 = "08vh1r12g6ykjygq5d3vq09zylgb84l63k49jc4v8faw9g93iqqm"; }) + (fetchNuGet { pname = "Mono.Nat"; version = "3.0.3"; sha256 = "1b3alh1wz28y62cflwl1jppigv499cndm8sds32xsmvwpdwiq4yl"; }) + (fetchNuGet { pname = "NETStandard.Library"; version = "2.0.3"; sha256 = "1fn9fxppfcg4jgypp2pmrpr6awl3qz1xmnri0cygpkwvyx27df1y"; }) + (fetchNuGet { pname = "Newtonsoft.Json"; version = "13.0.2"; sha256 = "1p9splg1min274dpz7xdfgzrwkyfd3xlkygwpr1xgjvvyjvs6b0i"; }) + (fetchNuGet { pname = "PangoSharp"; version = "3.24.24.38"; sha256 = "0cma8j4cy4j3fw0nvsxlqi0azjkvfjsw0wb6k6b2k21rdpy5rbbn"; }) + (fetchNuGet { pname = "SharpCompress"; version = "0.32.2"; sha256 = "1p198bl08ia89rf4n6yjpacj3yrz6s574snsfl40l8vlqcdrc1pm"; }) + (fetchNuGet { pname = "System.Buffers"; version = "4.5.1"; sha256 = "04kb1mdrlcixj9zh1xdi5as0k0qi8byr5mi3p3jcxx72qz93s2y3"; }) + (fetchNuGet { pname = "System.ComponentModel.Annotations"; version = "5.0.0"; sha256 = "021h7x98lblq9avm1bgpa4i31c2kgsa7zn4sqhxf39g087ar756j"; }) + (fetchNuGet { pname = "System.Memory"; version = "4.5.4"; sha256 = "14gbbs22mcxwggn0fcfs1b062521azb9fbb7c113x0mq6dzq9h6y"; }) + (fetchNuGet { pname = "System.Numerics.Vectors"; version = "4.4.0"; sha256 = "0rdvma399070b0i46c4qq1h2yvjj3k013sqzkilz4bz5cwmx1rba"; }) + (fetchNuGet { pname = "System.Runtime.CompilerServices.Unsafe"; version = "4.5.3"; sha256 = "1afi6s2r1mh1kygbjmfba6l4f87pi5sg13p4a48idqafli94qxln"; }) + (fetchNuGet { pname = "System.Runtime.CompilerServices.Unsafe"; version = "6.0.0"; sha256 = "0qm741kh4rh57wky16sq4m0v05fxmkjjr87krycf5vp9f0zbahbc"; }) + (fetchNuGet { pname = "System.Text.Encoding.CodePages"; version = "6.0.0"; sha256 = "0gm2kiz2ndm9xyzxgi0jhazgwslcs427waxgfa30m7yqll1kcrww"; }) +] diff --git a/pkgs/by-name/pa/pablodraw/package.nix b/pkgs/by-name/pa/pablodraw/package.nix new file mode 100644 index 0000000000000..418b9a9c01513 --- /dev/null +++ b/pkgs/by-name/pa/pablodraw/package.nix @@ -0,0 +1,69 @@ +{ lib +, buildDotnetModule +, fetchFromGitHub +, dotnetCorePackages +, wrapGAppsHook +, 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 = [ wrapGAppsHook 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 + }; +} |