3
0
Fork 0
forked from mirrors/nixpkgs
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 18:49:33 +00: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 18:49:33 +00:00
nativeBuildInputs = [ makeWrapper ];
2017-06-03 21:50:33 +01:00
phases = [ "installPhase" ];
2019-11-09 23:52:53 +00: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 05:42:41 +00:00
--prefix PATH ":" ${lib.makeBinPath [ git ]}
makeWrapper ${env}/bin/gollum-migrate-tags $out/bin/gollum-migrate-tags \
2021-01-15 05:42:41 +00:00
--prefix PATH ":" ${lib.makeBinPath [ git ]}
'';
2016-02-11 18:49:33 +00: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 18:49:33 +00:00
license = licenses.mit;
maintainers = with maintainers; [ jgillich primeos nicknovitski ];
2016-02-11 18:49:33 +00:00
platforms = platforms.unix;
};
}