aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/tools/jazzy
diff options
context:
space:
mode:
authorNick Novitski <github@nicknovitski.com>2019-07-22 05:02:47 -0700
committerzimbatm <zimbatm@zimbatm.com>2019-07-22 12:02:47 +0000
commit7136e0d0a6f61734994c566e2cc72fd75733b873 (patch)
treefcaeaea68f596a81fb885790ce87c3aac4bd52ba /pkgs/development/tools/jazzy
parentb24841dd2260516bfde0b9029619a0f9ef87e97c (diff)
bundlerUpdateScript: init and use (#64822)
Diffstat (limited to 'pkgs/development/tools/jazzy')
-rw-r--r--pkgs/development/tools/jazzy/default.nix6
-rwxr-xr-xpkgs/development/tools/jazzy/update10
2 files changed, 3 insertions, 13 deletions
diff --git a/pkgs/development/tools/jazzy/default.nix b/pkgs/development/tools/jazzy/default.nix
index 7fff98e03254..ad71dfb22a8f 100644
--- a/pkgs/development/tools/jazzy/default.nix
+++ b/pkgs/development/tools/jazzy/default.nix
@@ -1,12 +1,11 @@
-{ lib, bundlerApp, ruby }:
+{ lib, bundlerApp, bundlerUpdateScript }:
bundlerApp rec {
- inherit ruby;
pname = "jazzy";
gemdir = ./.;
exes = [ "jazzy" ];
- passthru.updateScript = ./update;
+ passthru.updateScript = bundlerUpdateScript "jazzy";
meta = with lib; {
description = "A command-line utility that generates documentation for Swift or Objective-C";
@@ -16,6 +15,7 @@ bundlerApp rec {
maintainers = with maintainers; [
peterromfeldhk
lilyball
+ nicknovitski
];
};
}
diff --git a/pkgs/development/tools/jazzy/update b/pkgs/development/tools/jazzy/update
deleted file mode 100755
index 1f0d11c7ddee..000000000000
--- a/pkgs/development/tools/jazzy/update
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/usr/bin/env nix-shell
-#! nix-shell -i bash -p bash bundler bundix
-
-set -e
-
-cd "$(dirname "${BASH_SOURCE[0]}")"
-
-rm -f Gemfile.lock
-bundler lock
-bundix