From ba4e414188799cf2037cc7a34d37e8ea554813e5 Mon Sep 17 00:00:00 2001 From: micnncim Date: Thu, 25 Apr 2024 02:12:00 +0900 Subject: [PATCH] Add apollo-ios-cli package Signed-off-by: micnncim --- default.nix | 1 + pkgs/apollo-ios-cli/default.nix | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 pkgs/apollo-ios-cli/default.nix 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 + ''; +}