mirror of
https://github.com/Gabriella439/Haskell-Optparse-Generic-Library.git
synced 2024-11-26 08:01:51 +03:00
30 lines
820 B
Nix
30 lines
820 B
Nix
# You can build this repository using Nix by running:
|
|
#
|
|
# $ nix-build -A optparse-generic release.nix
|
|
#
|
|
# You can also open up this repository inside of a Nix shell by running:
|
|
#
|
|
# $ nix-shell -A optparse-generic.env release.nix
|
|
#
|
|
# ... and then Nix will supply the correct Haskell development environment for
|
|
# you
|
|
let
|
|
config = {
|
|
packageOverrides = pkgs: {
|
|
haskellPackages = pkgs.haskellPackages.override {
|
|
overrides = haskellPackagesNew: haskellPackagesOld: {
|
|
optparse-applicative = haskellPackagesNew.callPackage ./optparse-applicative.nix { };
|
|
|
|
optparse-generic = haskellPackagesNew.callPackage ./default.nix { };
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
pkgs =
|
|
import <nixpkgs> { inherit config; };
|
|
|
|
in
|
|
{ optparse-generic = pkgs.haskellPackages.optparse-generic;
|
|
}
|