-
-
Notifications
You must be signed in to change notification settings - Fork 33
/
default.nix
36 lines (33 loc) · 1023 Bytes
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ pkgs }:
let
generated = import ./generated.nix;
nix-index-database =
(pkgs.fetchurl {
url = generated.url + pkgs.stdenv.system;
hash = generated.hashes.${pkgs.stdenv.system};
}).overrideAttrs
{
__structuredAttrs = true;
unsafeDiscardReferences.out = true;
};
nix-index-small-database =
(pkgs.fetchurl {
url = generated.url + pkgs.stdenv.system + "-small";
hash = generated.hashes."${pkgs.stdenv.system}-small";
}).overrideAttrs
{
__structuredAttrs = true;
unsafeDiscardReferences.out = true;
};
in
{
inherit nix-index-database nix-index-small-database;
nix-index-with-db = pkgs.callPackage ./nix-index-wrapper.nix { inherit nix-index-database; };
nix-index-with-small-db = pkgs.callPackage ./nix-index-wrapper.nix {
nix-index-database = nix-index-small-database;
db-type = "small";
};
comma-with-db = pkgs.callPackage ./comma-wrapper.nix {
nix-index-database = nix-index-small-database;
};
}