Skip to content

Instantly share code, notes, and snippets.

@ingenieroariel
Created June 16, 2020 19:38
Show Gist options
  • Select an option

  • Save ingenieroariel/2e42ec6f92188b1dad4ffd8efde8ddd4 to your computer and use it in GitHub Desktop.

Select an option

Save ingenieroariel/2e42ec6f92188b1dad4ffd8efde8ddd4 to your computer and use it in GitHub Desktop.
let
# use -I nixpkgs=channel:nixos-20.03 when invoking this.
pkgs = import <nixpkgs> {};
fix = pkgs.writeShellScriptBin "fix" ''
nix --experimental-features 'nix-command flakes' $@
'';
in pkgs.stdenv.mkDerivation rec {
name = "database";
buildInputs = [
pkgs.nixFlakes
fix
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment