Skip to content

Commit 51d92b3

Browse files
committed
switch main branch to unstable, add a check to ensure nixpkgs input has consistent format
1 parent 598d7da commit 51d92b3

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";
@@ -81,6 +81,7 @@
8181
{
8282
dotnet-format = pkgs.callPackage ./checks/dotnet-format.nix args;
8383
nixpkgs-fmt = pkgs.callPackage ./checks/nixpkgs-fmt.nix args;
84+
nixpkgs-input = pkgs.callPackage ./checks/nixpkgs-input.nix args;
8485
rustfmt = pkgs.callPackage ./checks/rustfmt.nix args;
8586
side-effects = pkgs.callPackage ./checks/side-effects.nix args;
8687
username = pkgs.callPackage ./checks/username.nix args;

0 commit comments

Comments
 (0)