From ddaff9c11f864cb9d9ee5b0049beaf0aacc4131e Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Sun, 7 Aug 2022 00:12:42 +0800 Subject: [PATCH] vgc: init at 2022-08-07 Though it cannot be built at the moment and should be only up for preview until the Harfbuzz CMake config path is correct. See the comment in the package definition for more details. --- pkgs/default.nix | 1 + pkgs/vgc/default.nix | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 pkgs/vgc/default.nix diff --git a/pkgs/default.nix b/pkgs/default.nix index 0f960f82..0ca67395 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -54,6 +54,7 @@ let thokr = callPackage ./thokr.nix { }; segno = callPackage ./segno.nix { }; vpaint = libsForQt5.callPackage ./vpaint.nix { }; + vgc = libsForQt5.callPackage ./vgc { }; watc = callPackage ./watc { }; wayback = callPackage ./wayback.nix { }; wzmach = callPackage ./wzmach { }; diff --git a/pkgs/vgc/default.nix b/pkgs/vgc/default.nix new file mode 100644 index 00000000..8957e2e4 --- /dev/null +++ b/pkgs/vgc/default.nix @@ -0,0 +1,40 @@ +{ stdenv +, lib +, fetchFromGitHub +, wrapQtAppsHook +, cmake +, python3 +, harfbuzz +, freetype +, libGLU +, git +}: + +# TODO: Get rid of the build date or at least set the build date to zero to be +# reproducible. +stdenv.mkDerivation rec { + pname = "vgc"; + version = "2022-08-06"; + + src = fetchFromGitHub { + owner = "vgc"; + repo = "vgc"; + rev = "f0d99b02b6bb63cebee3de8f40dab72732da3271"; + sha256 = "sha256-LZG73LSM+q1TFFs+UkGB8S4eWPJu8VvRJsaGcqyTnu0="; + fetchSubmodules = true; + }; + + nativeBuildInputs = [ wrapQtAppsHook cmake harfbuzz ]; + + buildInputs = [ python3 git freetype libGLU ]; + + meta = with lib; { + # Harfbuzz CMake path is not correct. See NixOS/nixpkgs#180054 for the + # specific issue. Wait until this has been resolved. + broken = true; + homepage = "https://www.vgc.io/"; + description = + "Upcoming suite of vector-drawing applications that makes use of Vector Graphics Complex (VGC)"; + license = licenses.asl20; + }; +}