Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

e6d2474 beaks nix build #512

Closed
lucc opened this issue Nov 18, 2023 · 4 comments
Closed

e6d2474 beaks nix build #512

lucc opened this issue Nov 18, 2023 · 4 comments

Comments

@lucc
Copy link
Contributor

lucc commented Nov 18, 2023

Describe the bug
Since e6d2474 the nix flake does not build purepred sucesfully.

To Reproduce

command: nix build github:purebred-mua/purebred
log:

@nix { "action": "setPhase", "phase": "setupCompilerEnvironmentPhase" }
setupCompilerEnvironmentPhase
Build with /nix/store/xdahirc0rarz4k39qlm8ykyzqs3axfzd-ghc-9.2.4.
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/j9y74lr5b5fadk2ad4ap10rb6390c5wj-26raxwaszfqfg2610m66z8yvxbvynl51-source
source root is 26raxwaszfqfg2610m66z8yvxbvynl51-source
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "compileBuildDriverPhase" }
compileBuildDriverPhase
setupCompileFlags: -package-db=/build/tmp.I19NoQ9IGX/setup-package.conf.d -j4 +RTS -A64M -RTS -threaded -rtsopts
[1 of 1] Compiling Main             ( Setup.hs, /build/tmp.I19NoQ9IGX/Main.o )
Linking Setup ...
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
configureFlags: --verbose --prefix=/nix/store/26l1a904lgiy5jxgvsvyddd5dvff0s0k-purebred-0.1.0.0 --libdir=$prefix/lib/$compiler --libsubdir=$abi/$libname --docdir=/nix/store/qxvxslzjhd1fnk8wpw8mhqrv38nqcc1q-purebred-0.1.0.0-doc/share/doc/purebred-0.1.0.0 --with-gcc=gcc --package-db=/build/tmp.I19NoQ9IGX/package.conf.d --ghc-options=-j4 +RTS -A64M -RTS --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 --ghc-options=-haddock --extra-lib-dirs=/nix/store/vhgj0kyl1ijq408w9j0n4iq1ycrhhhfl-ncurses-6.3-p20220507/lib --extra-lib-dirs=/nix/store/94p2qrkvb9h0m7h5p0by88z0gzzaxl36-libffi-3.4.2/lib --extra-lib-dirs=/nix/store/14aarvmjm8xcq3ma0mxdfh59xmbpw284-gmp-with-cxx-6.2.1/lib
Using Parsec parser
Configuring purebred-2022.1...

Setup: Encountered missing or private dependencies:
brick >=2.1 && <2.2, vty >=6

Expected behavior

nix build should sucesfully build purebred, like nix build github:purebred-mua/purebred/43f5ed3d32b373615ab0c622f14235ca2bb18288 does.

Additional context

@frasertweedale I think you forgot to update brick in the .nix folder.

@lucc
Copy link
Contributor Author

lucc commented Nov 18, 2023

This patch brings me one step further:

diff --git a/.nix/brick.nix b/.nix/brick.nix
index 1db9b3a..ba53c8f 100644
--- a/.nix/brick.nix
+++ b/.nix/brick.nix
@@ -6,8 +6,8 @@
 }:
 mkDerivation {
   pname = "brick";
-  version = "1.5";
-  sha256 = "6290081719d68c149dc9bd0098f36aac235b615334a3510fda89e19bbdb95f4f";
+  version = "2.1.1";
+  sha256 = "30280d6f7130eb3e6cbf5a55465a06a825169cb536d3b2e91883aec23532b31e";
   isLibrary = true;
   isExecutable = true;
   libraryHaskellDepends = [
diff --git a/.nix/text-zipper.nix b/.nix/text-zipper.nix
index d93fa9d..b852733 100644
--- a/.nix/text-zipper.nix
+++ b/.nix/text-zipper.nix
@@ -2,8 +2,8 @@
 }:
 mkDerivation {
   pname = "text-zipper";
-  version = "0.12";
-  sha256 = "86aba7244c9ed0d8e24e9d1fa64ee317a062e7bd777018053517daefb0696702";
+  version = "0.13";
+  sha256 = "06521cc7c435f8e85aeb3ed3f2b872000c52087d73518de31e65bdca072a98a9";
   enableSeparateDataOutput = true;
   libraryHaskellDepends = [ base deepseq text vector ];
   testHaskellDepends = [ base hspec QuickCheck text ];
diff --git a/.nix/vty.nix b/.nix/vty.nix
index 16f88b2..68ecbc7 100644
--- a/.nix/vty.nix
+++ b/.nix/vty.nix
@@ -8,8 +8,8 @@
 }:
 mkDerivation {
   pname = "vty";
-  version = "5.36";
-  sha256 = "f1bb8d161f467801404b60d8754c496af66cb741a3f04e5b013a6890390c04a5";
+  version = "6.1";
+  sha256 = "2fc64b7d09f16bce9c6456e234e6aca3a86be9a40f360435499fc087b94f7bd6";
   isLibrary = true;
   isExecutable = true;
   libraryHaskellDepends = [

build log extract :

@nix { "action": "setPhase", "phase": "setupCompilerEnvironmentPhase" }
setupCompilerEnvironmentPhase
Build with /nix/store/xdahirc0rarz4k39qlm8ykyzqs3axfzd-ghc-9.2.4.
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/1qnxyy9vmjcz1pxc97a5jsqgyq5jagdj-brick-2.1.1.tar.gz
source root is brick-2.1.1
setting SOURCE_DATE_EPOCH to timestamp 1000000000 of file brick-2.1.1/tests/Render.hs
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "compileBuildDriverPhase" }
compileBuildDriverPhase
setupCompileFlags: -package-db=/build/tmp.n8uStJ4GjV/setup-package.conf.d -j4 +RTS -A64M -RTS -threaded -rtsopts
[1 of 1] Compiling Main             ( Setup.hs, /build/tmp.n8uStJ4GjV/Main.o )
Linking Setup ...
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
configureFlags: --verbose --prefix=/nix/store/bzp1ibm35kynkdik721pwsxbj599ijy3-brick-2.1.1 --libdir=$prefix/lib/$compiler --libsubdir=$abi/$libname --docdir=/nix/store/4z71yhyl3z2ysmcy3yxzr8ww2qas5nhy-brick-2.1.1-doc/share/doc/brick-2.1.1 --with-gcc=gcc --package-db=/build/tmp.n8uStJ4GjV/package.conf.d --ghc-options=-j4 +RTS -A64M -RTS --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 --ghc-options=-haddock --extra-lib-dirs=/nix/store/vhgj0kyl1ijq408w9j0n4iq1ycrhhhfl-ncurses-6.3-p20220507/lib --extra-lib-dirs=/nix/store/94p2qrkvb9h0m7h5p0by88z0gzzaxl36-libffi-3.4.2/lib --extra-lib-dirs=/nix/store/14aarvmjm8xcq3ma0mxdfh59xmbpw284-gmp-with-cxx-6.2.1/lib
Using Parsec parser
Configuring brick-2.1.1...

Setup: Encountered missing or private dependencies:
unix-compat, vty-crossplatform, vty-unix

@frasertweedale
Copy link
Member

@romanofski could you please take a look at this?

@romanofski
Copy link
Member

Yeah can confirm. @lucc do you want to file your patch as a PR?

@frasertweedale
Copy link
Member

Fixed in #514 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants