mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-10 08:39:08 +03:00
gollum: refactor package
use `bundlerApp` in preference to `stdenv.mkDerivation`
This commit is contained in:
parent
9ce5907d02
commit
8a770f06a2
@ -1412,6 +1412,12 @@
|
||||
githubId = 916366;
|
||||
name = "Brandon Elam Barker";
|
||||
};
|
||||
bbenno = {
|
||||
email = "nix@bbenno.com";
|
||||
github = "bbenno";
|
||||
githubId = 32938211;
|
||||
name = "Benno Bielmeier";
|
||||
};
|
||||
bbigras = {
|
||||
email = "bigras.bruno@gmail.com";
|
||||
github = "bbigras";
|
||||
|
@ -117,5 +117,5 @@ in
|
||||
};
|
||||
};
|
||||
|
||||
meta.maintainers = with lib.maintainers; [ erictapen ];
|
||||
meta.maintainers = with lib.maintainers; [ erictapen bbenno ];
|
||||
}
|
||||
|
@ -1,37 +1,22 @@
|
||||
{ lib, stdenv, bundlerEnv, ruby, makeWrapper, bundlerUpdateScript
|
||||
, git, docutils, perl }:
|
||||
{ lib, bundlerApp, bundlerUpdateScript, ruby, makeWrapper, git, docutils }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
bundlerApp rec {
|
||||
pname = "gollum";
|
||||
# nix-shell -p bundix icu zlib cmake pkg-config openssl
|
||||
version = (import ./gemset.nix).gollum.version;
|
||||
exes = [ "gollum" ];
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
inherit ruby;
|
||||
gemdir = ./.;
|
||||
|
||||
dontUnpack = true;
|
||||
|
||||
installPhase = let
|
||||
env = bundlerEnv {
|
||||
name = "${pname}-${version}-gems";
|
||||
inherit pname ruby;
|
||||
gemdir = ./.;
|
||||
};
|
||||
in ''
|
||||
mkdir -p $out/bin
|
||||
makeWrapper ${env}/bin/gollum $out/bin/gollum \
|
||||
--prefix PATH ":" ${lib.makeBinPath [ git docutils perl]}
|
||||
makeWrapper ${env}/bin/gollum-migrate-tags $out/bin/gollum-migrate-tags \
|
||||
--prefix PATH ":" ${lib.makeBinPath [ git ]}
|
||||
'';
|
||||
buildInputs = [ makeWrapper ];
|
||||
|
||||
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";
|
||||
changelog = "https://github.com/gollum/gollum/blob/HEAD/HISTORY.md";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ erictapen jgillich nicknovitski ];
|
||||
maintainers = with maintainers; [ erictapen jgillich nicknovitski bbenno ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user