use unstable comma
Signed-off-by: Bloxx12 <charlie@charlieroot.dev> Change-Id: I6a6a69648046cf7bdab09db39431ffcabec8d6a0
This commit is contained in:
parent
cc13ebdfe1
commit
347d9fcb6f
4 changed files with 44 additions and 3 deletions
|
@ -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
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue