pandoc: Add bash completions
This commit is contained in:
parent
197e220e46
commit
04dccdf5f5
|
@ -1,4 +1,4 @@
|
||||||
{ haskellPackages, fetchpatch, haskell, removeReferencesTo }:
|
{ stdenv, lib, haskellPackages, fetchpatch, haskell, removeReferencesTo }:
|
||||||
|
|
||||||
let
|
let
|
||||||
static = haskell.lib.compose.justStaticExecutables haskellPackages.pandoc;
|
static = haskell.lib.compose.justStaticExecutables haskellPackages.pandoc;
|
||||||
|
@ -13,6 +13,9 @@ in
|
||||||
remove-references-to \
|
remove-references-to \
|
||||||
-t ${haskellPackages.pandoc-types} \
|
-t ${haskellPackages.pandoc-types} \
|
||||||
$out/bin/pandoc
|
$out/bin/pandoc
|
||||||
|
'' + lib.optionalString (stdenv.buildPlatform == stdenv.hostPlatform) ''
|
||||||
|
mkdir -p $out/share/bash-completion/completions
|
||||||
|
$out/bin/pandoc --bash-completion > $out/share/bash-completion/completions/pandoc
|
||||||
'';
|
'';
|
||||||
}) static).overrideAttrs (drv: {
|
}) static).overrideAttrs (drv: {
|
||||||
# These libraries are still referenced, because they generate
|
# These libraries are still referenced, because they generate
|
||||||
|
|
Loading…
Reference in a new issue