Skip to content

Commit c79599c

Browse files
committed
switch main branch to unstable, add a check to ensure nixpkgs input has consistent format
1 parent 7dbc65b commit c79599c

3 files changed

Lines changed: 14 additions & 5 deletions

File tree

checks/nixpkgs-input.nix

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{ runCommand
2+
, gnugrep
3+
, ...
4+
}:
5+
runCommand "check-nixpkgs-input" { } ''
6+
${gnugrep}/bin/grep -E 'nixpkgs.url *= *"github:NixOS/nixpkgs/nixos-(unstable|[0-9]+.[0-9]+)";' ${./../flake.nix}
7+
touch $out
8+
''

flake.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
description = "NixOS WSL";
33

44
inputs = {
5-
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
5+
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
66

77
flake-compat = {
88
url = "github:edolstra/flake-compat";
@@ -78,6 +78,7 @@
7878
{
7979
dotnet-format = pkgs.callPackage ./checks/dotnet-format.nix args;
8080
nixpkgs-fmt = pkgs.callPackage ./checks/nixpkgs-fmt.nix args;
81+
nixpkgs-input = pkgs.callPackage ./checks/nixpkgs-input.nix args;
8182
rustfmt = pkgs.callPackage ./checks/rustfmt.nix args;
8283
side-effects = pkgs.callPackage ./checks/side-effects.nix args;
8384
username = pkgs.callPackage ./checks/username.nix args;

0 commit comments

Comments
 (0)