8 rustPlatform.buildRustPackage rec {
9 pname = "sus-compiler";
12 src = fetchFromGitHub {
14 repo = "sus-compiler";
16 hash = "sha256-VSoroUultjBn2KxfvyhS923RQ/1v9AXb15k4/MoR+oM=";
17 fetchSubmodules = true;
20 # no lockfile upstream
21 cargoLock.lockFile = ./Cargo.lock;
24 export HOME="$TMPDIR";
28 ln -s ${./Cargo.lock} Cargo.lock
31 doInstallCheck = true;
32 nativeInstallCheckInputs = [ versionCheckHook ];
33 versionCheckProgram = "${placeholder "out"}/bin/sus_compiler";
36 description = "A new Hardware Design Language that keeps you in the driver's seat";
37 homepage = "https://github.com/pc2/sus-compiler";
38 license = lib.licenses.gpl3Only;
39 maintainers = with lib.maintainers; [ pbsds ];
40 mainProgram = "sus_compiler";