Some slight tidying of comments.
This commit is contained in:
parent
657c0fdb21
commit
956bfa4a0e
11
default.nix
11
default.nix
@ -3,8 +3,10 @@
|
||||
, obelisk ? import ./.obelisk/impl {
|
||||
inherit system;
|
||||
iosSdkVersion = "13.2";
|
||||
# Here we insert our own nixpkgs overlays. Since it's a bit awkward, a future version of Obelisk will make this more straightforward, but for now,
|
||||
# the way to do this is by modifying the reflex-platform function to modify its nixpkgsOverlays argument.
|
||||
# Here we insert our own nixpkgs overlays. Since it's a bit awkward, a future version of Obelisk will make
|
||||
# this more straightforward, but for now, the way to do this is by modifying the reflex-platform function
|
||||
# to modify its nixpkgsOverlays argument. Be sure to also have a look at ./nixpkgs-overlay.nix for the botan2
|
||||
# overlay.
|
||||
reflex-platform-func = (args: import (nix-thunk.thunkSource ./.obelisk/impl + "/dep/reflex-platform")
|
||||
(args // { nixpkgsOverlays = args.nixpkgsOverlays ++ [(import ./nixpkgs-overlay.nix { inherit nix-thunk; })]; } ) );
|
||||
|
||||
@ -27,7 +29,10 @@ project ./. ({ pkgs, hackGet, ... }: {
|
||||
ios.bundleName = "Obelisk Minimal Example";
|
||||
overrides = self: super:
|
||||
with pkgs.haskell.lib; {
|
||||
# Here, we get the tahoe-chk package from the chk.hs thunk, and use callCabal2nix to get a nix derivation to build it.
|
||||
# Here, we get the tahoe-chk package from the chk.hs thunk,
|
||||
# and use callCabal2nix to get a nix derivation to build it.
|
||||
# See the comment in ./nixpkgs-overlay.nix for a description
|
||||
# of how to interact with nix thunks.
|
||||
tahoe-chk = self.callCabal2nix "tahoe-chk" (nix-thunk.thunkSource ./dep/chkhs) {};
|
||||
# We also ended up needing an override of the base32 library, which we obtain from Hackage.
|
||||
base32 = self.callHackageDirect {
|
||||
|
@ -35,10 +35,13 @@
|
||||
sha256 = "sha256:1prd9b1xx8c0sfwnyzkspplh30m613j42l1k789s521f4kv4c2z2";
|
||||
});
|
||||
# This has the top level of the flake...
|
||||
challenge-bypass-ristretto-ffi-flake = (self.flake-compat { src = nix-thunk.thunkSource ./dep/python-challenge-bypass-ristretto ; }).defaultNix;
|
||||
challenge-bypass-ristretto-ffi-flake =
|
||||
(self.flake-compat { src = nix-thunk.thunkSource ./dep/python-challenge-bypass-ristretto ; }).defaultNix;
|
||||
# ... from which we can extract whatever packages we need.
|
||||
challenge-bypass-ristretto-ffi = challenge-bypass-ristretto-ffi-flake.packages."${builtins.currentSystem}".libchallenge_bypass_ristretto_ffi;
|
||||
challenge-bypass-ristretto-ffi-android = challenge-bypass-ristretto-ffi-flake.legacyPackages."${builtins.currentSystem}".pkgsCross.aarch64-android.libchallenge_bypass_ristretto_ffi;
|
||||
challenge-bypass-ristretto-ffi =
|
||||
challenge-bypass-ristretto-ffi-flake.packages."${builtins.currentSystem}".libchallenge_bypass_ristretto_ffi;
|
||||
challenge-bypass-ristretto-ffi-android =
|
||||
challenge-bypass-ristretto-ffi-flake.legacyPackages."${builtins.currentSystem}".pkgsCross.aarch64-android.libchallenge_bypass_ristretto_ffi;
|
||||
# We can branch on the target platform to choose between the different architecture libraries from the flake. Modifying the flake might be easier.
|
||||
libchallenge_bypass_ristretto_ffi = if self.stdenv.targetPlatform.isAndroid
|
||||
then challenge-bypass-ristretto-ffi-flake.legacyPackages.${builtins.currentSystem}.pkgsCross.aarch64-android.libchallenge_bypass_ristretto_ffi
|
||||
|
Loading…
Reference in New Issue
Block a user