Compile for aarch64 without running out of RAM
This commit is contained in:
parent
3619e9390b
commit
996e325038
11
flake.nix
11
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;
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue