diff --git a/pkgs/applications/misc/emanote/default.nix b/pkgs/applications/misc/emanote/default.nix new file mode 100644 index 0000000000000..da387b5062c10 --- /dev/null +++ b/pkgs/applications/misc/emanote/default.nix @@ -0,0 +1,11 @@ +{ lib, haskellPackages, haskell, removeReferencesTo}: + +let + static = haskell.lib.compose.justStaticExecutables haskellPackages.emanote; +in + (haskell.lib.overrideCabal static (drv: { + buildTools = (drv.buildTools or []) ++ [ removeReferencesTo ]; + })).overrideAttrs (drv: rec { + disallowedReferences = [ haskellPackages.pandoc haskellPackages.pandoc-types haskellPackages.warp]; + postInstall = lib.concatStrings (map (e: "remove-references-to -t ${e} $out/bin/emanote\n") disallowedReferences); + }) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8825c82a6480c..1ff55156086a7 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -18909,7 +18909,7 @@ with pkgs; elfio = callPackage ../development/libraries/elfio { }; - emanote = haskell.lib.compose.justStaticExecutables haskellPackages.emanote; + emanote = callPackage ../applications/misc/emanote { }; enchant1 = callPackage ../development/libraries/enchant/1.x.nix { };