Commit 29ccc912 authored by Valentin Reis's avatar Valentin Reis

Removing completion script from environment variable - it belongs

in the nix file.
parent 13b41b7d
Pipeline #5037 passed with stage
in 2 minutes and 9 seconds
......@@ -26,7 +26,7 @@ in rec
argotk = hpkgs.argotk.overrideAttrs (old:{
installPhase = old.installPhase + ''
mkdir $out/share/
cp completion/argotk.sh $out/share
MANIFESTS=/tmp $out/bin/argotk --bash-completion-script argotk > $out/share/argotk.sh
'';
});
......
......@@ -7,16 +7,9 @@ import Control.Monad
main = shakeArgs shakeOptions $ do
phony "clean" $ do
removeFilesAfter "completion" ["//*"]
removeFilesAfter "." ["README.md"]
want ["README.md", "completion/argotk.sh"]
"completion/*.sh"
%> \out -> do
let cplA = cmd "argotk" ["--bash-completion-script", "argotk"]
(Stdout cplScript) <- cplA
liftIO $ writeFile out cplScript
want ["README.md"]
"README.md" %> \out -> do
let template = ".README.md"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment