Philip Taron 22b88ba79d
treewide: adjust meta descriptions to avoid definite or indefinite articles
This patch was produced in Vim by me, a human being. All errors are the fault of the operator. I did try to be careful.

Co-authored-by: Peder Bergebakken Sundt <pbsds@hotmail.com>
Co-authored-by: dotlambda <nix@dotlambda.de>
2025-06-05 11:04:25 -07:00

46 lines
1.0 KiB
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
versionCheckHook,
nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "sus-compiler";
version = "0.2.1";
src = fetchFromGitHub {
owner = "pc2";
repo = "sus-compiler";
rev = "v${finalAttrs.version}";
hash = "sha256-dQef5TiOV33lnNl7XKl7TlCY0E2sEclehWOmy2uvISY=";
fetchSubmodules = true;
};
# no lockfile upstream
cargoLock.lockFile = ./Cargo.lock;
preBuild = ''
export HOME="$TMPDIR";
'';
postPatch = ''
ln -s ${./Cargo.lock} Cargo.lock
'';
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgram = "${placeholder "out"}/bin/sus_compiler";
updateScript = nix-update-script { extraArgs = [ "--generate-lockfile" ]; };
meta = {
description = "New Hardware Design Language that keeps you in the driver's seat";
homepage = "https://github.com/pc2/sus-compiler";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ pbsds ];
mainProgram = "sus_compiler";
};
})