Giter Club home page Giter Club logo

nur's Introduction

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

nur's People

Contributors

dependabot[bot] avatar pnhosta avatar till avatar vidbina avatar

Watchers

 avatar

Forkers

vidbina

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.