-
-
Save betawaffle/83a2e30e7b55320e680504f6301a923e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
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