From eb47cc02dd07fa423b9e7f43a4948b521bfdafae Mon Sep 17 00:00:00 2001 From: Viacheslav Lotsmanov Date: Thu, 8 Apr 2021 22:22:53 +0300 Subject: [PATCH] place-cursor-at: init at 1.0.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To make it available in “release-20.09” as top-level package. --- .../misc/place-cursor-at/default.nix | 30 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/applications/misc/place-cursor-at/default.nix diff --git a/pkgs/applications/misc/place-cursor-at/default.nix b/pkgs/applications/misc/place-cursor-at/default.nix new file mode 100644 index 00000000000000..6a11f1b1258d91 --- /dev/null +++ b/pkgs/applications/misc/place-cursor-at/default.nix @@ -0,0 +1,30 @@ +{ stdenv +, fetchFromGitHub +, haskellPackages +, libXinerama +}: +let inherit (haskellPackages) base base-unicode-symbols X11; in +haskellPackages.mkDerivation rec { + pname = "place-cursor-at"; + version = "1.0.1"; + + src = fetchFromGitHub { + owner = "unclechu"; + repo = "place-cursor-at"; + rev = "v${version}"; + sha256 = "1kryqcjnj33v6dva8nfb46qjw7ar9x7lhrns1ncns53xy2mdl9f0"; + }; + + isExecutable = true; + isLibrary = false; + enableSharedExecutables = false; + enableLibraryProfiling = false; + doHaddock = false; + postFixup = "rm -rf $out/lib $out/nix-support $out/share/doc"; + + executableHaskellDepends = [ base base-unicode-symbols X11 ]; + executableSystemDepends = [ libXinerama ]; + homepage = "https://github.com/unclechu/place-cursor-at#readme"; + description = "A utility for X11 that moves the mouse cursor using the keyboard"; + license = stdenv.lib.licenses.gpl3; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c266569a70da92..3b5e753008484d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -25135,6 +25135,8 @@ in pioneers = callPackage ../games/pioneers { }; + place-cursor-at = callPackage ../applications/misc/place-cursor-at {}; + planetary_annihilation = callPackage ../games/planetaryannihilation { }; pong3d = callPackage ../games/pong3d { };