From 2c7ebf1fb995c7680ebb7379e4ca44ebff7b5df3 Mon Sep 17 00:00:00 2001 From: Michael Hoang Date: Mon, 17 Oct 2022 16:25:49 +1100 Subject: [PATCH] shortcat: init at 0.11.0 --- pkgs/os-specific/darwin/shortcat/default.nix | 29 ++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/os-specific/darwin/shortcat/default.nix diff --git a/pkgs/os-specific/darwin/shortcat/default.nix b/pkgs/os-specific/darwin/shortcat/default.nix new file mode 100644 index 000000000000..dcf32a4fd9e3 --- /dev/null +++ b/pkgs/os-specific/darwin/shortcat/default.nix @@ -0,0 +1,29 @@ +{ lib, stdenv, fetchurl, unzip, ... }: + +stdenv.mkDerivation rec { + pname = "shortcat"; + version = "0.11.0"; + + src = fetchurl { + url = "https://files.shortcat.app/releases/v${version}/Shortcat.zip"; + sha256 = "sha256-P8NQy9odWOD8wRHBTmaNH7OCXXvgQsMiI169KfsAABU="; + }; + + sourceRoot = "Shortcat.app"; + + nativeBuildInputs = [ unzip ]; + + installPhase = '' + mkdir -p $out/Applications/Shortcat.app + cp -R . $out/Applications/Shortcat.app + ''; + + meta = with lib; { + description = "Manipulate macOS masterfully, minus the mouse"; + homepage = "https://shortcat.app/"; + sourceProvenance = with sourceTypes; [ binaryNativeCode ]; + platforms = platforms.darwin; + maintainers = with maintainers; [ Enzime ]; + license = licenses.unfreeRedistributable; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ac51b9fcc46b..acd44f864546 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -25417,6 +25417,8 @@ with pkgs; shadow = callPackage ../os-specific/linux/shadow { }; + shortcat = callPackage ../os-specific/darwin/shortcat { }; + sinit = callPackage ../os-specific/linux/sinit { rcinit = "/etc/rc.d/rc.init"; rcshutdown = "/etc/rc.d/rc.shutdown";