Comma runs software without installing it. [maintainers=@Artturin,@burke,@DavHau]
Go to file
dependabot[bot] 720b2687fa
Bump cachix/install-nix-action from 20 to 21
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 20 to 21.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v20...v21)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-29 11:58:24 +00: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 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