gollum: Add Git as runtime dependency

Now "nix-shell -p gollum --pure --run gollum" should work properly.
This commit is contained in:
Michael Weiss 2017-06-04 16:02:42 +02:00
parent beb04aabac
commit 96faeb1914

View File

@ -1,17 +1,28 @@
{ stdenv, lib, bundlerEnv, ruby
, icu, zlib }:
{ stdenv, bundlerEnv, ruby, makeWrapper
, git }:
bundlerEnv rec {
name = "gollum-${version}";
version = (import gemset).gollum.version;
stdenv.mkDerivation rec {
name = "${pname}-${version}";
pname = "gollum";
version = (import ./gemset.nix).gollum.version;
inherit ruby;
nativeBuildInputs = [ makeWrapper ];
env = bundlerEnv {
name = "${name}-gems";
inherit pname ruby;
gemdir = ./.;
gemset = ./gemset.nix;
};
# FIXME: Add Git as runtime dependency.
phases = [ "installPhase" ];
meta = with lib; {
installPhase = ''
mkdir -p $out/bin
makeWrapper ${env}/bin/gollum $out/bin/gollum \
--prefix PATH ":" ${stdenv.lib.makeBinPath [ git ]}
'';
meta = with stdenv.lib; {
description = "A simple, Git-powered wiki";
homepage = "https://github.com/gollum/gollum";
license = licenses.mit;