022de5278d
(cherry picked from commit 2c29bb5c9d)
60 lines
2.4 KiB
Nix
60 lines
2.4 KiB
Nix
{ pkgs, haskellLib }:
|
|
|
|
let
|
|
inherit (pkgs) lib;
|
|
inherit (lib.strings) hasSuffix removeSuffix;
|
|
|
|
pathsByName = lib.concatMapAttrs (
|
|
name: type:
|
|
lib.optionalAttrs (type == "regular" && hasSuffix ".nix" name) {
|
|
${removeSuffix ".nix" name} = ./replacements-by-name + "/${name}";
|
|
}
|
|
) (builtins.readDir ./replacements-by-name);
|
|
in
|
|
|
|
# EXTRA HASKELL PACKAGES NOT ON HACKAGE
|
|
#
|
|
# This file should only contain packages that are not in ./hackage-packages.nix.
|
|
# Attributes in this set should be nothing more than a callPackage call.
|
|
# Overrides to these packages should go to either configuration-nix.nix,
|
|
# configuration-common.nix or to one of the compiler specific configuration
|
|
# files.
|
|
self: super:
|
|
{
|
|
|
|
changelog-d = self.callPackage ../misc/haskell/changelog-d { };
|
|
|
|
dconf2nix = self.callPackage ../tools/haskell/dconf2nix/dconf2nix.nix { };
|
|
|
|
# Used by maintainers/scripts/regenerate-hackage-packages.sh, and generated
|
|
# from the latest master instead of the current version on Hackage.
|
|
cabal2nix-unstable = self.callPackage ./cabal2nix-unstable/cabal2nix.nix {
|
|
distribution-nixpkgs = self.distribution-nixpkgs-unstable;
|
|
hackage-db = self.hackage-db-unstable;
|
|
language-nix = self.language-nix-unstable;
|
|
};
|
|
distribution-nixpkgs-unstable = self.callPackage ./cabal2nix-unstable/distribution-nixpkgs.nix {
|
|
language-nix = self.language-nix-unstable;
|
|
};
|
|
hackage-db-unstable = self.callPackage ./cabal2nix-unstable/hackage-db.nix { };
|
|
language-nix-unstable = self.callPackage ./cabal2nix-unstable/language-nix.nix { };
|
|
|
|
ghc-settings-edit = self.callPackage ../tools/haskell/ghc-settings-edit { };
|
|
|
|
# Upstream won't upload vaultenv to Hackage:
|
|
# https://github.com/channable/vaultenv/issues/1 krank:ignore-line
|
|
vaultenv = self.callPackage ../tools/haskell/vaultenv { };
|
|
|
|
# spago-legacy won't be released to Hackage:
|
|
# https://github.com/spacchetti/spago/issues/512 krank:ignore-line
|
|
spago-legacy = self.callPackage ../../by-name/sp/spago-legacy/spago-legacy.nix { };
|
|
|
|
# Unofficial fork until PRs are merged https://github.com/pcapriotti/optparse-applicative/pulls/roberth
|
|
# cabal2nix --maintainer roberth https://github.com/hercules-ci/optparse-applicative.git > pkgs/development/misc/haskell/hercules-ci-optparse-applicative.nix
|
|
hercules-ci-optparse-applicative =
|
|
self.callPackage ../misc/haskell/hercules-ci-optparse-applicative.nix
|
|
{ };
|
|
|
|
}
|
|
// lib.mapAttrs (_name: path: self.callPackage path { }) pathsByName
|