13 rustPlatform.buildRustPackage rec {
17 src = fetchFromGitLab {
21 hash = "sha256-Yuq1eYjxNnmrydzPyx+UWJJlZnC9sIEP3ZEleKmkzIM=";
24 cargoHash = "sha256-3WcMXvxlY0I7HnR+GTxHPAN+1HQsQLymjGFMM6q18xQ=";
27 # de-vendor spade git submodule
28 test "$version" = "${spade.version}" || {
29 >&2 echo ERROR: version mismatch between spade and swim!
32 ln -s ${spade.src} runt/spade
35 nativeBuildInputs = [ pkg-config ];
41 ++ lib.optionals stdenv.isDarwin [
42 darwin.apple_sdk.frameworks.Security
43 darwin.apple_sdk.frameworks.SystemConfiguration
46 nativeCheckInputs = [ git ];
49 # tries to clone https://gitlab.com/spade-lang/swim-templates
50 "--skip=init::tests::git_init_then_swim_init_works"
51 "--skip=init::tests::init_board_correctly_sets_project_name"
52 "--skip=init::tests::init_board_creates_required_files"
53 "--skip=plugin::test::deny_changes_to_plugins::edits_are_denied"
54 "--skip=plugin::test::deny_changes_to_plugins::restores_work"
58 inherit (spade) updateScript;
62 description = "Build tool for spade";
63 homepage = "https://gitlab.com/spade-lang/swim";
64 changelog = "https://gitlab.com/spade-lang/swim/-/blob/${src.rev}/CHANGELOG.md";
65 license = lib.licenses.eupl12;
66 maintainers = with lib.maintainers; [ pbsds ];