:: commit 642a7fe0b2d35e35269739c03a693071c1ac5d34

Philipp Schuster <philipp.schuster@cyberus-technology.de> — 2024-04-04 08:24

parents: 6c2ff2db6d

nix/flake: add typos

Currently, typos is at 1.16 on branch nixos-23.11 but at 1.20 on
branch nixpkgs-unstable
diff --git a/flake.lock b/flake.lock
index aa22c560..451ac988 100644
--- a/flake.lock
+++ b/flake.lock
@@ -36,10 +36,27 @@
         "type": "github"
       }
     },
+    "nixpkgs-unstable": {
+      "locked": {
+        "lastModified": 1712090461,
+        "narHash": "sha256-PAfFp+YEKpkzwz6ruXQMvTa1puO4ySSu2G4Sp/jkCc8=",
+        "owner": "NixOS",
+        "repo": "nixpkgs",
+        "rev": "e976fa8f49c35cf28496301a1ef2aa23ad576b56",
+        "type": "github"
+      },
+      "original": {
+        "owner": "NixOS",
+        "ref": "nixpkgs-unstable",
+        "repo": "nixpkgs",
+        "type": "github"
+      }
+    },
     "root": {
       "inputs": {
         "flake-parts": "flake-parts",
-        "nixpkgs": "nixpkgs"
+        "nixpkgs": "nixpkgs",
+        "nixpkgs-unstable": "nixpkgs-unstable"
       }
     }
   },
diff --git a/flake.nix b/flake.nix
index d19efefa..d9b6f820 100644
--- a/flake.nix
+++ b/flake.nix
@@ -11,9 +11,10 @@
     flake-parts.url = "github:hercules-ci/flake-parts";
     flake-parts.inputs.nixpkgs-lib.follows = "nixpkgs";
     nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
+    nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
   };
 
-  outputs = inputs@{ self, nixpkgs, flake-parts }:
+  outputs = inputs@{ self, nixpkgs, nixpkgs-unstable, flake-parts }:
     flake-parts.lib.mkFlake { inherit inputs; } {
       flake = { };
       # Don't artificially limit users at this point. If a build fails, they
@@ -51,6 +52,10 @@
 
                 # Nix
                 nixpkgs-fmt
+
+                # Misc
+                # typos is not yet frequently updated in the stable channel
+                nixpkgs-unstable.legacyPackages.${pkgs.system}.typos
               ];
             };
           };
tab: 248 wrap: offon