]> git.immae.eu Git - perso/Immae/Config/Nix.git/commitdiff
Add vcsh overlay
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Mon, 17 Feb 2020 16:22:55 +0000 (17:22 +0100)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Mon, 17 Feb 2020 16:22:55 +0000 (17:22 +0100)
overlays/default.nix
overlays/vcsh/default.nix [new file with mode: 0644]

index a46986d03afbc9c3851932773412babc46fa1e6e..c0adcdb23bf55f5d65d87d11f92c7c03427199cd 100644 (file)
@@ -23,6 +23,7 @@
   shaarli = import ./shaarli;
   slrn = import ./slrn;
   taskwarrior = import ./taskwarrior;
   shaarli = import ./shaarli;
   slrn = import ./slrn;
   taskwarrior = import ./taskwarrior;
+  vcsh = import ./vcsh;
   vit = import ./vit;
   weboob = import ./weboob;
   weechat = import ./weechat;
   vit = import ./vit;
   weboob = import ./weboob;
   weechat = import ./weechat;
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
+      '';
+  });
+}