1
1
forked from extern/flakelight

Use direct flake url for nixpkgs

This commit is contained in:
Ratson 2024-06-28 21:59:41 +08:00 committed by Archit Gupta
parent 320825042a
commit a31923bf14
5 changed files with 9 additions and 8 deletions

View File

@ -106,7 +106,7 @@ To use a different nixpkgs from the built-in default (passing all inputs):
{ {
inputs = { inputs = {
flakelight.url = "github:nix-community/flakelight"; flakelight.url = "github:nix-community/flakelight";
nixpkgs.url = "nixpkgs/nixpkgs-unstable"; nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
}; };
outputs = { flakelight, ... }@inputs: outputs = { flakelight, ... }@inputs:
flakelight ./. { flakelight ./. {
@ -120,7 +120,7 @@ Or to just pass just the nixpkgs input:
```nix ```nix
{ {
inputs = { inputs = {
nixpkgs.url = "nixpkgs/nixpkgs-unstable"; nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flakelight.url = "github:nix-community/flakelight"; flakelight.url = "github:nix-community/flakelight";
}; };
outputs = { flakelight, nixpkgs, ... }: outputs = { flakelight, nixpkgs, ... }:
@ -803,7 +803,7 @@ For example:
{ {
inputs = { inputs = {
flakelight.url = "github:nix-community/flakelight"; flakelight.url = "github:nix-community/flakelight";
nixpkgs.url = "nixpkgs/nixpkgs-unstable"; nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
}; };
outputs = { flakelight, nixpkgs, ... }: outputs = { flakelight, nixpkgs, ... }:
flakelight ./. { flakelight ./. {

View File

@ -70,7 +70,7 @@ To use a different nixpkgs, you can instead use:
```nix ```nix
{ {
inputs = { inputs = {
nixpkgs.url = "nixpkgs/nixpkgs-unstable"; nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flakelight.url = "github:nix-community/flakelight"; flakelight.url = "github:nix-community/flakelight";
}; };
outputs = { flakelight, ... }@inputs: outputs = { flakelight, ... }@inputs:

View File

@ -10,9 +10,10 @@
"type": "github" "type": "github"
}, },
"original": { "original": {
"id": "nixpkgs", "owner": "NixOS",
"ref": "nixos-unstable", "ref": "nixos-unstable",
"type": "indirect" "repo": "nixpkgs",
"type": "github"
} }
}, },
"root": { "root": {

View File

@ -5,7 +5,7 @@
{ {
description = description =
"A modular Nix flake framework for simplifying flake definitions"; "A modular Nix flake framework for simplifying flake definitions";
inputs.nixpkgs.url = "nixpkgs/nixos-unstable"; inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
outputs = inputs: outputs = inputs:
let lib = import ./. inputs; in let lib = import ./. inputs; in
lib.mkFlake ./. { lib.mkFlake ./. {

View File

@ -1,6 +1,6 @@
{ {
inputs = { inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flakelight.url = "github:nix-community/flakelight"; flakelight.url = "github:nix-community/flakelight";
}; };
outputs = { flakelight, ... }@inputs: outputs = { flakelight, ... }@inputs: