From eedce14df40cdb66c6b60dfcbae958fe71386b81 Mon Sep 17 00:00:00 2001 From: Sven van Heugten Date: Sun, 22 Feb 2026 20:26:18 +0100 Subject: [PATCH] Add git-check-assertions --- flake.lock | 36 +++++++++++++++++++++++++++++++----- flake.nix | 11 ++++++++++- 2 files changed, 41 insertions(+), 6 deletions(-) diff --git a/flake.lock b/flake.lock index 2672916..340c112 100644 --- a/flake.lock +++ b/flake.lock @@ -13,17 +13,42 @@ "type": "github" }, "original": { - "id": "flake-utils", - "type": "indirect" + "owner": "numtide", + "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": { "locked": { - "lastModified": 1769740369, - "narHash": "sha256-xKPyJoMoXfXpDM5DFDZDsi9PHArf2k5BJjvReYXoFpM=", + "lastModified": 1771207753, + "narHash": "sha256-b9uG8yN50DRQ6A7JdZBfzq718ryYrlmGgqkRm9OOwCE=", "owner": "nixos", "repo": "nixpkgs", - "rev": "6308c3b21396534d8aaeac46179c14c439a89b8a", + "rev": "d1c15b7d5806069da59e819999d70e1cec0760bf", "type": "github" }, "original": { @@ -36,6 +61,7 @@ "root": { "inputs": { "flake-utils": "flake-utils", + "git-check-assertions": "git-check-assertions", "nixpkgs": "nixpkgs" } }, diff --git a/flake.nix b/flake.nix index e0f87e9..5447ef1 100644 --- a/flake.nix +++ b/flake.nix @@ -2,12 +2,18 @@ inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; 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 = { self, nixpkgs, flake-utils, + git-check-assertions, }: flake-utils.lib.eachDefaultSystem ( system: @@ -17,7 +23,10 @@ { packages.default = pkgs.callPackage ./default.nix { }; devShells.default = pkgs.mkShell { - packages = [ pkgs.dotnet-sdk_10 ]; + packages = [ + pkgs.dotnet-sdk_10 + git-check-assertions.packages.${system}.default + ]; }; } )