Skip to content
Snippets Groups Projects
Commit 39ac2ca5 authored by Jean-Paul Calderone's avatar Jean-Paul Calderone
Browse files

Get building and linking against Ristretto working

parent b27cfb93
No related branches found
No related tags found
1 merge request!18Ristretto dependency
{ fetchFromGitHub, callPackage }:
let
src = fetchFromGitHub {
owner = "LeastAuthority";
repo = "privacypass";
rev = "f74b371cdf179454f3ad540a4d0deea879fbe5e1";
sha256 = "0a020ks8awlpil58zcaj5apk1ls0q2y492wsh62kl529jp518v4b";
};
in
callPackage "${src}/ristretto.nix" { }
# This is intended to be used as the shell-file for the stack configuration.
# It sets up the non-Haskell parts of the stack build environment.
{ ghc }:
let
pkgs = import <nixpkgs> { };
# Get our Ristretto bindings.
ristretto = pkgs.callPackage ./ristretto.nix { };
in
# This is what you're supposed to call in a stack shell-file. I don't
# *really* know what it does but I know it works...
pkgs.haskell.lib.buildStackProject {
inherit ghc;
name = "PrivacyPass";
# zlib is a common dependency of many of our dependencies. and we put our
# ristretto library in as well.
buildInputs = [ pkgs.zlib ristretto ];
}
......@@ -64,9 +64,6 @@ extra-deps:
# Allow a newer minor version of GHC than the snapshot specifies
# compiler-check: newer-minor
# https://docs.haskellstack.org/en/stable/nix_integration/#additions-to-your-stackyaml
nix:
enable: true
packages:
- "zlib"
shell-file: "stack-shell.nix"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment