Skip to content

Commit

Permalink
sim-daltonism: init at 2.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
emilytrau committed Jul 8, 2023
1 parent 5cbff28 commit 33613a4
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
35 changes: 35 additions & 0 deletions pkgs/applications/accessibility/sim-daltonism/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{ lib
, stdenvNoCC
, fetchurl
, unzip
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "sim-daltonism";
version = "2.0.5";

src = fetchurl {
url = "https://littoral.michelf.ca/apps/sim-daltonism/sim-daltonism-${finalAttrs.version}.zip";
sha256 = "0wnsnv65y25imkffmcfk8rwld2a7dcg4zwqa9afb5ffpph7sm57h";
};
dontUnpack = true;

nativeBuildInputs = [ unzip ];

installPhase = ''
runHook preInstall
mkdir -p $out/Applications
unzip -d $out/Applications $src
runHook postInstall
'';

meta = with lib; {
description = "Color blindness simulator for Mac";
homepage = "https://michelf.ca/projects/mac/sim-daltonism";
license = licenses.asl20;
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
maintainers = with maintainers; [ emilytrau Enzime ];
platforms = [ "x86_64-darwin" ];
};
})
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5987,6 +5987,8 @@ with pkgs;
inherit (darwin.apple_sdk.frameworks) Security;
};

sim-daltonism = callPackage ../applications/accessibility/sim-daltonism { };

simdjson = callPackage ../development/libraries/simdjson { };

shisho = callPackage ../tools/security/shisho { };
Expand Down

0 comments on commit 33613a4

Please sign in to comment.