Comma runs software without installing it. [maintainers=@Artturin,@burke,@DavHau]
Go to file
2023-06-06 21:59:16 +03:00
.github Bump cachix/install-nix-action from 20 to 21 2023-05-29 11:58:24 +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.6.0 2023-04-06 01:20:15 +03:00
Cargo.toml v1.6.0 2023-04-06 01:20:15 +03: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 add cargo-edit 2023-04-06 01:15:12 +03:00
README.md flake instruction 2023-06-06 21:59:16 +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 ];
    
  • Flakes

    Add

    inputs.comma = {
      url = "github:nix-community/comma";
    };
    

    to inputs

    and

    inputs.comma.overlays.default (or comma without inputs. if you use explicit input arguments)

    to nixpkgs.overlays

Usage

, cowsay neato

Prebuilt index

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