]> git.immae.eu Git - perso/Immae/Config/Nix/NUR.git/blobdiff - overlays/vcsh/default.nix
Add vcsh overlay
[perso/Immae/Config/Nix/NUR.git] / overlays / vcsh / default.nix
diff --git a/overlays/vcsh/default.nix b/overlays/vcsh/default.nix
new file mode 100644 (file)
index 0000000..eb4d48e
--- /dev/null
@@ -0,0 +1,7 @@
+self: super: {
+  vcsh = super.vcsh.overrideAttrs(old: {
+    patchPhase = old.patchPhase or "" + ''
+      sed -i -e 's@-r "$XDG_CONFIG_HOME/vcsh/config.d/$VCSH_REPO_NAME"@-f "$XDG_CONFIG_HOME/vcsh/config.d/$VCSH_REPO_NAME"@' vcsh
+      '';
+  });
+}