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

@ -16,7 +16,6 @@
cbonsai
cinny-desktop
cmus
comma
difftastic
dua
evince

View file

@ -11,7 +11,6 @@
calc
calibre
carapace
comma
digikam
difftastic
dnsutils

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
];
}

View file

@ -1,5 +1,18 @@
{
"pins": {
"comma": {
"type": "Git",
"repository": {
"type": "GitHub",
"owner": "nix-community",
"repo": "comma"
},
"branch": "master",
"submodules": false,
"revision": "4bc672b80356b4d3f283a2988def1ea2580eecbf",
"url": "https://github.com/nix-community/comma/archive/4bc672b80356b4d3f283a2988def1ea2580eecbf.tar.gz",
"hash": "sha256-mhSX2yx+/xDwCtLVb+aSFFxP2TOJek/ZX/28khvetwE="
},
"flake-compat": {
"type": "Git",
"repository": {