mirror of
https://github.com/nix-community/comma.git
synced 2024-09-11 03:55:24 +03:00
Comma runs software without installing it. [maintainers=@Artturin,@burke,@DavHau]
Flake lock file updates: • Updated input 'flake-compat': 'github:edolstra/flake-compat/b4a34015c698c7793d592d66adbab377907a2be8' (2022-04-19) → 'github:edolstra/flake-compat/35bb57c0c8d8b62bbfd284272c928ceb64ddbde9' (2023-01-17) • Updated input 'naersk': 'github:nix-community/naersk/6944160c19cb591eb85bbf9b2f2768a935623ed3' (2022-09-03) → 'github:nix-community/naersk/88cd22380154a2c36799fe8098888f0f59861a15' (2023-03-23) • Updated input 'nixpkgs': 'github:NixOS/nixpkgs/2277e4c9010b0f27585eb0bed0a86d7cbc079354' (2022-09-15) → 'github:NixOS/nixpkgs/4a65e9f64e53fdca6eed31adba836717a11247d2' (2023-04-05) • Updated input 'utils': 'github:numtide/flake-utils/c0e246b9b83f637f4681389ecabcb2681b4f3af0' (2022-08-07) → 'github:numtide/flake-utils/93a2b84fc4b70d9e089d029deacc3583435c2ed6' (2023-03-15) |
||
---|---|---|
.github | ||
src | ||
.envrc | ||
.gitignore | ||
Cargo.lock | ||
Cargo.toml | ||
default.nix | ||
flake.lock | ||
flake.nix | ||
README.md | ||
release.sh | ||
shell.nix |
comma
Comma runs software without installing it.
Basically it just wraps together nix shell -c
and nix-index
. You stick a ,
in front of a command to
run it from whatever location it happens to occupy in nixpkgs
without really thinking about it.
Installation
-
Nix with Flakes:
$ nix profile install github:nix-community/comma
-
No flakes:
$ nix-env -i -f "https://github.com/nix-community/comma/archive/master.tar.gz"
NixOS installation
-
No flakes:
replace "v1.2.0" with the latest version
environment.systemPackages = let comma = (import (pkgs.fetchFromGitHub { owner = "nix-community"; repo = "comma"; rev = "v1.2.0"; sha256 = "0000000000000000000000000000000000000000000000000000"; })).default; in [ comma ];
Usage
, cowsay neato