flake: rename input nixpkgsUnstable -> nixpkgs-unstable

This follows common flake naming conventions.
This commit is contained in:
Erik Arvstedt 2022-10-22 19:37:53 +02:00
parent a12b701e75
commit d428755399
No known key found for this signature in database
GPG Key ID: 33312B944DD97846
3 changed files with 6 additions and 6 deletions

View File

@ -31,7 +31,7 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgsUnstable": { "nixpkgs-unstable": {
"locked": { "locked": {
"lastModified": 1666570118, "lastModified": 1666570118,
"narHash": "sha256-MTXmIYowHM1wyIYyqPdBLia5SjGnxETv0YkIbDsbkx4=", "narHash": "sha256-MTXmIYowHM1wyIYyqPdBLia5SjGnxETv0YkIbDsbkx4=",
@ -51,7 +51,7 @@
"inputs": { "inputs": {
"flake-utils": "flake-utils", "flake-utils": "flake-utils",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"nixpkgsUnstable": "nixpkgsUnstable" "nixpkgs-unstable": "nixpkgs-unstable"
} }
} }
}, },

View File

@ -6,11 +6,11 @@
inputs = { inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.05"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.05";
nixpkgsUnstable.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils"; flake-utils.url = "github:numtide/flake-utils";
}; };
outputs = { self, nixpkgs, nixpkgsUnstable, flake-utils }: outputs = { self, nixpkgs, nixpkgs-unstable, flake-utils }:
let let
supportedSystems = [ supportedSystems = [
"x86_64-linux" "x86_64-linux"
@ -23,7 +23,7 @@
mkNbPkgs = { mkNbPkgs = {
system system
, pkgs ? nixpkgs.legacyPackages.${system} , pkgs ? nixpkgs.legacyPackages.${system}
, pkgsUnstable ? nixpkgsUnstable.legacyPackages.${system} , pkgsUnstable ? nixpkgs-unstable.legacyPackages.${system}
}: }:
import ./pkgs { inherit pkgs pkgsUnstable; }; import ./pkgs { inherit pkgs pkgsUnstable; };
}; };

View File

@ -16,5 +16,5 @@ let
in in
{ {
nixpkgs = fetch lockedInputs.nixpkgs; nixpkgs = fetch lockedInputs.nixpkgs;
nixpkgs-unstable = fetch lockedInputs.nixpkgsUnstable; nixpkgs-unstable = fetch lockedInputs.nixpkgs-unstable;
} }