servicepoint-binding-csharp/flake.nix
Vinzenz Schroeter 178ab1eb74
Some checks failed
Rust / build (pull_request) Failing after 16s
separate types for commands
2025-06-16 16:41:46 +02:00

67 lines
1.5 KiB
Nix

{
description = "C# bindings for the servicepoint library.";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05";
};
outputs =
{
self,
nixpkgs,
}:
let
lib = nixpkgs.lib;
supported-systems = [
"x86_64-linux"
"aarch64-linux"
"aarch64-darwin"
"x86_64-darwin"
];
forAllSystems =
f:
lib.genAttrs supported-systems (
system:
f rec {
pkgs = nixpkgs.legacyPackages.${system};
inherit system;
}
);
in
{
devShells = forAllSystems (
{ pkgs, system }:
{
default = pkgs.mkShell {
packages = with pkgs; [
(pkgs.symlinkJoin {
name = "rust-toolchain";
paths = [
rustc
cargo
rustPlatform.rustcSrc
rustfmt
clippy
cargo-expand
cargo-tarpaulin
];
})
dotnet-sdk_8
gcc
gnumake
xe
xz
pkg-config
gdb
zlib
];
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1;
};
}
);
formatter = forAllSystems ({ pkgs, ... }: pkgs.nixfmt-rfc-style);
};
}