Created
November 9, 2017 20:06
-
-
Save dustinlacewell-wk/b9cd09370c1c60157099a93f8c11d36a 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
with import <nixpkgs> {}; | |
stdenv.mkDerivation rec { | |
name = "harbour-cli"; | |
buildInputs = [ git go glide ]; | |
src = ./.; | |
phases = [ "glidePhase" "testPhase" "buildPhase" ]; | |
token = builtins.getEnv "WORKIVA_PRIVATE_GITHUB_TOKEN"; | |
glidePhase = '' | |
git config --global url."https://${token}:x-oauth-basic@github.com/".insteadOf "https://github.com/"; | |
cd $src; | |
glide install; | |
''; | |
testPhase = '' | |
go test --cover | |
''; | |
buildPhase = '' | |
go build | |
''; | |
shellHook = '' | |
source $HOME/.secrets | |
''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment