Peder Bergebakken Sundt
2026-05-06 03:18:02 +02:00
parent 70d71edf85
commit 6f5cd1ec38
+9 -14
View File
@@ -10,25 +10,16 @@
rustPlatform.buildRustPackage rec {
pname = "swim";
version = "0.17.0";
version = "0.18.0";
src = fetchFromGitLab {
owner = "spade-lang";
repo = "swim";
rev = "v${version}";
hash = "sha256-5GxOW5Np5CS1hO8Bd/CoKuRHMiQ9Q2Xz61NGyXXNF7Q=";
hash = "sha256-l0iEzctt3WHW7m3wnr5WdthqBlGSh0SxHCQlM6it0Ds=";
};
cargoHash = "sha256-TmPw/vP4/LZrBOv1/vJBv3NIn75NnRQmtS4gdmZRH2w=";
preConfigure = ''
# de-vendor spade git submodule
test "$version" = "${spade.version}" || {
>&2 echo ERROR: version mismatch between spade and swim!
false
}
ln -s ${spade.src} runt/spade
'';
cargoHash = "sha256-k3sWg/oG5+ckxa10Jt/AncbyoB8kaOcG3xKPg1fl/ME=";
nativeBuildInputs = [ pkg-config ];
@@ -36,11 +27,15 @@ rustPlatform.buildRustPackage rec {
openssl
];
nativeCheckInputs = [ git ];
nativeCheckInputs = [
git
spade
];
checkFlags = [
# tries to clone https://gitlab.com/spade-lang/swim-templates
# tries to find git after clearing environ
"--skip=init::tests::git_init_then_swim_init_works"
# tries to clone https://gitlab.com/spade-lang/swim-templates
"--skip=init::tests::init_board_correctly_sets_project_name"
"--skip=init::tests::init_board_creates_required_files"
"--skip=plugin::test::deny_changes_to_plugins::edits_are_denied"