mirror of
https://github.com/unclechu/gRPC-haskell.git
synced 2024-11-26 21:19:43 +01:00
Add the overlay to the release.nix with extend instruction (#123)
This change enables the integration of grpc-haskell within foreign package set by exporting its overlay.
This commit is contained in:
parent
1bdc3662db
commit
0d1f54b6b8
1 changed files with 18 additions and 2 deletions
20
release.nix
20
release.nix
|
@ -52,10 +52,25 @@
|
||||||
# Note that `cabal2nix` also takes an optional `--revision` flag if you want to
|
# Note that `cabal2nix` also takes an optional `--revision` flag if you want to
|
||||||
# pick a revision other than the latest to depend on.
|
# pick a revision other than the latest to depend on.
|
||||||
#
|
#
|
||||||
# Finally, if you want to test a local source checkout of a dependency, then
|
# If you want to test a local source checkout of a dependency, then run:
|
||||||
# run:
|
|
||||||
#
|
#
|
||||||
# $ cabal2nix path/to/dependency/repo > nix/${package-name}.nix
|
# $ cabal2nix path/to/dependency/repo > nix/${package-name}.nix
|
||||||
|
#
|
||||||
|
# Finally, if you want to add grpc-haskell to your own package set, you can
|
||||||
|
# setup the overlay with:
|
||||||
|
#
|
||||||
|
# grpc-nixpkgs = import path/to/gRPC-haskell/nixpkgs.nix;
|
||||||
|
# grpc-overlay = (import path/to/gRPC-haskell/release.nix).overlay;
|
||||||
|
# # optionally use the same nixpkgs source
|
||||||
|
# pkgs = grpc-nixpkgs { overlays = [ grpc-overlay ]; };
|
||||||
|
#
|
||||||
|
# ... and use the extend function to setup haskell package override:
|
||||||
|
#
|
||||||
|
# # see https://github.com/NixOS/nixpkgs/issues/25887
|
||||||
|
# haskellPackages = pkgs.haskellPackages.extend (self: super: {
|
||||||
|
# your-package = self.callCabal2nix "your-package" ./. { };
|
||||||
|
# };);
|
||||||
|
|
||||||
let
|
let
|
||||||
nixpkgs = import ./nixpkgs.nix;
|
nixpkgs = import ./nixpkgs.nix;
|
||||||
|
|
||||||
|
@ -227,5 +242,6 @@ in
|
||||||
|
|
||||||
grpc = pkgs.grpc;
|
grpc = pkgs.grpc;
|
||||||
|
|
||||||
|
overlay = overlay;
|
||||||
inherit (pkgs) test-grpc-haskell;
|
inherit (pkgs) test-grpc-haskell;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue