bundlerUpdateScript: init and use (#64822)
This commit is contained in:
@@ -1,15 +1,17 @@
|
||||
{ lib, bundlerApp }:
|
||||
{ lib, bundlerApp, bundlerUpdateScript }:
|
||||
|
||||
bundlerApp {
|
||||
pname = "bcat";
|
||||
gemdir = ./.;
|
||||
exes = [ "bcat" "btee" "a2h" ];
|
||||
|
||||
passthru.updateScript = bundlerUpdateScript "bcat";
|
||||
|
||||
meta = with lib; {
|
||||
description = "Pipe to browser utility";
|
||||
homepage = http://rtomayko.github.com/bcat/;
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.jraygauthier ];
|
||||
maintainers = with maintainers; [ jraygauthier nicknovitski ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
{ stdenv, bundlerEnv, ruby}:
|
||||
{ stdenv, bundlerEnv, ruby, bundlerUpdateScript }:
|
||||
|
||||
let
|
||||
# To update, just run `nix-shell` in this directory.
|
||||
papertrail-env = bundlerEnv rec {
|
||||
name = "papertrail-env";
|
||||
inherit ruby;
|
||||
@@ -18,4 +17,14 @@ in stdenv.mkDerivation {
|
||||
mkdir -p $out/bin
|
||||
ln -s ${papertrail-env}/bin/papertrail $out/bin/papertrail
|
||||
'';
|
||||
|
||||
passthru.updateScript = bundlerUpdateScript "papertrail";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Command-line client for Papertrail log management service";
|
||||
homepage = http://github.com/papertrail/papertrail-cli/;
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ nicknovitski ];
|
||||
platforms = ruby.meta.platforms;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
{ pkgs ? import <nixpkgs> {} }:
|
||||
|
||||
pkgs.stdenv.mkDerivation {
|
||||
name = "papertrail";
|
||||
src = ./.;
|
||||
|
||||
buildInputs = with pkgs; [
|
||||
bundix
|
||||
bundler
|
||||
ruby
|
||||
];
|
||||
|
||||
shellHook = ''
|
||||
truncate --size 0 Gemfile.lock
|
||||
bundle install --path=vendor/bundle
|
||||
rm -rf vendor .bundle
|
||||
bundix
|
||||
'';
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
{ stdenv, lib, bundlerEnv, makeWrapper }:
|
||||
{ stdenv, lib, bundlerEnv, bundlerUpdateScript, makeWrapper }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "reckon-${version}";
|
||||
version = "0.4.4";
|
||||
version = (import ./gemset.nix).reckon.version;
|
||||
|
||||
env = bundlerEnv {
|
||||
name = "${name}-gems";
|
||||
@@ -19,9 +19,12 @@ stdenv.mkDerivation rec {
|
||||
makeWrapper ${env}/bin/reckon $out/bin/reckon
|
||||
'';
|
||||
|
||||
passthru.updateScript = bundlerUpdateScript "reckon";
|
||||
|
||||
meta = with lib; {
|
||||
description = "Flexibly import bank account CSV files into Ledger for command line accounting";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ nicknovitski ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ lib, bundlerEnv, ruby, stdenv }:
|
||||
{ lib, bundlerEnv, ruby, bundlerUpdateScript }:
|
||||
|
||||
bundlerEnv {
|
||||
pname = "ruby-zoom";
|
||||
@@ -6,11 +6,13 @@ bundlerEnv {
|
||||
inherit ruby;
|
||||
gemdir = ./.;
|
||||
|
||||
passthru.updateScript = bundlerUpdateScript "ruby-zoom";
|
||||
|
||||
meta = with lib; {
|
||||
description = "Quickly open CLI search results in your favorite editor!";
|
||||
homepage = https://gitlab.com/mjwhitta/zoom;
|
||||
license = with licenses; gpl3;
|
||||
maintainers = with stdenv.lib.maintainers; [ vmandela ];
|
||||
maintainers = with maintainers; [ vmandela nicknovitski ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user