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.
18 lines
538 B
Diff
18 lines
538 B
Diff
diff --git a/clients/lcdproc/machine_Linux.c b/clients/lcdproc/machine_Linux.c
|
|
index 7bb7266..a629674 100644
|
|
--- a/clients/lcdproc/machine_Linux.c
|
|
+++ b/clients/lcdproc/machine_Linux.c
|
|
@@ -259,11 +259,7 @@ machine_get_fs(mounts_type fs[], int *cnt)
|
|
char line[256];
|
|
int x = 0, err;
|
|
|
|
-#ifdef MTAB_FILE
|
|
- mtab_fd = fopen(MTAB_FILE, "r");
|
|
-#else
|
|
-#error "Can't find your mounted filesystem table file."
|
|
-#endif
|
|
+ mtab_fd = fopen("/etc/mtab", "r");
|
|
|
|
/* Get rid of old, unmounted filesystems... */
|
|
memset(fs, 0, sizeof(mounts_type) * 256);
|