-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathtshm-docs-ts.nix
32 lines (27 loc) · 918 Bytes
/
tshm-docs-ts.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ fetchurl, lib, stdenv }:
stdenv.mkDerivation rec {
pname = "tshm-docs-ts";
version = "0.4.2";
src = if stdenv.isDarwin
then fetchurl {
url = "https://github.com/samhh/tshm/releases/download/${version}/tshm-docs-ts-${version}-macos-x86_64";
sha256 = "1hmxz6sslxp6336dacc18fbg425bxabvnkassyg7z111hk6jzz74";
}
else fetchurl {
url = "https://github.com/samhh/tshm/releases/download/${version}/tshm-docs-ts-${version}-linux-x86_64";
sha256 = "128skc68bkcfc0bg0xjwd9dn9203by70dzvr6ki9nhr3qvggnf2p";
};
dontUnpack = true;
dontStrip = true;
installPhase = ''
mkdir -p $out/bin/
cp $src $out/bin/tshm-docs-ts
chmod +x $out/bin/tshm-docs-ts
'';
meta = {
homepage = "https://github.com/samhh/tshm";
license = lib.licenses.mit;
# Assuming Rosetta for aarch64-darwin.
platforms = [ "x86_64-linux" "x86_64-darwin" "aarch64-darwin" ];
};
}