Skip to content

Instantly share code, notes, and snippets.

@sevanspowell
Last active May 3, 2018 10:18
Show Gist options
  • Save sevanspowell/3dc4e45b213571471ab6b20323d283d4 to your computer and use it in GitHub Desktop.
Save sevanspowell/3dc4e45b213571471ab6b20323d283d4 to your computer and use it in GitHub Desktop.
Nix package configuration
...
Configuring quickcheck-instances-0.3.16...
Setup: Encountered missing dependencies:
QuickCheck ==2.10.*
builder for ‘/nix/store/vqqckyhfizaljp0k4zjg1zq1s2z79x1d-quickcheck-instances-0.3.16.drv’ failed with exit code 1
cannot build derivation ‘/nix/store/7aasasy36xzhqcbikp8wc6dmnffarrq7-aeson-1.2.3.0.drv’: 1 dependencies couldn't be built
error: build of ‘/nix/store/7aasasy36xzhqcbikp8wc6dmnffarrq7-aeson-1.2.3.0.drv’ failed
-- Initial servant-cookbook.cabal generated by cabal init. For further
-- documentation, see http://haskell.org/cabal/users-guide/
-- The name of the package.
name: servant-cookbook
-- The package version. See the Haskell package versioning policy (PVP)
-- for standards guiding when and how versions should be incremented.
-- https://wiki.haskell.org/Package_versioning_policy
-- PVP summary: +-+------- breaking API changes
-- | | +----- non-breaking API additions
-- | | | +--- code changes with no API change
version: 0.1.0.0
-- A short (one-line) description of the package.
-- synopsis:
-- A longer description of the package.
-- description:
-- The license under which the package is released.
license: BSD3
-- The file containing the license text.
license-file: LICENSE
-- The package author(s).
author: Samuel Evans-Powell
-- An email address to which users can send suggestions, bug reports, and
-- patches.
maintainer: samueldavid.ep@gmail.com
-- A copyright notice.
-- copyright:
category: Web
build-type: Simple
-- Extra files to be distributed with the package, such as examples or a
-- README.
extra-source-files: ChangeLog.md
-- Constraint on the version of Cabal needed to build this package.
cabal-version: >=1.10
executable servant-cookbook
-- .hs or .lhs file containing the Main module.
main-is: Main.hs
-- Modules included in this executable, other than Main.
-- other-modules:
-- LANGUAGE extensions used by modules in this package.
-- other-extensions:
-- Other library packages from which modules are imported.
build-depends: base >=4.9 && <4.10
, aeson
, bytestring
, http-client >= 0.5
, markdown-unlit >= 0.4
, postgresql-simple >= 0.5
, quickcheck
, resource-pool >= 0.2
, servant
, servant-client
, servant-server >= 0.5
, sqlite-simple >= 0.4
, stm
, text >= 1.2
, transformers
, wai
, warp
-- Directories containing source files.
hs-source-dirs: src
-- Base language which the package is written in.
default-language: Haskell2010
let
pkgs = import <nixpkgs> {};
haskellPackages = pkgs.haskellPackages.extend (self: super: {
http-types = self.callHackage "http-types" "0.12.1" {};
servant = self.callHackage "servant" "0.13" {};
servant-server = self.callHackage "servant-server" "0.13" {};
text = self.callHackage "text" "1.2.3.0" {};
quickcheck = self.callHackage "QuickCheck" "2.10.*" {};
aeson = self.callHackage "aeson" "1.2.3.0" {};
attoparsec = self.callHackage "attoparsec" "0.13.2.0" {};
doctest = self.callHackage "doctest" "0.13.0" {};
http-media = self.callHackage "http-media" "0.7.1.1" {};
mmorph = self.callHackage "mmorph" "1.1.0" {};
quickcheck-instances = self.callHackage "quickcheck-instances" "0.3.16" {};
});
in haskellPackages.ghcWithPackages (p: [ p.servant-server ])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment