mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-15 09:23:37 +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.
48 lines
1.2 KiB
Diff
48 lines
1.2 KiB
Diff
diff --git a/config/bar.json b/config/bar.json
|
|
index 6c456e7..98527cb 100644
|
|
--- a/config/bar.json
|
|
+++ b/config/bar.json
|
|
@@ -2,21 +2,21 @@
|
|
{
|
|
"label": "Lock",
|
|
"exec": "swaylock -f -c 000000",
|
|
- "icon": "/usr/share/nwg-bar/images/system-lock-screen.svg"
|
|
+ "icon": "@out@/share/nwg-bar/images/system-lock-screen.svg"
|
|
},
|
|
{
|
|
"label": "Logout",
|
|
"exec": "swaymsg exit",
|
|
- "icon": "/usr/share/nwg-bar/images/system-log-out.svg"
|
|
+ "icon": "@out@/share/nwg-bar/images/system-log-out.svg"
|
|
},
|
|
{
|
|
"label": "Reboot",
|
|
"exec": "systemctl reboot",
|
|
- "icon": "/usr/share/nwg-bar/images/system-reboot.svg"
|
|
+ "icon": "@out@/share/nwg-bar/images/system-reboot.svg"
|
|
},
|
|
{
|
|
"label": "Shutdown",
|
|
"exec": "systemctl -i poweroff",
|
|
- "icon": "/usr/share/nwg-bar/images/system-shutdown.svg"
|
|
+ "icon": "@out@/share/nwg-bar/images/system-shutdown.svg"
|
|
}
|
|
]
|
|
\ No newline at end of file
|
|
diff --git a/tools.go b/tools.go
|
|
index f97751e..987163e 100644
|
|
--- a/tools.go
|
|
+++ b/tools.go
|
|
@@ -45,10 +45,7 @@ func configDir() string {
|
|
}
|
|
|
|
func getDataHome() string {
|
|
- if os.Getenv("XDG_DATA_HOME") != "" {
|
|
- return os.Getenv("XDG_DATA_HOME")
|
|
- }
|
|
- return "/usr/share/"
|
|
+ return "@out@/share/"
|
|
}
|
|
|
|
func createDir(dir string) {
|