blob: 5c17846aab75467be111bf42cb27188622b1821f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
{ lib
, stdenv
, fetchFromGitHub
, makeWrapper
, bundlerEnv
, tree
}:
stdenv.mkDerivation (finalAttrs: {
pname = "ghi";
version = "1.2.1";
src = fetchFromGitHub {
owner = "drazisil";
repo = "ghi";
rev = "refs/tags/${finalAttrs.version}";
hash = "sha256-3V1lxI4VhP0jC3VSWyNS327gOCKowbbLB6ae1idpFFI=";
};
env = bundlerEnv {
name = "ghi";
gemfile = "${finalAttrs.src}/Gemfile";
lockfile = "${finalAttrs.src}/Gemfile.lock";
gemset = ./gemset.nix;
};
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ finalAttrs.env.wrappedRuby ];
installPhase = ''
mkdir -p $out/bin
cp ghi $out/bin
'';
meta = {
description = "GitHub Issues on the command line";
mainProgram = "ghi";
homepage = "https://github.com/drazisil/ghi";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ sigmanificient];
};
})
|