at 24.11-pre 1.3 kB view raw
1{ lib 2, buildGoModule 3, fetchFromGitHub 4}: 5 6buildGoModule rec { 7 pname = "auth0-cli"; 8 version = "1.4.0"; 9 10 src = fetchFromGitHub { 11 owner = "auth0"; 12 repo = "auth0-cli"; 13 rev = "refs/tags/v${version}"; 14 hash = "sha256-j7HT57/4rrrVkx9Zz+XuWD6UL0spdej+U5gWtFo1FSI="; 15 }; 16 17 vendorHash = "sha256-bWAneCRsQbPRxEM/3jr1/Lov6NV67MRycOgrlj3bKF8="; 18 19 ldflags = [ 20 "-s" 21 "-w" 22 "-X=github.com/auth0/auth0-cli/internal/buildinfo.Version=v${version}" 23 "-X=github.com/auth0/auth0-cli/internal/buildinfo.Revision=0000000" 24 ]; 25 26 preCheck = '' 27 # Feed in all tests for testing 28 # This is because subPackages above limits what is built to just what we 29 # want but also limits the tests 30 unset subPackages 31 # Test requires network access 32 substituteInPlace internal/cli/universal_login_customize_test.go \ 33 --replace-fail "TestFetchUniversalLoginBrandingData" "SkipFetchUniversalLoginBrandingData" 34 ''; 35 36 subPackages = [ "cmd/auth0" ]; 37 38 meta = with lib; { 39 description = "Supercharge your developer workflow"; 40 homepage = "https://auth0.github.io/auth0-cli"; 41 changelog = "https://github.com/auth0/auth0-cli/releases/tag/v${version}"; 42 license = licenses.mit; 43 maintainers = with maintainers; [ matthewcroughan ]; 44 mainProgram = "auth0"; 45 }; 46}