mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-16 21:38:21 +00:00
[MathSymbolsInput] v1.2 -> v1.3
This commit is contained in:
parent
55b3754e21
commit
8fbdc6464e
1 changed files with 3 additions and 11 deletions
|
@ -1,20 +1,13 @@
|
||||||
{ stdenv, fetchurl, xar, zip, cpio }:
|
{ stdenv, fetchurl, xar, zip, cpio }:
|
||||||
|
|
||||||
let
|
stdenv.mkDerivation rec {
|
||||||
patch = fetchurl {
|
|
||||||
url =
|
|
||||||
"https://github.com/knrafto/MathSymbolsInput/commit/19352edd3e181d7ff3030460b3a87bbbaef7bccc.patch";
|
|
||||||
sha256 = "sha256-0q0PJE3ZxaIHof5o6epgncMtgrVBWBIm+CZbkfl1Z2E=";
|
|
||||||
};
|
|
||||||
|
|
||||||
in stdenv.mkDerivation rec {
|
|
||||||
pname = "MathSymbolsInput";
|
pname = "MathSymbolsInput";
|
||||||
version = "v1.2";
|
version = "v1.3";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url =
|
url =
|
||||||
"https://github.com/knrafto/${pname}/releases/download/${version}/${pname}.pkg";
|
"https://github.com/knrafto/${pname}/releases/download/${version}/${pname}.pkg";
|
||||||
sha256 = "sha256-/zQ9PEP9qO6fc77PcWeHMJa7gICyJL6UmuoZPNezDVc=";
|
sha256 = "sha256-+s+TFoAv2rWl3gOHp8LLUZm+OTMDxgZtK0vmHQDJzFU=";
|
||||||
};
|
};
|
||||||
|
|
||||||
phases = [ "unpackPhase" "buildPhase" "installPhase" ];
|
phases = [ "unpackPhase" "buildPhase" "installPhase" ];
|
||||||
|
@ -24,7 +17,6 @@ in stdenv.mkDerivation rec {
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
cat MathSymbolsInput.pkg/Payload | gunzip -dc | cpio -i
|
cat MathSymbolsInput.pkg/Payload | gunzip -dc | cpio -i
|
||||||
patch -u Math\ Symbols\ Input.app/Contents/Resources/commands.txt -i ${patch}
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
|
Loading…
Add table
Reference in a new issue