mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-31 01:04:25 +00:00
Merge pull request #174054 from leungbk/pandoc-cmpl
pandoc: Add bash completions
This commit is contained in:
commit
19c61aa22c
@ -1,4 +1,4 @@
|
||||
{ haskellPackages, fetchpatch, haskell, removeReferencesTo }:
|
||||
{ stdenv, lib, haskellPackages, fetchpatch, haskell, removeReferencesTo }:
|
||||
|
||||
let
|
||||
static = haskell.lib.compose.justStaticExecutables haskellPackages.pandoc;
|
||||
@ -13,6 +13,9 @@ in
|
||||
remove-references-to \
|
||||
-t ${haskellPackages.pandoc-types} \
|
||||
$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: {
|
||||
# These libraries are still referenced, because they generate
|
||||
|
Loading…
Reference in New Issue
Block a user