Skip to content
Permalink
Browse files
pinboard-notes-backup: justStaticExecutables, move overrides
Should reduce closure size and reduce the difference between top-level
and haskellPackages version of pinboard-notes-backup.
  • Loading branch information
sternenseemann committed May 4, 2021
1 parent 6e98fdd commit 7ccf17d38bb8c512df980f8475eaa47c3d5fe127
Showing with 10 additions and 8 deletions.
  1. +9 −0 pkgs/development/haskell-modules/configuration-common.nix
  2. +1 −8 pkgs/top-level/all-packages.nix
@@ -1798,4 +1798,13 @@ self: super: {
passthru.updateScript = ../../../maintainers/scripts/haskell/update-cabal2nix-latest.sh;
};

# 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 "");
});

} // import ./configuration-tensorflow.nix {inherit pkgs haskellLib;} self super

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 { };

0 comments on commit 7ccf17d

Please sign in to comment.