mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-23 12:34:15 +00:00

We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
47 lines
1.3 KiB
Nix
47 lines
1.3 KiB
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "auth0-cli";
|
|
version = "1.5.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "auth0";
|
|
repo = "auth0-cli";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-Wesnn52euV2z6nx6wSDho4R6Hu0dMKwGNvNT3MVxIg4=";
|
|
};
|
|
|
|
vendorHash = "sha256-v8bBxyLysuiZ0ZheDt5juxaUGzL0PYLGTF5EymHzTOI=";
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X=github.com/auth0/auth0-cli/internal/buildinfo.Version=v${version}"
|
|
"-X=github.com/auth0/auth0-cli/internal/buildinfo.Revision=0000000"
|
|
];
|
|
|
|
preCheck = ''
|
|
# Feed in all tests for testing
|
|
# This is because subPackages above limits what is built to just what we
|
|
# want but also limits the tests
|
|
unset subPackages
|
|
# Test requires network access
|
|
substituteInPlace internal/cli/universal_login_customize_test.go \
|
|
--replace-fail "TestFetchUniversalLoginBrandingData" "SkipFetchUniversalLoginBrandingData"
|
|
'';
|
|
|
|
subPackages = [ "cmd/auth0" ];
|
|
|
|
meta = with lib; {
|
|
description = "Supercharge your developer workflow";
|
|
homepage = "https://auth0.github.io/auth0-cli";
|
|
changelog = "https://github.com/auth0/auth0-cli/releases/tag/v${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ matthewcroughan ];
|
|
mainProgram = "auth0";
|
|
};
|
|
}
|