Skip to content

Commit 1b85d3a

Browse files
feat: make nixpkgs input overridable
Signed-off-by: Oskar Manhart <[email protected]>
1 parent a7957d5 commit 1b85d3a

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

.envrc.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
use nix # --arg isIdea true
1+
use nix # --arg isIdea true --arg nixpkgs <nixpkgs>

shell.nix

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
{
2-
pkgs ? import <nixpkgs> { },
3-
fenix ?
4-
import
5-
(fetchTarball "https://github.com/nix-community/fenix/archive/monthly.tar.gz")
6-
{
7-
inherit pkgs;
8-
},
2+
nixpkgs ? fetchTarball "https://github.com/NixOS/nixpkgs/archive/nixos-25.05.tar.gz",
3+
pkgs ? import nixpkgs { },
4+
fenix ? import (fetchTarball "https://github.com/nix-community/fenix/archive/monthly.tar.gz") {
5+
inherit pkgs;
6+
},
97
isIdea ? false,
108
}:
119
pkgs.mkShell rec {

0 commit comments

Comments
 (0)