Skip to content

Commit 7b22f47

Browse files
authored
Merge pull request #70 from K900/https
fix: use unwrapped nix-index, patch it for https (for now)
2 parents 0913471 + 3f72581 commit 7b22f47

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

flake.nix

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
outputs = { self, nixpkgs }:
77
{
88
overlays.default = final: prev: {
9+
nix-index-unwrapped = prev.nix-index-unwrapped.overrideAttrs(old: {
10+
patches = [ ./nix-index-https.patch ];
11+
});
12+
913
nixos-channel-native-programs = with final; stdenv.mkDerivation {
1014
name = "nixos-channel-native-programs";
1115
buildInputs = [
@@ -48,7 +52,7 @@
4852
brotli
4953
jq
5054
nixos-channel-native-programs
51-
nix-index
55+
nix-index-unwrapped
5256
];
5357

5458
buildCommand = ''

nix-index-https.patch

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
diff --git a/src/lib.rs b/src/lib.rs
2+
index 4393e4b..4a84fc0 100644
3+
--- a/src/lib.rs
4+
+++ b/src/lib.rs
5+
@@ -23,4 +23,4 @@ pub mod workset;
6+
/// The URL of the binary cache that we use to fetch file listings and references.
7+
///
8+
/// Hardcoded for now, but may be made a configurable option in the future.
9+
-pub const CACHE_URL: &str = "http://cache.nixos.org";
10+
+pub const CACHE_URL: &str = "https://cache.nixos.org";

0 commit comments

Comments
 (0)