From 50eaad99c70441b153938fbdb601e3dcc7fce094 Mon Sep 17 00:00:00 2001 From: Baitinq Date: Wed, 21 Sep 2022 16:33:46 +0200 Subject: Overlays: Base: Add database arg patch to comma --- hosts/home.nix | 1 + overlays/base/default.nix | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/hosts/home.nix b/hosts/home.nix index dc77595..7b1990f 100644 --- a/hosts/home.nix +++ b/hosts/home.nix @@ -223,6 +223,7 @@ vim = "nvim"; q = "exit"; c = "clear"; + "," = ", --database '/etc/nix-index'"; extract = '' () { if [ -f $1 ] ; then diff --git a/overlays/base/default.nix b/overlays/base/default.nix index 63b13a8..e313db4 100644 --- a/overlays/base/default.nix +++ b/overlays/base/default.nix @@ -83,4 +83,17 @@ final: prev: }; }); + comma = prev.comma.overrideAttrs (old: rec { + src = prev.fetchFromGitHub { + owner = "baitinq"; + repo = "comma"; + rev = "1eeccb3c60323a292ddb44647f603d3a54005350"; + sha256 = "sha256-yT9eZSSSlAty9QcUtxVG4J3rWi5rxQMHAxbSGe9FQi0="; + }; + cargoDeps = old.cargoDeps.overrideAttrs (prev.lib.const { + inherit src; + outputHash = "sha256-nXzsqLPiO6Esv8l0Vom2i+HKIUEr1dPNVa2zkv1ovCE="; + }); + }); + } -- cgit 1.4.1