Add git-check-assertions

This commit is contained in:
Sven van Heugten 2026-02-22 20:26:18 +01:00
parent 28e05ee220
commit eedce14df4
2 changed files with 41 additions and 6 deletions

36
flake.lock generated
View file

@ -13,17 +13,42 @@
"type": "github" "type": "github"
}, },
"original": { "original": {
"id": "flake-utils", "owner": "numtide",
"type": "indirect" "repo": "flake-utils",
"type": "github"
}
},
"git-check-assertions": {
"inputs": {
"flake-utils": [
"flake-utils"
],
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1771774123,
"narHash": "sha256-iqZc5RqLMSFWBWpXDn+eaD1xhiIkUm+a6JnEkVFxGMQ=",
"ref": "main",
"rev": "601a51109d383a7e1f8a4c76235bf314c812825f",
"revCount": 17,
"type": "git",
"url": "https://codeberg.org/svenvanheugten/git-check-assertions.git"
},
"original": {
"ref": "main",
"type": "git",
"url": "https://codeberg.org/svenvanheugten/git-check-assertions.git"
} }
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1769740369, "lastModified": 1771207753,
"narHash": "sha256-xKPyJoMoXfXpDM5DFDZDsi9PHArf2k5BJjvReYXoFpM=", "narHash": "sha256-b9uG8yN50DRQ6A7JdZBfzq718ryYrlmGgqkRm9OOwCE=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "6308c3b21396534d8aaeac46179c14c439a89b8a", "rev": "d1c15b7d5806069da59e819999d70e1cec0760bf",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -36,6 +61,7 @@
"root": { "root": {
"inputs": { "inputs": {
"flake-utils": "flake-utils", "flake-utils": "flake-utils",
"git-check-assertions": "git-check-assertions",
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
} }
}, },

View file

@ -2,12 +2,18 @@
inputs = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils"; flake-utils.url = "github:numtide/flake-utils";
git-check-assertions = {
url = "git+https://codeberg.org/svenvanheugten/git-check-assertions.git?ref=main";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "flake-utils";
};
}; };
outputs = outputs =
{ {
self, self,
nixpkgs, nixpkgs,
flake-utils, flake-utils,
git-check-assertions,
}: }:
flake-utils.lib.eachDefaultSystem ( flake-utils.lib.eachDefaultSystem (
system: system:
@ -17,7 +23,10 @@
{ {
packages.default = pkgs.callPackage ./default.nix { }; packages.default = pkgs.callPackage ./default.nix { };
devShells.default = pkgs.mkShell { devShells.default = pkgs.mkShell {
packages = [ pkgs.dotnet-sdk_10 ]; packages = [
pkgs.dotnet-sdk_10
git-check-assertions.packages.${system}.default
];
}; };
} }
) )