mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 16:43:58 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
20 lines
537 B
Diff
20 lines
537 B
Diff
diff --git a/config.c b/config.c
|
|
index 6477259..c462ed3 100644
|
|
--- a/config.c
|
|
+++ b/config.c
|
|
@@ -114,9 +114,12 @@ cf_check(void)
|
|
void
|
|
cf_parse(void)
|
|
{
|
|
- FILE *f = fopen(CONFIG_FILE, "r");
|
|
+ char *config_file = getenv("ISOLATE_CONFIG_FILE");
|
|
+ if(!config_file)
|
|
+ die("ISOLATE_CONFIG_FILE environment variable not set");
|
|
+ FILE *f = fopen(config_file, "r");
|
|
if (!f)
|
|
- die("Cannot open %s: %m", CONFIG_FILE);
|
|
+ die("Cannot open %s: %m", config_file);
|
|
|
|
char line[MAX_LINE_LEN];
|
|
while (fgets(line, sizeof(line), f))
|