If you've downloaded this code, you can run this by using nix shell
in the current directory.
nix shell
If you haven't got the flake on disk, you can use it remotely like this.
nix shell github:a-h/nix-asciinema-agg
If you want to use this flake, but add your own stuff to the shell, you can create your own flake that imports this one.
See _example/flake.nix
.
{
inputs = {
agg.url = github:a-h/nix-asciinema-agg;
# For local development, use this instead.
#agg.url = "path:../";
flake-utils.url = "github:numtide/flake-utils";
flake-utils.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { self, nixpkgs, agg, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
system = system;
};
in
{
# Access this by `nix shell`
defaultPackage = agg.outputs.packages.${system};
# Access this via `nix develop`
devShell = pkgs.mkShell {
packages = [
agg.outputs.packages.${system}
pkgs.cowsay
];
};
}
);
}