blob: 0e4f99ad3d1e0c9dfadd9adb9c33b7bfd99a2445 (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
{
haskell,
haskellPackages,
lib,
stdenv,
}:
let
inherit (haskell.lib.compose) overrideCabal justStaticExecutables;
overrides = {
patches = [ ./0001-Downgrade-cabal-version-for-ghc-9.6-compat.patch ];
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 { };
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
)
]
|