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

38 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, stdenv, bundlerEnv, ruby, makeWrapper, bundlerUpdateScript
, git }:
2016-02-11 19:49:33 +01:00
stdenv.mkDerivation rec {
pname = "gollum";
# nix-shell -p bundix icu zlib cmake pkg-config openssl
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 \
2021-01-15 06:42:41 +01:00
--prefix PATH ":" ${lib.makeBinPath [ git ]}
makeWrapper ${env}/bin/gollum-migrate-tags $out/bin/gollum-migrate-tags \
2021-01-15 06:42:41 +01:00
--prefix PATH ":" ${lib.makeBinPath [ git ]}
'';
2016-02-11 19:49:33 +01:00
passthru.updateScript = bundlerUpdateScript "gollum";
meta = with lib; {
description = "A simple, Git-powered wiki with a sweet API and local frontend";
homepage = "https://github.com/gollum/gollum";
changelog = "https://github.com/gollum/gollum/blob/v${version}/HISTORY.md";
2016-02-11 19:49:33 +01:00
license = licenses.mit;
maintainers = with maintainers; [ erictapen jgillich nicknovitski ];
2016-02-11 19:49:33 +01:00
platforms = platforms.unix;
};
}