mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-13 16:34:27 +00:00
6cc8c10fe0
The use of the Paths_ module causes erroneous references on aarch64-darwin (due to a lack of dead code elimination), so we can't use justStaticExecutables. See #318013.
33 lines
934 B
Nix
33 lines
934 B
Nix
{
|
|
haskell,
|
|
haskellPackages,
|
|
lib,
|
|
stdenv,
|
|
}:
|
|
let
|
|
inherit (haskell.lib.compose) overrideCabal justStaticExecutables;
|
|
|
|
overrides = {
|
|
description = "OAuth credential MAnager";
|
|
homepage = "https://github.com/pdobsan/oama";
|
|
maintainers = with lib.maintainers; [ aidalgol ];
|
|
|
|
passthru.updateScript = ./update.sh;
|
|
};
|
|
|
|
raw-pkg = (haskellPackages.callPackage ./generated-package.nix { }).overrideScope (
|
|
final: prev: {
|
|
# Dependency twain requires an older version of http2, and we cannot mix
|
|
# versions of transitive dependencies.
|
|
http2 = final.http2_3_0_3;
|
|
warp = final.warp_3_3_30;
|
|
}
|
|
);
|
|
in
|
|
lib.pipe raw-pkg [
|
|
(overrideCabal overrides)
|
|
# FIXME: eliminate all erroneous references on aarch64-darwin manually,
|
|
# see https://github.com/NixOS/nixpkgs/issues/318013
|
|
(if stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64 then lib.id else justStaticExecutables)
|
|
]
|