Skip to content

Commit 6f70c14

Browse files
committed
[remove nixpkgs] enable fallback for packages not in binary store
1 parent ab2e8a7 commit 6f70c14

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

internal/boxcli/featureflag/remove_nixpkgs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ package featureflag
44
// It leverages the search index to directly map <package>@<version> to
55
// the /nix/store/<hash>-<package>-<version> that can be fetched from
66
// cache.nixpkgs.org.
7-
var RemoveNixpkgs = disable("REMOVE_NIXPKGS")
7+
var RemoveNixpkgs = enable("REMOVE_NIXPKGS")

internal/shellgen/tmpl/flake_remove_nixpkgs.nix.tmpl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@
1717
}:
1818
let
1919
pkgs = nixpkgs.legacyPackages.{{ .System }};
20+
{{- range .FlakeInputs }}
21+
{{- if .IsNixpkgs }}
22+
{{.PkgImportName}} = (import {{.Name}} {
23+
system = "{{ $.System }}";
24+
config.allowUnfree = true;
25+
});
26+
{{- end }}
27+
{{- end }}
2028
in
2129
{
2230
devShells.{{ .System }}.default = pkgs.mkShell {

0 commit comments

Comments
 (0)