Skip to content

Commit

Permalink
Add apollo-ios-cli package
Browse files Browse the repository at this point in the history
Signed-off-by: micnncim <[email protected]>
  • Loading branch information
micnncim committed Apr 24, 2024
1 parent 9c430a2 commit ba4e414
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
modules = import ./modules; # NixOS modules
overlays = import ./overlays; # nixpkgs overlays

apollo-ios-cli = pkgs.callPackage ./pkgs/apollo-ios-cli { };
gctx = pkgs.callPackage ./pkgs/gctx { };
gh-sync = pkgs.callPackage ./pkgs/gh-sync { };
gqlgen = pkgs.callPackage ./pkgs/gqlgen { };
Expand Down
19 changes: 19 additions & 0 deletions pkgs/apollo-ios-cli/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{ pkgs, lib, fetchurl }:

pkgs.stdenv.mkDerivation rec {
pname = "apollo-ios-cli";
version = "1.10.0";

src = fetchurl {
url = "https://github.com/apollographql/apollo-ios/releases/download/${version}/apollo-ios-cli.tar.gz";
# Computed with `nix-prefetch-url`.
sha256 = "1p2mjw6s0xlnsi8hy51c2ffv1brwbk8smhcyilkdr2v52mamfi0w";
};

sourceRoot = ".";

installPhase = ''
mkdir -p $out/bin
cp -vr ./apollo-ios-cli $out/bin/apollo-ios-cli
'';
}

0 comments on commit ba4e414

Please sign in to comment.