mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-04-13 15:58:21 +00:00
26 lines
604 B
Nix
26 lines
604 B
Nix
{ stdenv, fetchurl, xar, zip, cpio }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "MathSymbolsInput";
|
|
version = "v1.3";
|
|
|
|
src = fetchurl {
|
|
url =
|
|
"https://github.com/knrafto/${pname}/releases/download/${version}/${pname}.pkg";
|
|
sha256 = "sha256-+s+TFoAv2rWl3gOHp8LLUZm+OTMDxgZtK0vmHQDJzFU=";
|
|
};
|
|
|
|
phases = [ "unpackPhase" "buildPhase" "installPhase" ];
|
|
unpackPhase = "xar -xf $src";
|
|
|
|
buildInputs = [ xar zip cpio ];
|
|
|
|
buildPhase = ''
|
|
cat MathSymbolsInput.pkg/Payload | gunzip -dc | cpio -i
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir -p $out
|
|
cp -r "Math Symbols Input.app" $out
|
|
'';
|
|
}
|