diff options
Diffstat (limited to 'nixpkgs/pkgs/development/tools/shellcheck/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/tools/shellcheck/default.nix | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/nixpkgs/pkgs/development/tools/shellcheck/default.nix b/nixpkgs/pkgs/development/tools/shellcheck/default.nix index ca3e801e3ed1..568b9e1e1ddd 100644 --- a/nixpkgs/pkgs/development/tools/shellcheck/default.nix +++ b/nixpkgs/pkgs/development/tools/shellcheck/default.nix @@ -1,4 +1,4 @@ -{ stdenv, lib, haskellPackages, haskell }: +{ stdenv, lib, haskellPackages, haskell, pandoc }: # this wraps around the haskell package # and puts the documentation into place @@ -16,17 +16,22 @@ let in drv' // { meta = meta' // overrideFn meta'; }; bin = haskell.lib.justStaticExecutables haskellPackages.ShellCheck; - src = haskellPackages.ShellCheck.src; shellcheck = stdenv.mkDerivation { pname = "shellcheck"; version = bin.version; - inherit src; + inherit (haskellPackages.ShellCheck) meta src; + + nativeBuildInputs = [ pandoc ]; outputs = [ "bin" "man" "doc" "out" ]; - phases = [ "unpackPhase" "installPhase" "fixupPhase" ]; + phases = [ "unpackPhase" "buildPhase" "installPhase" "fixupPhase" ]; + + buildPhase = '' + pandoc -s -f markdown-smart -t man shellcheck.1.md -o shellcheck.1 + ''; installPhase = '' install -Dm755 ${bin}/bin/shellcheck $bin/bin/shellcheck @@ -34,10 +39,6 @@ let install -Dm644 shellcheck.1 $man/share/man/man1/shellcheck.1 mkdir $out ''; - - # just some file copying - preferLocalBuild = true; - allowSubstitutes = false; }; in |