mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-05 17:56:46 +01:00
34 lines
789 B
Nix
34 lines
789 B
Nix
{ stdenv, bundlerEnv, ruby, makeWrapper
|
|
, git }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "${pname}-${version}";
|
|
pname = "gollum";
|
|
# nix-shell -p bundix icu zlib
|
|
version = (import ./gemset.nix).gollum.version;
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
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 ]}
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A simple, Git-powered wiki";
|
|
homepage = https://github.com/gollum/gollum;
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ jgillich primeos ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|