Skip to content

Commit

Permalink
Merge pull request #299537 from DontEatOreo/move-mousecape
Browse files Browse the repository at this point in the history
mousecape: move to by-name/mo
  • Loading branch information
a-n-n-a-l-e-e committed Mar 27, 2024
2 parents b0d9998 + ba1834b commit 893bfe0
Showing 1 changed file with 6 additions and 11 deletions.
@@ -1,27 +1,22 @@
{ lib
, stdenvNoCC
, fetchurl
, unzip
, fetchzip
}:

stdenvNoCC.mkDerivation (finalAttrs: {
pname = "mousecape";
version = "1813";

src = fetchurl {
src = fetchzip {
url = "https://github.com/alexzielenski/Mousecape/releases/download/${finalAttrs.version}/Mousecape_${finalAttrs.version}.zip";
hash = "sha256-lp7HFGr1J+iQCUWVDplF8rFcTrGf+DX4baYzLsUi/9I=";
hash = "sha256-VjbvrXfsRFpbTJfIHFvyCxRdDcGNv0zzLToWn7lyLM8=";
};

sourceRoot = ".";

nativeBuildInputs = [ unzip ];

installPhase = ''
runHook preInstall
mkdir -p $out/Applications
mv Mousecape.app $out/Applications
mkdir -p $out/Applications/Mousecape.app
cp -R . $out/Applications/Mousecape.app/
runHook postInstall
'';
Expand All @@ -30,7 +25,7 @@ stdenvNoCC.mkDerivation (finalAttrs: {
description = "A cursor manager for macOS built using private, nonintrusive CoreGraphics APIs";
homepage = "https://github.com/alexzielenski/Mousecape";
license = with lib; licenses.free;
maintainers = with lib; with maintainers; [ DontEatOreo ];
maintainers = with lib; with maintainers; [ donteatoreo ];
platforms = with lib; platforms.darwin;
sourceProvenance = with lib; with sourceTypes; [ binaryNativeCode ];
};
Expand Down

0 comments on commit 893bfe0

Please sign in to comment.