Skip to content

Instantly share code, notes, and snippets.

@collinarnett
Created March 13, 2022 18:39
Show Gist options
  • Save collinarnett/f12570d2b41c32eb6587567d9e39d4d7 to your computer and use it in GitHub Desktop.
Save collinarnett/f12570d2b41c32eb6587567d9e39d4d7 to your computer and use it in GitHub Desktop.
Developing with nix flakes and nickel
{
inputs = {
flake-utils.url = "github:numtide/flake-utils";
nickel.url = "github:tweag/nickel";
};
outputs = { self, nixpkgs, flake-utils, nickel }@inputs:
flake-utils.lib.eachDefaultSystem (system:
let pkgs = nixpkgs.legacyPackages.${system};
in rec {
devShell =
pkgs.mkShell { buildInputs = [ nickel.defaultPackage.${system} ]; };
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment