Merge pull request #270468 from pbsds/spadelang

spade: init at 0.5.0
This commit is contained in:
Peder Bergebakken Sundt 2023-12-05 17:30:51 +01:00 committed by GitHub
commit fae7198d73
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1857 additions and 0 deletions

1813
pkgs/by-name/sp/spade/Cargo.lock generated Normal file

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,44 @@
{ lib
, rustPlatform
, fetchFromGitLab
, stdenv
}:
rustPlatform.buildRustPackage rec {
pname = "spade";
version = "0.5.0";
src = fetchFromGitLab {
owner = "spade-lang";
repo = "spade";
rev = "v${version}";
hash = "sha256-PvheMYpsDWAXPf8K3K8yloCH0UTjzzVPuMBlcGC1xKU=";
# only needed for vatch, which contains test data
fetchSubmodules = true;
};
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"codespan-0.12.0" = "sha256-3F2006BR3hyhxcUTaQiOjzTEuRECKJKjIDyXonS/lrE=";
"local-impl-0.1.0" = "sha256-w6kQ4wM/ZQJmOqmAAq9FFDzyt9xHOY14av5dsSIFRU0=";
"tracing-tree-0.2.0" = "sha256-/JNeAKjAXmKPh0et8958yS7joORDbid9dhFB0VUAhZc=";
};
};
# Cargo.lock is outdated
postConfigure = ''
cargo metadata --offline
'';
meta = with lib; {
description = "A better hardware description language";
homepage = "https://gitlab.com/spade-lang/spade";
changelog = "https://gitlab.com/spade-lang/spade/-/blob/${src.rev}/CHANGELOG.md";
# compiler is eupl12, spade-lang stdlib is both asl20 and mit
license = with licenses; [ eupl12 asl20 mit ];
maintainers = with maintainers; [ pbsds ];
mainProgram = "spade";
broken = stdenv.isDarwin; # ld: symbol(s) not found for architecture ${system}
};
}