mirror of
https://github.com/9001/copyparty.git
synced 2025-11-24 15:32:30 -07:00
22 lines
620 B
Nix
22 lines
620 B
Nix
{ fetchzip, breakpointHook, stdenvNoCC }: stdenvNoCC.mkDerivation rec {
|
|
# The build script for this uses docker, so let's just use the release tarball
|
|
name = "hash-wasm";
|
|
version = "4.12.0";
|
|
|
|
src = fetchzip {
|
|
url = "https://github.com/Daninet/hash-wasm/releases/download/v${version}/hash-wasm@${version}.zip";
|
|
hash = "sha256-bjHpMzOXPCoKVoucVY7CXZ70vPtn8+UXMxBD7KOHg2k=";
|
|
};
|
|
|
|
dontBuild = true;
|
|
|
|
installPhase = ''
|
|
mkdir $out
|
|
cp $src/* -r --target-directory=$out
|
|
'';
|
|
|
|
nativeBuildInputs = [ breakpointHook ];
|
|
|
|
npmDepsHash = "sha256-S9g8YlrsD7t0y9qi/CsN7qHZcT/TDfC1XxiArSGjAe4=";
|
|
}
|