7 inherit (lib) concatStringsSep concatMap id mapAttrsToList;
10 pname = "pomerium-cli";
13 src = fetchFromGitHub {
17 sha256 = "sha256-2upvdL8kk0Kbll8UbviyzIX2jdK+tqcHvVlkpz5JjrA=";
20 vendorHash = "sha256-aQo58i+XuCkdjIg/IPf7kNLXXA0NwZbQMhgWyMb45B4=";
27 # Set a variety of useful meta variables for stamping the build with.
29 "github.com/pomerium/cli/version" = {
30 Version = "v${version}";
31 BuildMeta = "nixpkgs";
32 ProjectName = "pomerium-cli";
33 ProjectURL = "github.com/pomerium/cli";
36 concatStringsSpace = list: concatStringsSep " " list;
37 mapAttrsToFlatList = fn: list: concatMap id (mapAttrsToList fn list);
38 varFlags = concatStringsSpace (
39 mapAttrsToFlatList (package: packageVars:
40 mapAttrsToList (variable: value:
41 "-X ${package}.${variable}=${value}"
51 install -Dm0755 $GOPATH/bin/pomerium-cli $out/bin/pomerium-cli
57 homepage = "https://pomerium.io";
58 description = "Client-side helper for Pomerium authenticating reverse proxy";
59 mainProgram = "pomerium-cli";
60 license = licenses.asl20;
61 maintainers = with maintainers; [ lukegb ];
62 platforms = platforms.unix;