]> git.immae.eu Git - perso/Immae/Config/Nix/NUR.git/commitdiff
Add doing overlay
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Fri, 21 Feb 2020 22:26:25 +0000 (23:26 +0100)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Fri, 24 Apr 2020 22:04:49 +0000 (00:04 +0200)
overlays/default.nix
overlays/doing/default.nix [new file with mode: 0644]

index c0adcdb23bf55f5d65d87d11f92c7c03427199cd..85cc0fb564dae1857dfe173651e003a507cc4252 100644 (file)
@@ -28,5 +28,6 @@
   weboob = import ./weboob;
   weechat = import ./weechat;
   ympd = import ./ympd;
+  doing = import ./doing;
 }
 // import ./python-packages
diff --git a/overlays/doing/default.nix b/overlays/doing/default.nix
new file mode 100644 (file)
index 0000000..7f95fb6
--- /dev/null
@@ -0,0 +1,10 @@
+self: super: {
+  defaultGemConfig = super.defaultGemConfig // {
+    doing = attrs: {
+      postInstall = ''
+        installPath=$(cat $out/nix-support/gem-meta/install-path)
+        sed -i $installPath/lib/doing/wwid.rb -e "/Create a backup copy for the undo command/ {n;d}"
+      '';
+    };
+  };
+}