Skip to content

Commit 112d848

Browse files
committed
nix: Formatting changes and meta attrs to minimize the diff
1 parent 791f5ff commit 112d848

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

nix/agda2hs.nix

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# The present file is based on https://github.com/NixOS/nixpkgs/blob/1d2cfef5e965ca6933a8aa696eadfa556d90fab3/pkgs/build-support/agda/default.nix
33
# FIXME: this file is haskell-updates, double-check that nothing changes once it gets merged in unstable
44
# but it would be nice to expose this in upstream so that we don't have to duplicate the file
5+
56
{
67
stdenv,
78
lib,
@@ -12,13 +13,14 @@
1213
writeText,
1314
ghcWithPackages,
1415
}:
16+
1517
let
1618
inherit (lib)
1719
elem
1820
filter
1921
filterAttrs
20-
isList
2122
isAttrs
23+
isList
2224
platforms
2325
;
2426

@@ -54,6 +56,7 @@ let
5456
unwrapped = agda2hs;
5557
inherit withPackages;
5658
};
59+
meta = agda2hs.meta;
5760
}
5861
''
5962
mkdir -p $out/bin
@@ -127,9 +130,11 @@ let
127130
# the referenced issue doesn't seem to surface on darwin. Hence let's
128131
# set this only on non-darwin.
129132
LC_ALL = optionalString (!stdenv.hostPlatform.isDarwin) "C.UTF-8";
130-
};
131133

132-
in {
134+
meta = if meta.broken or false then meta // { hydraPlatforms = platforms.none; } else meta;
135+
};
136+
in
137+
{
133138
mkDerivation = args: stdenv.mkDerivation (args // defaults args);
134139

135140
inherit mkLibraryFile withPackages withPackages';

0 commit comments

Comments
 (0)