mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 17:41:12 +00:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
35 lines
860 B
Nix
35 lines
860 B
Nix
{ stdenv, bundlerEnv, ruby, makeWrapper, bundlerUpdateScript
|
|
, git }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gollum";
|
|
# nix-shell -p bundix icu zlib
|
|
version = (import ./gemset.nix).gollum.version;
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
env = bundlerEnv {
|
|
name = "${pname}-${version}-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 ]}
|
|
'';
|
|
|
|
passthru.updateScript = bundlerUpdateScript "gollum";
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A simple, Git-powered wiki";
|
|
homepage = https://github.com/gollum/gollum;
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ jgillich primeos nicknovitski ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|