Last active
August 29, 2015 14:12
-
-
Save nuttycom/7309d4df6cada3ac7aae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ quixotic git:(master) ✗ nix-shell --arg networkBitcoin 'import /home/nuttycom/oss/network-bitcoin {}' | |
[nix-shell:~/projects/quixotic]$ eval "$configurePhase" | |
configure flags: --enable-split-objs --disable-library-profiling --enable-shared --enable-library-vanilla --enable-executable-dynamic --enable-tests --ghc-option=-optl=-Wl,-rpath=/nix/store/jg1r4ghgyc97y84dnridx0wx4pq98g14-haskell-quixotic-ghc7.8.4-0.1-shared/lib/ghc-7.8.4/quixotic-0.1 | |
Warning: quixotic.cabal: This package requires at least Cabal version 1.20 | |
Configuring quixotic-0.1... | |
Setup: At least the following dependencies are missing: | |
configurator ==0.2.*, optparse-applicative >=0.9.0 && <0.10 | |
[nix-shell:~/projects/quixotic]$ cat shell.nix | |
# This file was auto-generated by cabal2nix. Please do NOT edit manually! | |
{ haskellPackages ? (import <nixpkgs> {}).haskellPackages | |
, networkBitcoin | |
}: | |
#{ cabal, aeson, bifunctors, classyPrelude | |
#, configurator, either, errors, groups, hourglass, hspec, lens | |
#, MonadCatchIOTransformers, mtl, networkBitcoin | |
#, optparseApplicative, safe, snapCore, snapServer, sqliteSimple | |
#, text, time, transformers | |
#}: | |
with haskellPackages; cabal.mkDerivation (self: { | |
pname = "quixotic"; | |
version = "0.1"; | |
src = "./."; | |
isLibrary = true; | |
isExecutable = true; | |
#buildTools = [ cabalInstall ]; | |
buildDepends = [ | |
aeson bifunctors classyPrelude configurator either | |
errors groups hourglass lens MonadCatchIOTransformers mtl | |
networkBitcoin optparseApplicative safe snapCore snapServer | |
sqliteSimple text time transformers | |
]; | |
testDepends = [ aeson hspec text time ]; | |
meta = { | |
description = "The Quixotic Collaboration Platform"; | |
license = self.stdenv.lib.licenses.unfree; | |
platforms = self.ghc.meta.platforms; | |
}; | |
}) | |
[nix-shell:~/projects/quixotic]$ cat ~/.nixpkgs/config.nix | |
{ | |
allowUnfree = true; | |
packageOverrides = pkgs: rec { | |
haskellPackages = with pkgs.haskellPackages; pkgs.haskellPackages // rec { | |
configurator = callPackage ./haskell/configurator.nix {}; | |
optparseApplicative = callPackage ./haskell/optparseApplicative.nix {}; | |
}; | |
}; | |
} | |
[nix-shell:~/projects/quixotic]$ cat ~/.nixpkgs/haskell/optparseApplicative.nix | |
# This file was auto-generated by cabal2nix. Please do NOT edit manually! | |
#{ haskellPackages ? (import <nixpkgs> {}).haskellPackages } | |
{ cabal, ansiWlPprint, transformers, transformersCompat }: | |
cabal.mkDerivation (self: { | |
pname = "optparse-applicative"; | |
version = "0.11.0.1"; | |
sha256 = "0jdzajj9w0dghv751m59l3imzm2x9lx9cqb6094mncnx8k6cf6f9"; | |
buildDepends = [ ansiWlPprint transformers transformersCompat ]; | |
meta = { | |
homepage = "https://github.com/pcapriotti/optparse-applicative"; | |
description = "Utilities and combinators for parsing command line options"; | |
license = self.stdenv.lib.licenses.bsd3; | |
platforms = self.ghc.meta.platforms; | |
}; | |
}) | |
[nix-shell:~/projects/quixotic]$ cat ~/.nixpkgs/haskell/configurator.nix | |
# This file was auto-generated by cabal2nix. Please do NOT edit manually! | |
{ cabal, attoparsec, filepath, hashable, HUnit, testFramework | |
, testFrameworkHunit, text, unixCompat, unorderedContainers | |
}: | |
cabal.mkDerivation (self: { | |
pname = "configurator"; | |
version = "0.3.0.0"; | |
sha256 = "1d1iq1knwiq6ia5g64rw5hqm6dakz912qj13r89737rfcxmrkfbf"; | |
buildDepends = [ | |
attoparsec hashable text unixCompat unorderedContainers | |
]; | |
testDepends = [ | |
filepath HUnit testFramework testFrameworkHunit text | |
]; | |
meta = { | |
homepage = "http://github.com/bos/configurator"; | |
description = "Configuration management"; | |
license = self.stdenv.lib.licenses.bsd3; | |
platforms = self.ghc.meta.platforms; | |
}; | |
}) | |
[nix-shell:~/projects/quixotic]$ eval "$buildPhase" | |
Setup: You need to re-run the 'configure' command. The version of Cabal being | |
used has changed (was Cabal-1.20.0.2, now Cabal-1.18.1.5). | |
Setup: You need to re-run the 'configure' command. The version of Cabal being | |
used has changed (was Cabal-1.20.0.2, now Cabal-1.18.1.5). | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment