Merge pull request #196357 from Enzime/shortcat

This commit is contained in:
Sandro 2022-10-27 14:17:27 +02:00 committed by GitHub
commit 21fa5a05ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 31 additions and 0 deletions

View file

@ -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;
};
}

View file

@ -25569,6 +25569,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";