Skip to content

Latest commit

 

History

History
61 lines (41 loc) · 1.91 KB

README.md

File metadata and controls

61 lines (41 loc) · 1.91 KB

hostwithquantum/nur

Build and populate cache

Cachix Cache

A nix user repository to install the runway CLI.

Usage

Run with nix shell

Install the Flake in a nix shell using the nix shell command.

nix shell --impure github:hostwithquantum/nur/11a8e8f0ac6de019565da086820c4b8709532516#runway

where

  • /11a8e8f0ac6de019565da086820c4b8709532516 indicates a specific commit that you want to reference (which you should be free to drop if you just want to install the mainline version)
  • --impure allows the use of unfree packages by setting the env var NIXPKGS_ALLOW_UNFREE=1 (note that env vars are only visible to nix on impure runs)

Run from Flake with nix develop

In case you want to install runway as part of an existing Flake, for example in your dev env that is managed by a flake, specify the runway flake as an input and list it as a buildInput in your devShell.

{
  description = "A very basic flake";

  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";

    flake-utils.url = "github:numtide/flake-utils";

    runway = {
      url = "github:hostwithquantum/nur/11a8e8f0ac6de019565da086820c4b8709532516";
      inputs.nixpkgs.follows = "nixpkgs";
    };
  };

  outputs = { self, nixpkgs, flake-utils, runway }: flake-utils.lib.eachDefaultSystem (system:
    let pkgs = import nixpkgs { inherit system; }; in
    {

      packages.hello = nixpkgs.legacyPackages.${system}.hello;

      defaultPackage = self.packages.${system}.hello;

      devShell = with pkgs; mkShell {
        buildInputs = [ runway.legacyPackages.${system}.runway ];
      };
    });
}

Spin up the nix develop shell using the following command:

NIXPKGS_ALLOW_UNFREE=1 nix develop --impure