Skip to content

Instantly share code, notes, and snippets.

@betawaffle
Created May 29, 2020 16:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save betawaffle/83a2e30e7b55320e680504f6301a923e to your computer and use it in GitHub Desktop.
Save betawaffle/83a2e30e7b55320e680504f6301a923e to your computer and use it in GitHub Desktop.
{
description = "ngrok devenv";
inputs.nixpkgs.url = "nixpkgs";
outputs = { self, nixpkgs }: let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
overlays = [
(import ./nix/overlay.nix)
];
config = {
};
};
devenvPkgs = with pkgs; [
# ... other packages elided ...
wire
];
in {
# used by `nix dev-shell` if someone wants to run that; we don't automaticlaly run it
devShell.x86_64-linux = pkgs.mkShell {
buildInputs = devenvPkgs;
shellHook = ''
unset GOPATH
'';
};
# Used by `nix build --profile` to setup devenv path etc
defaultPackage.x86_64-linux = pkgs.buildEnv {
name = "nix-devenv-profile";
paths = devenvPkgs;
};
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment