add: diffnav, gh-dash, lazygit, k9s overrides

these are all overlays that were part of my nix config before i created
my nur. i am putting them here to reduce build time when building my nix
config
This commit is contained in:
2026-09-03 13:32:14 -04:00
parent 1b5df8dea8
commit 887845a8f7
8 changed files with 226 additions and 1 deletions
+4
View File
@@ -3,4 +3,8 @@ prev.lib.composeManyExtensions [
(import ./atuin.nix)
(import ./container.nix)
(import ./cliamp.nix)
(import ./diffnav.nix)
(import ./gh-dash.nix)
(import ./lazygit.nix)
(import ./k9s.nix)
] final prev
+25
View File
@@ -0,0 +1,25 @@
final: prev: let
golang_latest = prev.go-bin.latestStable;
buildGoModuleLatest = prev.buildGoModule.override {
go = golang_latest;
};
in {
diffNavLatest = (prev.diffnav.override {
buildGoModule = buildGoModuleLatest;
}).overrideAttrs (_: rec {
version = "0.12.0";
src = prev.fetchFromGitHub {
owner = "dlvhdr";
repo = "diffnav";
rev = "v${version}";
hash = "sha256-6VtAQzZNLQrf8QYVXxLUgb3F6xguFDbwaE9kahPhbSE=";
};
vendorHash = "sha256-gmmckzR0D1oFuTG5TAb6gLMoNbcZl9EsjbFjhPfJqnQ=";
ldflags = [
"-s"
"-w"
];
});
}
+36
View File
@@ -0,0 +1,36 @@
final: prev: let
golang_latest = prev.go-bin.latestStable;
buildGoModuleLatest = prev.buildGoModule.override {
go = golang_latest;
};
in {
ghDashLatest = (prev.gh-dash.override {
buildGoModule = buildGoModuleLatest;
}).overrideAttrs (oldAttrs: rec {
version = "4.25.2";
src = prev.fetchFromGitHub {
owner = "dlvhdr";
repo = "gh-dash";
rev = "v${version}";
hash = "sha256-C06LPVoE23ITJpMG0x75Djgeup+eb5uYwA8wL7xxvWU=";
};
vendorHash = "sha256-4AbeoH0l7eIS7d0yyJxM7+woC7Q/FCh0BOJj3d1zyX4=";
doCheck = false;
checkFlags = [
"-skip=TestFullOutput"
];
ldflags = [
"-s"
"-w"
"-X github.com/dlvhdr/gh-dash/v4/cmd.Version=${version}"
];
passthru = (oldAttrs.passthru or {}) // {
tests = {
version = oldAttrs.testers.testVersion { package = final.ghDashLatest; };
};
};
});
}
+16
View File
@@ -0,0 +1,16 @@
final: prev: {
k9sLatest = prev.k9s.overrideAttrs (oldAttrs: rec {
version = "0.51.0";
src = prev.fetchFromGitHub {
owner = "derailed";
repo = "k9s";
rev = "v${version}";
hash = "sha256-1z6r6v3n1p6vd2q6n4pl5q3f7q3q7q1p7j5j1k3l4m5n6o7p8q9r";
};
ldflags = [
"-X github.com/derailed/k9s/version.Version=${version}"
"-X github.com/derailed/k9s/version.BuildSource=nix"
];
});
}
+18
View File
@@ -0,0 +1,18 @@
final: prev: {
lazygitLatest = prev.lazygit.overrideAttrs (_: rec {
version = "0.64.1";
src = prev.fetchFromGitHub {
owner = "jesseduffield";
repo = "lazygit";
rev = "v${version}";
hash = "sha256-G7JulCK9WUVWbp1V7lYuM3fehCdn1cNAJHYjr3aKDvQ=";
};
vendorHash = null;
subPackages = [ "." ];
ldflags = [
"-X main.version=${version}"
"-X main.buildSource=nix"
];
});
}