2019-07-22 12:02:47 +00:00
|
|
|
{ stdenv, bundlerEnv, ruby, makeWrapper, bundlerUpdateScript
|
2017-06-04 14:02:42 +00:00
|
|
|
, git }:
|
2016-02-11 18:49:33 +00:00
|
|
|
|
2017-06-04 14:02:42 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gollum";
|
2018-09-19 16:47:59 +00:00
|
|
|
# nix-shell -p bundix icu zlib
|
2017-06-04 14:02:42 +00:00
|
|
|
version = (import ./gemset.nix).gollum.version;
|
2016-02-11 18:49:33 +00:00
|
|
|
|
2017-06-04 14:02:42 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2017-06-03 20:50:33 +00:00
|
|
|
|
2017-06-04 14:02:42 +00:00
|
|
|
phases = [ "installPhase" ];
|
|
|
|
|
2019-11-09 23:52:53 +00:00
|
|
|
installPhase = let
|
|
|
|
env = bundlerEnv {
|
|
|
|
name = "${pname}-${version}-gems";
|
|
|
|
inherit pname ruby;
|
|
|
|
gemdir = ./.;
|
|
|
|
};
|
|
|
|
in ''
|
2017-06-04 14:02:42 +00:00
|
|
|
mkdir -p $out/bin
|
|
|
|
makeWrapper ${env}/bin/gollum $out/bin/gollum \
|
|
|
|
--prefix PATH ":" ${stdenv.lib.makeBinPath [ git ]}
|
|
|
|
'';
|
2016-02-11 18:49:33 +00:00
|
|
|
|
2019-07-22 12:02:47 +00:00
|
|
|
passthru.updateScript = bundlerUpdateScript "gollum";
|
|
|
|
|
2017-06-04 14:02:42 +00:00
|
|
|
meta = with stdenv.lib; {
|
2016-02-11 18:49:33 +00:00
|
|
|
description = "A simple, Git-powered wiki";
|
2017-08-01 20:03:30 +00:00
|
|
|
homepage = https://github.com/gollum/gollum;
|
2016-02-11 18:49:33 +00:00
|
|
|
license = licenses.mit;
|
2019-07-22 12:02:47 +00:00
|
|
|
maintainers = with maintainers; [ jgillich primeos nicknovitski ];
|
2016-02-11 18:49:33 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|