Comma runs software without installing it. [maintainers=@Artturin,@burke,@DavHau]
Go to file
Artturin 6903658626 flake.lock: Update
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)
2023-04-06 01:08:27 +03:00
.github Bump cachix/install-nix-action from 19 to 20 2023-03-06 12:02:01 +00:00
src add COMMA_NIXPKGS_FLAKE to allow changing the flake used by nix shell 2023-04-06 01:02:09 +03:00
.envrc rewrite in rust 2022-04-19 01:36:39 +03:00
.gitignore add .direnv to gitignore 2022-11-20 18:12:32 +02:00
Cargo.lock v1.5.0 2023-03-06 21:11:19 +02:00
Cargo.toml v1.5.0 2023-03-06 21:11:19 +02:00
default.nix rewrite in rust 2022-04-19 01:36:39 +03:00
flake.lock flake.lock: Update 2023-04-06 01:08:27 +03:00
flake.nix Adding nix-index to the devshell. 2022-06-24 13:41:52 -07:00
README.md update readme and version 2022-04-19 02:11:48 +03:00
release.sh make release.sh executable 2023-01-31 17:17:35 +02:00
shell.nix rewrite in rust 2022-04-19 01:36:39 +03:00

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

Prebuilt index

https://github.com/Mic92/nix-index-database