gollum: Add Git as runtime dependency
Now "nix-shell -p gollum --pure --run gollum" should work properly.
This commit is contained in:
parent
beb04aabac
commit
96faeb1914
@ -1,17 +1,28 @@
|
|||||||
{ stdenv, lib, bundlerEnv, ruby
|
{ stdenv, bundlerEnv, ruby, makeWrapper
|
||||||
, icu, zlib }:
|
, git }:
|
||||||
|
|
||||||
bundlerEnv rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "gollum-${version}";
|
name = "${pname}-${version}";
|
||||||
version = (import gemset).gollum.version;
|
pname = "gollum";
|
||||||
|
version = (import ./gemset.nix).gollum.version;
|
||||||
|
|
||||||
inherit ruby;
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
gemdir = ./.;
|
|
||||||
gemset = ./gemset.nix;
|
|
||||||
|
|
||||||
# FIXME: Add Git as runtime dependency.
|
env = bundlerEnv {
|
||||||
|
name = "${name}-gems";
|
||||||
|
inherit pname ruby;
|
||||||
|
gemdir = ./.;
|
||||||
|
};
|
||||||
|
|
||||||
meta = with lib; {
|
phases = [ "installPhase" ];
|
||||||
|
|
||||||
|
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";
|
description = "A simple, Git-powered wiki";
|
||||||
homepage = "https://github.com/gollum/gollum";
|
homepage = "https://github.com/gollum/gollum";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
|
Loading…
Reference in New Issue
Block a user