mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2024-12-17 21:11:34 +03:00
37 lines
711 B
Nix
37 lines
711 B
Nix
{ stdenv, lib, bundlerEnv, glibcLocales }:
|
|
|
|
let
|
|
env =
|
|
bundlerEnv {
|
|
name = "mobile-nixos-process-doc";
|
|
gemdir = ./.;
|
|
|
|
exes = [
|
|
"asciidoctor"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Custom documentation building pipeline built on asciidoctor";
|
|
license = licenses.mit; # Same as mobile-nixos
|
|
maintainers = with maintainers; [ samueldr ];
|
|
platforms = platforms.unix;
|
|
};
|
|
};
|
|
in
|
|
stdenv.mkDerivation {
|
|
name = env.name;
|
|
src = ./.;
|
|
buildInputs = [
|
|
env
|
|
env.wrappedRuby
|
|
];
|
|
propagatedBuildInputs = [
|
|
glibcLocales
|
|
];
|
|
installPhase = ''
|
|
mkdir -vp $out/
|
|
cp -vpr bin $out/
|
|
cp -vpr lib $out/
|
|
'';
|
|
}
|