1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-17 21:11:34 +03:00
mobile-nixos/doc/_support/converter/default.nix
2021-02-02 05:51:18 -05:00

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/
'';
}