From a73fa42d6dc0fdd1a86ddc62c40409ae9487eb18 Mon Sep 17 00:00:00 2001 From: reo101 Date: Fri, 26 May 2023 21:16:52 +0300 Subject: [PATCH] feat(win2xcur): add package --- pkgs/default.nix | 1 + pkgs/win2xcur/default.nix | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 pkgs/win2xcur/default.nix diff --git a/pkgs/default.nix b/pkgs/default.nix index 08ab7a4..f32a792 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -10,4 +10,5 @@ parinfer-rust = pkgs.callPackage ./parinfer-rust { }; swww = pkgs.callPackage ./swww { }; vim-fmi-cli = pkgs.callPackage ./vim-fmi-cli { }; + win2xcur = pkgs.callPackage ./win2xcur { }; } diff --git a/pkgs/win2xcur/default.nix b/pkgs/win2xcur/default.nix new file mode 100644 index 0000000..74d9199 --- /dev/null +++ b/pkgs/win2xcur/default.nix @@ -0,0 +1,22 @@ +{ lib, python3Packages, fetchPypi }: + +python3Packages.buildPythonPackage rec { + pname = "win2xcur"; + version = "0.1.2"; + + src = fetchPypi { + inherit pname version; + sha256 = "sha256-B8srOXQBUxK6dZ6GhDA5fYvxUBxHVcrSO/z+UWyF+qI="; + }; + + propagatedBuildInputs = with python3Packages; [ + numpy + wand + ]; + + meta = with lib; { + description = "win2xcur is a tool that converts cursors from Windows format (*.cur, *.ani) to Xcursor format. It also contains x2wincur which does the opposite."; + homepage = "https://github.com/quantum5/win2xcur"; + maintainers = with maintainers; [ reo101 ]; + }; +}