pinboard-notes-backup: justStaticExecutables, move overrides

Should reduce closure size and reduce the difference between top-level
and haskellPackages version of pinboard-notes-backup.
This commit is contained in:
sternenseemann 2021-05-04 11:38:46 +02:00 committed by sterni
parent 75f01ec909
commit 917524cb39
2 changed files with 10 additions and 8 deletions

View File

@ -848,4 +848,13 @@ self: super: builtins.intersectAttrs super {
export PATH=dist/build/stutter:$PATH
'' + (drv.preCheck or "");
});
# Install man page and generate shell completions
pinboard-notes-backup = overrideCabal
(generateOptparseApplicativeCompletion "pnbackup" super.pinboard-notes-backup)
(drv: {
postInstall = ''
install -D man/pnbackup.1 $out/share/man/man1/pnbackup.1
'' + (drv.postInstall or "");
});
}

View File

@ -23793,14 +23793,7 @@ in
pinboard = with python3Packages; toPythonApplication pinboard;
pinboard-notes-backup = haskell.lib.overrideCabal
(haskell.lib.generateOptparseApplicativeCompletion "pnbackup"
haskellPackages.pinboard-notes-backup)
(drv: {
postInstall = ''
install -D man/pnbackup.1 $out/share/man/man1/pnbackup.1
'' + (drv.postInstall or "");
});
pinboard-notes-backup = haskell.lib.justStaticExecutables haskellPackages.pinboard-notes-backup;
pixelnuke = callPackage ../applications/graphics/pixelnuke { };