nixpkgs-suyu/pkgs/applications/misc/gollum/default.nix

35 lines
878 B
Nix
Raw Normal View History

{ stdenv, bundlerEnv, ruby, makeWrapper, bundlerUpdateScript
, git }:
2016-02-11 19:49:33 +01:00
stdenv.mkDerivation rec {
pname = "gollum";
2018-09-19 18:47:59 +02:00
# nix-shell -p bundix icu zlib
version = (import ./gemset.nix).gollum.version;
2016-02-11 19:49:33 +01:00
nativeBuildInputs = [ makeWrapper ];
2017-06-03 22:50:33 +02:00
phases = [ "installPhase" ];
2019-11-10 00:52:53 +01:00
installPhase = let
env = bundlerEnv {
name = "${pname}-${version}-gems";
inherit pname ruby;
gemdir = ./.;
};
in ''
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
passthru.updateScript = bundlerUpdateScript "gollum";
meta = with stdenv.lib; {
2016-02-11 19:49:33 +01:00
description = "A simple, Git-powered wiki";
homepage = https://github.com/gollum/gollum;
2016-02-11 19:49:33 +01:00
license = licenses.mit;
maintainers = with maintainers; [ jgillich primeos nicknovitski ];
2016-02-11 19:49:33 +01:00
platforms = platforms.unix;
};
}