Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 42 lines 1.1 kB view raw
1{ lib 2, fetchFromGitHub 3, rustPlatform 4}: 5 6rustPlatform.buildRustPackage rec { 7 pname = "wasynth"; 8 version = "0.12.0"; 9 10 src = fetchFromGitHub { 11 owner = "Rerumu"; 12 repo = "Wasynth"; 13 rev = "v${version}"; 14 sha256 = "sha256-hbY+epUtYSQrvnAbCELsVcqd3UoXGn24FkzWfrM0K14="; 15 }; 16 17 # A lock file isn't provided, so it must be added manually. 18 cargoLock.lockFile = ./Cargo.lock; 19 postPatch = '' 20 cp ${./Cargo.lock} Cargo.lock 21 ''; 22 23 # Not all of the tests pass. 24 doCheck = false; 25 26 # These binaries are tests and should be removed. 27 postInstall = '' 28 rm $out/bin/{luajit,luau}_translate 29 ''; 30 31 meta = with lib; { 32 description = "WebAssembly translation tools for various languages"; 33 longDescription = '' 34 Wasynth provides the following WebAssembly translation tools: 35 * wasm2luajit: translate WebAssembly to LuaJIT source code 36 * wasm2luau: translate WebAssembly Luau source code 37 ''; 38 homepage = "https://github.com/Rerumu/Wasynth"; 39 license = with licenses; [ gpl3Only ]; 40 maintainers = with maintainers; [ wackbyte ]; 41 }; 42}