From bb50a8ecebbcd09aa82ccc3a3da0a423bb212f44 Mon Sep 17 00:00:00 2001 From: Evan Richter Date: Fri, 9 Jun 2023 17:02:11 -0400 Subject: [PATCH] maskromtool: init at v2023-05-30 --- pkgs/tools/graphics/maskromtool/default.nix | 43 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 45 insertions(+) create mode 100644 pkgs/tools/graphics/maskromtool/default.nix diff --git a/pkgs/tools/graphics/maskromtool/default.nix b/pkgs/tools/graphics/maskromtool/default.nix new file mode 100644 index 000000000000..9f0978c3e99c --- /dev/null +++ b/pkgs/tools/graphics/maskromtool/default.nix @@ -0,0 +1,43 @@ +{ lib +, stdenv +, fetchFromGitHub +, cmake +, qtbase +, qt6 +, wrapQtAppsHook +}: + +stdenv.mkDerivation rec { + pname = "maskromtool"; + version = "2023-05-30"; + + src = fetchFromGitHub { + owner = "travisgoodspeed"; + repo = "maskromtool"; + rev = "v${version}"; + hash = "sha256-HiP9igrq9rmW7MxdTdOsJ86j/Ccxb2lFTaIJfyUW7Bo="; + }; + + buildInputs = [ + qtbase + qt6.qtcharts + qt6.qttools + ]; + + nativeBuildInputs = [ + cmake + wrapQtAppsHook + ]; + + meta = { + description = "A CAD tool for extracting bits from Mask ROM photographs"; + homepage = "https://github.com/travisgoodspeed/maskromtool"; + license = [ + lib.licenses.beerware + lib.licenses.gpl1Plus + ]; + maintainers = [ + lib.maintainers.evanrichter + ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c67d4fb18d51..a64e26e45a7a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9398,6 +9398,8 @@ with pkgs; mask = callPackage ../development/tools/mask { }; + maskromtool = qt6Packages.callPackage ../tools/graphics/maskromtool { }; + mathpix-snipping-tool = callPackage ../tools/misc/mathpix-snipping-tool { }; matrix-conduit = callPackage ../servers/matrix-conduit { };