diff --git a/flake.nix b/flake.nix index 32d4244..cd3bb86 100644 --- a/flake.nix +++ b/flake.nix @@ -10,6 +10,14 @@ pkgs = import nixpkgs { inherit system; }; ghcOverrides = hself: hsuper: rec { berlin-scraper = hself.callPackage ./berlin-scraper {}; + telegram-bot-api = + if system == "aarch64-linux" + then pkgs.haskell.lib.disableLibraryProfiling hsuper.telegram-bot-api + else hsuper.telegram-bot-api; + telegram-bot-simple = + if system == "aarch64-linux" + then pkgs.haskell.lib.disableLibraryProfiling hsuper.telegram-bot-simple + else hsuper.telegram-bot-simple; }; haskellPackages = pkgs.haskellPackages.override { overrides = ghcOverrides; @@ -31,7 +39,8 @@ pkgs.dasel ]; }; + berlin-scraper = pkgs.haskell.lib.justStaticExecutables haskellPackages.berlin-scraper; }; defaultPackage = packages.dev-env; - }); + }); }