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