Skip to content

Instantly share code, notes, and snippets.

@rprije
Last active October 18, 2018 04:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rprije/0444eb0d38f19f3ac964455fc65c620c to your computer and use it in GitHub Desktop.
Save rprije/0444eb0d38f19f3ac964455fc65c620c to your computer and use it in GitHub Desktop.
{ system ? builtins.currentSystem # TODO: Get rid of this system cruft
, iosSdkVersion ? "10.2"
}:
with import ./.obelisk/impl { inherit system iosSdkVersion; };
project ./. ({ pkgs, ... }: {
android.applicationId = "systems.obsidian.obelisk.examples.minimal";
android.displayName = "Obelisk Minimal Example";
ios.bundleIdentifier = "systems.obsidian.obelisk.examples.minimal";
ios.bundleName = "Obelisk Minimal Example";
packages = {
servant-reflex = pkgs.fetchFromGitHub {
owner = "imalsogreg";
repo = "servant-reflex";
rev = "ec8723351c8245f29a88cc5e6250533d2d6f4761";
sha256 = "1r8z95hpl6f5pql1f6a3plczahym09fdnxkcg3a6ildw6chmips0";
};
servant-auth-server = "${pkgs.fetchFromGitHub {
owner = "haskell-servant";
repo = "servant-auth";
rev = "servant-auth-server-0.4.1.0";
sha256 = "0zb1ghdh20wdsyg58diz10bwksaiyx7w1n9lhvbn9r1zaq8l13bj";
}}/servant-reflex-server";
};
overrides = self: super: with pkgs.haskell.lib; {
servant-reflex = doJailbreak super.servant-reflex;
};
})
$ ob run
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_AU.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
building '/nix/store/q9dw1zslk1pvxyic338dkic0may3kbh0-cabal2nix-servant-auth-server.drv'...
installing
error: creating directory '/nix/var': Permission denied
** need a revision for VCS when the hash is given. skipping.
** need a revision for VCS when the hash is given. skipping.
** need a revision for VCS when the hash is given. skipping.
** need a revision for VCS when the hash is given. skipping.
cabal2nix: user error (Failed to fetch source. Does this source exist? Source {sourceUrl = "/nix/store/h2qb8i8vzdfwfph25ac8h7vq96nxjzas-source/servant-reflex-server", sourceRevision = "", sourceHash = Guess "", sourceCabalDir = ""})
builder for '/nix/store/q9dw1zslk1pvxyic338dkic0may3kbh0-cabal2nix-servant-auth-server.drv' failed with exit code 1
error: build of '/nix/store/q9dw1zslk1pvxyic338dkic0may3kbh0-cabal2nix-servant-auth-server.drv' failed
(use ‘--show-trace’ to show detailed location information)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment