Comma runs software without installing it. [maintainers=@Artturin,@burke,@DavHau]
Go to file
Artturin 1fbd317b4a Show error and exit upon nix-locate failure
Co-authored-by: gabriel-doriath-dohler <gabriel.doriath.dohler@ens.fr>
2022-11-20 17:57:03 +02:00
.github Bump cachix/install-nix-action from 17 to 18 2022-10-17 11:58:21 +00:00
src Show error and exit upon nix-locate failure 2022-11-20 17:57:03 +02:00
.envrc rewrite in rust 2022-04-19 01:36:39 +03:00
.gitignore Remove duplicated gitignore entry 2022-04-19 12:50:49 +02:00
Cargo.lock update dependencies 2022-09-16 02:30:38 +03:00
Cargo.toml bump cargo ver 2022-11-19 17:40:48 +02:00
default.nix rewrite in rust 2022-04-19 01:36:39 +03:00
flake.lock update dependencies 2022-09-16 02:30:38 +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
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