Compare commits

3 Commits

Author SHA1 Message Date
Smaug123
56d0b0c44e Merge branch 'main' into woodpecker
Some checks failed
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/all-checks-complete Pipeline was successful
ci/woodpecker/pr/build Pipeline failed
ci/woodpecker/pr/all-checks-complete unknown status
2023-12-03 17:42:49 +00:00
Smaug123
331092ff44 Try this
All checks were successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/all-checks-complete Pipeline was successful
2023-12-03 17:42:08 +00:00
Smaug123
89958b0fa0 Woodpecker
All checks were successful
ci/woodpecker/manual/build Pipeline was successful
ci/woodpecker/manual/all-checks-complete Pipeline was successful
2023-12-03 17:25:37 +00:00
2 changed files with 42 additions and 22 deletions

View File

@@ -8,6 +8,7 @@ steps:
# Test # Test
- nix develop --command dotnet test - nix develop --command dotnet test
- nix develop --command dotnet test --configuration Release - nix develop --command dotnet test --configuration Release
- nix develop --command alejandra --check .
when: when:
- event: "push" - event: "push"

View File

@@ -1,26 +1,45 @@
{ {
description = "Advent of Code 2023"; description = "Advent of Code 2023";
inputs = { inputs = {
flake-utils.url = "github:numtide/flake-utils"; flake-utils.url = "github:numtide/flake-utils";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
}; };
outputs = { outputs = {
self, self,
nixpkgs, nixpkgs,
flake-utils, flake-utils,
}: flake-utils.lib.eachDefaultSystem (system: }:
let pkgs = nixpkgs.legacyPackages.${system}; in flake-utils.lib.eachDefaultSystem (
{ system: let
devShells = { default = pkgs.mkShell { pkgs = nixpkgs.legacyPackages.${system};
buildInputs = with pkgs; [ in
(with dotnetCorePackages; # Conditionally include Swift and Apple SDK for Darwin systems
combinePackages [ let
dotnet-sdk_8 darwinDeps =
dotnetPackages.Nuget if system == "x86_64-darwin" || system == "aarch64-darwin"
]) then [
] ++ [pkgs.swift darwin.apple_sdk.frameworks.Foundation darwin.apple_sdk.frameworks.CryptoKit darwin.apple_sdk.frameworks.GSS pkgs.zlib pkgs.zlib.dev pkgs.openssl pkgs.icu]; pkgs.swift
};}; pkgs.darwin.apple_sdk.frameworks.Foundation
} pkgs.darwin.apple_sdk.frameworks.CryptoKit
pkgs.darwin.apple_sdk.frameworks.GSS
]
else [];
in {
devShells = {
default = pkgs.mkShell {
buildInputs = with pkgs;
[
(with dotnetCorePackages;
combinePackages [
dotnet-sdk_8
dotnetPackages.Nuget
])
]
++ darwinDeps
++ [pkgs.zlib pkgs.zlib.dev pkgs.openssl pkgs.icu pkgs.alejandra];
};
};
}
); );
} }