1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-14 11:57:34 +00:00

[MathSymbolsInput] v1.2 -> v1.3

This commit is contained in:
Ryan Orendorff 2023-01-08 21:40:44 -07:00
parent 55b3754e21
commit 8fbdc6464e

View file

@ -1,20 +1,13 @@
{ stdenv, fetchurl, xar, zip, cpio }:
let
patch = fetchurl {
url =
"https://github.com/knrafto/MathSymbolsInput/commit/19352edd3e181d7ff3030460b3a87bbbaef7bccc.patch";
sha256 = "sha256-0q0PJE3ZxaIHof5o6epgncMtgrVBWBIm+CZbkfl1Z2E=";
};
in stdenv.mkDerivation rec {
stdenv.mkDerivation rec {
pname = "MathSymbolsInput";
version = "v1.2";
version = "v1.3";
src = fetchurl {
url =
"https://github.com/knrafto/${pname}/releases/download/${version}/${pname}.pkg";
sha256 = "sha256-/zQ9PEP9qO6fc77PcWeHMJa7gICyJL6UmuoZPNezDVc=";
sha256 = "sha256-+s+TFoAv2rWl3gOHp8LLUZm+OTMDxgZtK0vmHQDJzFU=";
};
phases = [ "unpackPhase" "buildPhase" "installPhase" ];
@ -24,7 +17,6 @@ in stdenv.mkDerivation rec {
buildPhase = ''
cat MathSymbolsInput.pkg/Payload | gunzip -dc | cpio -i
patch -u Math\ Symbols\ Input.app/Contents/Resources/commands.txt -i ${patch}
'';
installPhase = ''