Compile for aarch64 without running out of RAM

This commit is contained in:
Akshay Mankar 2023-10-27 09:20:26 +02:00
parent 3619e9390b
commit 996e325038
Signed by: axeman
GPG key ID: CA08F3AB62369B89

View file

@ -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;
});
});
}