1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-24 10:56:56 +00:00
nixpkgs/pkgs/applications/misc/gollum/default.nix

33 lines
756 B
Nix
Raw Normal View History

{ stdenv, bundlerEnv, ruby, makeWrapper
, git }:
2016-02-11 18:49:33 +00:00
stdenv.mkDerivation rec {
name = "${pname}-${version}";
pname = "gollum";
version = (import ./gemset.nix).gollum.version;
2016-02-11 18:49:33 +00:00
nativeBuildInputs = [ makeWrapper ];
2017-06-03 21:50:33 +01: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 18:49:33 +00:00
meta = with stdenv.lib; {
2016-02-11 18:49:33 +00:00
description = "A simple, Git-powered wiki";
homepage = https://github.com/gollum/gollum;
2016-02-11 18:49:33 +00:00
license = licenses.mit;
2017-06-03 21:50:33 +01:00
maintainers = with maintainers; [ jgillich primeos ];
2016-02-11 18:49:33 +00:00
platforms = platforms.unix;
};
}