From 50dc6929092d40392d956d4b4f6f52aa7a4d9ca2 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Tue, 11 Jan 2022 13:08:49 +0800 Subject: [PATCH] vpaint: init at 2021-01-11 --- pkgs/default.nix | 1 + pkgs/vpaint.nix | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 pkgs/vpaint.nix diff --git a/pkgs/default.nix b/pkgs/default.nix index 91e41db8..e1fea5a9 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -21,4 +21,5 @@ with pkgs; { ratt = callPackage ./ratt.nix { }; tic-80 = callPackage ./tic-80 { }; sioyek = libsForQt5.callPackage ./sioyek.nix { }; + vpaint = libsForQt5.callPackage ./vpaint.nix { }; } diff --git a/pkgs/vpaint.nix b/pkgs/vpaint.nix new file mode 100644 index 00000000..e671d8b5 --- /dev/null +++ b/pkgs/vpaint.nix @@ -0,0 +1,27 @@ +{ stdenv, lib, fetchFromGitHub, libGLU, cmake, qtbase, wrapQtAppsHook }: + +stdenv.mkDerivation rec { + pname = "vpaint"; + version = "2022-01-11"; + + src = fetchFromGitHub { + owner = "dalboris"; + repo = pname; + rev = "6b1bf57e3c239194443f7284adfd5c5326cd1bf2"; + sha256 = "sha256-0lI+BeynkZ2RfTJmJ9pOVNQ+UcrRSi4r+6hALJ1SMss="; + }; + + nativeBuildInputs = [ wrapQtAppsHook cmake ]; + buildInputs = [ qtbase libGLU ]; + + installPhase = '' + install -Dm644 src/VAC/libVAC.a -t $out/lib + install -Dm755 src/Gui/VPaint -t $out/bin + install -Dm644 ../examples/*.vec -t $out/share/${pname}/examples + ''; + + meta = with lib; { + description = "Experimental vector graphics and 3D animation editor"; + homepage = "https://www.vpaint.org/"; + }; +}