diff --git a/default.nix b/default.nix index 55d610f..dd9cde0 100644 --- a/default.nix +++ b/default.nix @@ -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 { }; diff --git a/pkgs/apollo-ios-cli/default.nix b/pkgs/apollo-ios-cli/default.nix new file mode 100644 index 0000000..4a3a324 --- /dev/null +++ b/pkgs/apollo-ios-cli/default.nix @@ -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 + ''; +}