Skip to content

Instantly share code, notes, and snippets.

@rbreslow
Created November 7, 2021 17:05
Show Gist options
  • Save rbreslow/546c000c6de30ada77e18c554c4b8dda to your computer and use it in GitHub Desktop.
Save rbreslow/546c000c6de30ada77e18c554c4b8dda to your computer and use it in GitHub Desktop.
An example skeleton for Nix development environments using the flake default package.
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.simpleFlake {
inherit self nixpkgs;
name = "joker";
shell = ./shell.nix;
systems = ["x86_64-linux" "x86_64-darwin"];
};
}
{ pkgs ? import <nixpkgs> }:
pkgs.mkShell {
buildInputs = [ pkgs.jq ];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment