-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update-versions: update librdkafka to latest + niv update + ghc 8107 #191
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,24 @@ | ||
zookeeper: | ||
image: confluentinc/cp-zookeeper | ||
hostname: zookeeper | ||
ports: | ||
- 2182:2181 | ||
environment: | ||
SERVICE_NAME: zookeeper | ||
ZOOKEEPER_CLIENT_PORT: 2181 | ||
version: '3.8' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just to make this docker-compose compliant |
||
services: | ||
|
||
kafka: | ||
image: confluentinc/cp-kafka:latest | ||
hostname: localhost | ||
ports: | ||
- 9092:9092 | ||
links: | ||
- zookeeper:zookeeper | ||
environment: | ||
KAFKA_ZOOKEEPER_CONNECT: "zookeeper:2181" | ||
KAFKA_ADVERTISED_LISTENERS: "PLAINTEXT://$KAFKA_TEST_BROKER:9092" | ||
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1 | ||
KAFKA_CREATE_TOPICS: | ||
zookeeper: | ||
image: confluentinc/cp-zookeeper:latest | ||
hostname: zookeeper | ||
ports: | ||
- 2182:2181 | ||
environment: | ||
SERVICE_NAME: zookeeper | ||
ZOOKEEPER_CLIENT_PORT: 2181 | ||
|
||
kafka: | ||
image: confluentinc/cp-kafka:latest | ||
hostname: localhost | ||
ports: | ||
- 9092:9092 | ||
links: | ||
- zookeeper:zookeeper | ||
environment: | ||
KAFKA_ZOOKEEPER_CONNECT: "zookeeper:2181" | ||
KAFKA_ADVERTISED_LISTENERS: "PLAINTEXT://$KAFKA_TEST_BROKER:9092" | ||
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1 | ||
KAFKA_CREATE_TOPICS: |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ author: Alexey Raga <[email protected]> | |
maintainer: Alexey Raga <[email protected]> | ||
license: MIT | ||
license-file: LICENSE | ||
tested-with: GHC == 8.10.2, GHC == 8.8.3, GHC == 8.6.5, GHC == 8.4.4 | ||
tested-with: GHC == 8.10.7, GHC == 8.10.2, GHC == 8.8.3, GHC == 8.6.5, GHC == 8.4.4 | ||
build-type: Simple | ||
extra-source-files: README.md | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,53 @@ | ||
{ compiler ? "ghc843" }: | ||
{ compiler ? "ghc8107" }: | ||
|
||
with rec { | ||
sources = import ./sources.nix; | ||
nivOverlay = _: pkgs: | ||
{ niv = (import sources.niv {}).niv; # use the sources :) | ||
}; | ||
nivOverlay = _: pkgs: { | ||
niv = (import sources.niv { }).niv; # use the sources :) | ||
}; | ||
}; | ||
|
||
import sources.nixpkgs { | ||
config = { | ||
packageOverrides = super: let self = super.pkgs; in { | ||
haskellPackages = super.haskell.packages.${compiler}.override { | ||
overrides = import ./overrides.nix { pkgs = self; }; | ||
packageOverrides = super: | ||
let self = super.pkgs; | ||
in { | ||
haskellPackages = super.haskell.packages.${compiler}.override { | ||
overrides = import ./overrides.nix { pkgs = self; }; | ||
}; | ||
}; | ||
|
||
}; | ||
}; | ||
overlays = [nivOverlay]; | ||
# Following lines are useful for: | ||
# Known issues: | ||
# - Support for OpenSSL 1.0.2 ended with 2019. | ||
|
||
# You can install it anyway by allowing this package, using the | ||
# following methods: | ||
|
||
# a) To temporarily allow all insecure packages, you can use an environment | ||
# variable for a single invocation of the nix tools: | ||
|
||
# $ export NIXPKGS_ALLOW_INSECURE=1 | ||
|
||
# b) for `nixos-rebuild` you can add ‘openssl-1.0.2u’ to | ||
# `nixpkgs.config.permittedInsecurePackages` in the configuration.nix, | ||
# like so: | ||
|
||
# { | ||
# nixpkgs.config.permittedInsecurePackages = [ | ||
# "openssl-1.0.2u" | ||
# ]; | ||
# } | ||
|
||
# c) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add | ||
# ‘openssl-1.0.2u’ to `permittedInsecurePackages` in | ||
# ~/.config/nixpkgs/config.nix, like so: | ||
|
||
# { | ||
# permittedInsecurePackages = [ | ||
# "openssl-1.0.2u" | ||
# ]; | ||
# } | ||
config.permittedInsecurePackages = [ "openssl-1.0.2u" ]; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is the line required by |
||
overlays = [ nivOverlay ]; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,22 +5,22 @@ | |
"homepage": "https://github.com/nmattia/niv", | ||
"owner": "nmattia", | ||
"repo": "niv", | ||
"rev": "65a61b147f307d24bfd0a5cd56ce7d7b7cc61d2e", | ||
"sha256": "17mirpsx5wyw262fpsd6n6m47jcgw8k2bwcp1iwdnrlzy4dhcgqh", | ||
"rev": "5830a4dd348d77e39a0f3c4c762ff2663b602d4c", | ||
"sha256": "1d3lsrqvci4qz2hwjrcnd8h5vfkg8aypq3sjd4g3izbc8frwz5sm", | ||
"type": "tarball", | ||
"url": "https://github.com/nmattia/niv/archive/65a61b147f307d24bfd0a5cd56ce7d7b7cc61d2e.tar.gz", | ||
"url": "https://github.com/nmattia/niv/archive/5830a4dd348d77e39a0f3c4c762ff2663b602d4c.tar.gz", | ||
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" | ||
}, | ||
"nixpkgs": { | ||
"branch": "nixos-21.05", | ||
"branch": "nixpkgs-unstable", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. From my point of view, I prefer to go on |
||
"description": "Nix Packages collection", | ||
"homepage": "", | ||
"owner": "NixOS", | ||
"repo": "nixpkgs", | ||
"rev": "ce7a1190a0fa4ba3465b5f5471b08567060ca14c", | ||
"sha256": "1zr1s9gp0h5g4arlba1bpb9yqfaaby5195ydm6a2psaxhm748li9", | ||
"rev": "77fda7f672726e1a95c8cd200f27bccfc86c870b", | ||
"sha256": "07qj1d45pkqsmkahbhh7hilwwbvg8vlz1wg497hzjrlx1a57v4y5", | ||
"type": "tarball", | ||
"url": "https://github.com/NixOS/nixpkgs/archive/ce7a1190a0fa4ba3465b5f5471b08567060ca14c.tar.gz", | ||
"url": "https://github.com/NixOS/nixpkgs/archive/77fda7f672726e1a95c8cd200f27bccfc86c870b.tar.gz", | ||
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,9 @@ pkgs.mkShell { | |
nettools | ||
niv | ||
gmp | ||
docker-compose | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since you provide a |
||
nixfmt | ||
colima | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a way to use |
||
]; | ||
|
||
shellHook = '' | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added
nixfmt
in shell.nix to format all the nix files.