use unstable comma

Signed-off-by: Bloxx12 <charlie@charlieroot.dev>
Change-Id: I6a6a69648046cf7bdab09db39431ffcabec8d6a0
This commit is contained in:
Bloxx12 2025-07-21 23:27:37 +02:00 committed by fau
commit 347d9fcb6f
No known key found for this signature in database
4 changed files with 44 additions and 3 deletions

View file

@ -1,10 +1,36 @@
{
lib,
pkgs,
sources,
...
}:
let
nixfmt = pkgs.callPackage "${sources.nixfmt}/default.nix" { };
comma = pkgs.callPackage (
_:
pkgs.rustPlatform.buildRustPackage {
pname = "comma";
version = "unstable";
src = sources.comma;
cargoLock = {
allowBuiltinFetchGit = true;
lockFile = "${sources.comma}/Cargo.lock";
};
nativeBuildInputs = [ pkgs.makeBinaryWrapper ];
doInstallCheck = false;
postInstall = ''
wrapProgram $out/bin/comma \
--prefix PATH : ${
lib.makeBinPath [
pkgs.fzy
pkgs.nix-index-unwrapped
]
}
ln -s $out/bin/comma $out/bin/,
'';
}
) { };
in
{
environment.systemPackages =
@ -40,6 +66,7 @@ in
glow
# dua-cli
dust
iamb
kondo
# better grep
ripgrep
@ -75,5 +102,8 @@ in
unzip
zip
]
++ [ nixfmt ];
++ [
nixfmt
comma
];
}