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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, stdenv, bundlerEnv, ruby, makeWrapper, bundlerUpdateScript
2021-07-20 00:57:43 +00:00
, git, docutils, perl }:
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 20:50:33 +00:00
2021-08-03 12:04:03 +00:00
dontUnpack = true;
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-07-20 00:57:43 +00:00
--prefix PATH ":" ${lib.makeBinPath [ git docutils perl]}
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; [ erictapen jgillich nicknovitski ];
2016-02-11 18:49:33 +00:00
platforms = platforms.unix;
};
}