Skip to content

Instantly share code, notes, and snippets.

@zeta-00
Created December 8, 2019 23:32
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 zeta-00/bce6c97eafd43d8085a6939b45a42657 to your computer and use it in GitHub Desktop.
Save zeta-00/bce6c97eafd43d8085a6939b45a42657 to your computer and use it in GitHub Desktop.
[zeta@nixos:/project0/]$ nix-build release0.nix
these derivations will be built:
/nix/store/pxarwippd7wijkqrc2l6gri30b77d52l-project0-0.1.0.0.drv
building '/nix/store/pxarwippd7wijkqrc2l6gri30b77d52l-project0-0.1.0.0.drv'...
setupCompilerEnvironmentPhase
Build with /nix/store/xf5zihz12kszk0xiv6c0d0psc0mj10xs-ghc-8.6.5.
unpacking sources
unpacking source archive /nix/store/7pkwxdqfqk3am51fhn27qagz84hdlqry-project0
source root is project0
patching sources
compileBuildDriverPhase
setupCompileFlags: -package-db=/build/setup-package.conf.d -j4 -threaded
[1 of 1] Compiling Main ( Setup.hs, /build/Main.o )
Linking Setup ...
configuring
configureFlags: --verbose --prefix=/nix/store/9qa6wbz4a5h3zq8av45fjgc2nkz68xx4-project0-0.1.0.0 --libdir=$prefix/lib/$compiler --libsubdir=$abi/$libname --docdir=/nix/store/gpvf14d7h6q40j148h6z6vhd9265six8-project0-0.1.0.0-doc/share/doc/project0-0.1.0.0 --with-gcc=gcc --package-db=/build/package.conf.d --ghc-option=-j4 --disable-split-objs --enable-library-profiling --profiling-detail=exported-functions --disable-profiling --enable-shared --disable-coverage --enable-static --disable-executable-dynamic --enable-tests --disable-benchmarks --enable-library-vanilla --disable-library-for-ghci --ghc-option=-split-sections --extra-lib-dirs=/nix/store/zp8v7wkbplvmzyds87icn1rk070hizdc-ncurses-6.1-20190112/lib --extra-lib-dirs=/nix/store/j1gs46vkawlk9mz8lc9g0xfi94hwrcv7-libffi-3.2.1/lib --extra-lib-dirs=/nix/store/av3zmkb577zk4ds4xhzixdhvdvh726r7-gmp-6.1.2/lib
Using Parsec parser
Configuring project0-0.1.0.0...
Warning: The 'license-file' field refers to the file 'LICENSE' which does not
exist.
Dependency base ==4.12.*: using base-4.12.0.0
Source component graph: component exe:project0
Configured component graph:
component project0-0.1.0.0-CIY52FPW77iL1bRTXETWtn-project0
include base-4.12.0.0
Linked component graph:
unit project0-0.1.0.0-CIY52FPW77iL1bRTXETWtn-project0
include base-4.12.0.0
Ready component graph:
definite project0-0.1.0.0-CIY52FPW77iL1bRTXETWtn-project0
depends base-4.12.0.0
Using Cabal-2.4.0.1 compiled by ghc-8.6
Using compiler: ghc-8.6.5
Using install prefix:
/nix/store/9qa6wbz4a5h3zq8av45fjgc2nkz68xx4-project0-0.1.0.0
Executables installed in:
/nix/store/9qa6wbz4a5h3zq8av45fjgc2nkz68xx4-project0-0.1.0.0/bin
Libraries installed in:
/nix/store/9qa6wbz4a5h3zq8av45fjgc2nkz68xx4-project0-0.1.0.0/lib/ghc-8.6.5/x86_64-linux-ghc-8.6.5/project0-0.1.0.0
Dynamic Libraries installed in:
/nix/store/9qa6wbz4a5h3zq8av45fjgc2nkz68xx4-project0-0.1.0.0/lib/ghc-8.6.5/x86_64-linux-ghc-8.6.5
Private executables installed in:
/nix/store/9qa6wbz4a5h3zq8av45fjgc2nkz68xx4-project0-0.1.0.0/libexec/x86_64-linux-ghc-8.6.5/project0-0.1.0.0
Data files installed in:
/nix/store/9qa6wbz4a5h3zq8av45fjgc2nkz68xx4-project0-0.1.0.0/share/x86_64-linux-ghc-8.6.5/project0-0.1.0.0
Documentation installed in:
/nix/store/gpvf14d7h6q40j148h6z6vhd9265six8-project0-0.1.0.0-doc/share/doc/project0-0.1.0.0
Configuration files installed in:
/nix/store/9qa6wbz4a5h3zq8av45fjgc2nkz68xx4-project0-0.1.0.0/etc
No alex found
Using ar found on system at:
/nix/store/q354712mnkw3ky8b5crj7ir7dyv29ylj-binutils-2.31.1/bin/ar
No c2hs found
No cpphs found
No doctest found
Using gcc version 8.3.0 given by user at:
/nix/store/5w1sbkk3kwahwm25dhgnyd4w6kg4znmf-gcc-wrapper-8.3.0/bin/gcc
Using ghc version 8.6.5 found on system at:
/nix/store/xf5zihz12kszk0xiv6c0d0psc0mj10xs-ghc-8.6.5/bin/ghc
Using ghc-pkg version 8.6.5 found on system at:
/nix/store/xf5zihz12kszk0xiv6c0d0psc0mj10xs-ghc-8.6.5/bin/ghc-pkg
No ghcjs found
No ghcjs-pkg found
No greencard found
Using haddock version 2.22.0 found on system at:
/nix/store/xf5zihz12kszk0xiv6c0d0psc0mj10xs-ghc-8.6.5/bin/haddock
No happy found
Using haskell-suite found on system at: haskell-suite-dummy-location
Using haskell-suite-pkg found on system at: haskell-suite-pkg-dummy-location
No hmake found
Using hpc version 0.67 found on system at:
/nix/store/xf5zihz12kszk0xiv6c0d0psc0mj10xs-ghc-8.6.5/bin/hpc
Using hsc2hs version 0.68.5 found on system at:
/nix/store/xf5zihz12kszk0xiv6c0d0psc0mj10xs-ghc-8.6.5/bin/hsc2hs
No hscolour found
No jhc found
Using ld found on system at:
/nix/store/dcy619xipxv2fjna4hr077x6z1lxjay3-binutils-wrapper-2.31.1/bin/ld.gold
No pkg-config found
Using runghc version 8.6.5 found on system at:
/nix/store/xf5zihz12kszk0xiv6c0d0psc0mj10xs-ghc-8.6.5/bin/runghc
Using strip version 2.31 found on system at:
/nix/store/q354712mnkw3ky8b5crj7ir7dyv29ylj-binutils-2.31.1/bin/strip
Using tar found on system at:
/nix/store/b6aigimi4gv2a3jxbqpkwwc241n911mr-gnutar-1.32/bin/tar
No uhc found
building
Preprocessing executable 'project0' for project0-0.1.0.0..
Building executable 'project0' for project0-0.1.0.0..
[1 of 1] Compiling Main ( Main.hs, dist/build/project0/project0-tmp/Main.o )
Linking dist/build/project0/project0 ...
running tests
Package has no test suites.
haddockPhase
installing
LICENSE: copyFile: does not exist (No such file or directory)
builder for '/nix/store/pxarwippd7wijkqrc2l6gri30b77d52l-project0-0.1.0.0.drv' failed with exit code 1
error: build of '/nix/store/pxarwippd7wijkqrc2l6gri30b77d52l-project0-0.1.0.0.drv' failed
[zeta@nixos:/project0/]$
@zeta-00
Copy link
Author

zeta-00 commented Dec 8, 2019

{ mkDerivation, base, stdenv }:
mkDerivation {
pname = "project0";
version = "0.1.0.0";
src = ./.;
isLibrary = false;
isExecutable = true;
executableHaskellDepends = [ base ];
hydraPlatforms = stdenv.lib.platforms.none;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment