Skip to content

Commit

Permalink
Fix hackage nix util
Browse files Browse the repository at this point in the history
  • Loading branch information
tomsmalley committed Mar 16, 2020
1 parent 156ebb7 commit 1e5c6bc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions nix-utils/hackage/default.nix
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
{ reflex-platform ? import ../.. { hideDeprecated = true; }

, lib ? reflex-platform.lib
, pkgs ? reflex-platform.nixpkgs
, haskellPackages ? reflex-platform.haskellPackages
, haskellPackages ? reflex-platform.ghc
}:

rec {
attrsToList = s: map (name: { inherit name; value = builtins.getAttr name s; }) (builtins.attrNames s);
mapSet = f: s: builtins.listToAttrs (map ({name, value}: {
inherit name;
value = f value;
}) (lib.attrsToList s));
}) (attrsToList s));
mkSdist = pkg: pkg.override (oldArgs: {
mkDerivation = drv: oldArgs.mkDerivation (drv // {
pname = drv.pname + "-sdist";
Expand Down

0 comments on commit 1e5c6bc

Please sign in to comment.