From 2bb1c6d4948eecbdacea1267ee0a132aa88a7b5c Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sun, 31 Mar 2024 23:44:59 +0200 Subject: fix(templates): Update already done templates with improvements from new ones --- templates/c/flake.nix | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'templates/c/flake.nix') diff --git a/templates/c/flake.nix b/templates/c/flake.nix index cd4200c..e19bbd4 100644 --- a/templates/c/flake.nix +++ b/templates/c/flake.nix @@ -11,6 +11,15 @@ }; }; + flake_version_update = { + url = "git+https://codeberg.org/soispha/flake_version_update.git"; + inputs = { + systems.follows = "systems"; + nixpkgs.follows = "nixpkgs"; + flake-utils.follows = "flake-utils"; + }; + }; + # inputs for following systems = { url = "github:nix-systems/x86_64-linux"; # only evaluate for this system @@ -32,6 +41,7 @@ nixpkgs, flake-utils, treefmt-nix, + flake_version_update, ... }: flake-utils.lib.eachDefaultSystem (system: let @@ -40,8 +50,9 @@ nativeBuildInputs = with pkgs; [valgrind pandoc]; treefmtEval = import ./treefmt.nix {inherit treefmt-nix pkgs;}; + # This version is set automatically on `cog bump --auto`; + version = "v0.1.0"; # GUIDING VERSION STRING pname = "TODO"; - version = "0.1"; build = pkgs.stdenv.mkDerivation { inherit pname version; @@ -61,6 +72,9 @@ devShells.default = pkgs.mkShell { packages = with pkgs; [ cocogitto + flake_version_update.packages."${system}".default + + licensure ]; inherit nativeBuildInputs; env = { -- cgit 1.4.1