!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

720 Members
For discussions and questions about Haskell with Nix, cabal2nix and haskellPackages in nixpkgs | Current Docs: https://haskell4nix.readthedocs.io/ | More Nix: #community:nixos.org | More Haskell: #haskell-space:matrix.org143 Servers

Load older messages


SenderMessageTime
2 Jun 2021
@cdepillabout:matrix.orgcdepillabout
In reply to @sternenseemann:systemli.org
inb4 the negative article is https://hands-on.cloud/why-you-should-never-ever-use-nixos/

Determinism

All it’s determinism is about that it deterministically gives you a lot of issues, which you need to overcome manually without any support.

Haha, I thought this was a pretty funny line.

17:39:50
@maralorn:maralorn.demaralornIt’s just sad because people we get pushed away from nix very hard if this is the first thing they will read.17:47:35
@roosemberth:orbstheorem.chRoos They raise valid points, but I find it heavely opinionated on the this is they way I've been doing for 10 years, why can't I keep doing it? 17:48:57
@roosemberth:orbstheorem.chRoos

Also, I was really sad when I read Aaand, yes, service configuration file also need to be declared using Nix expression language

This is simply not true: first cause you can use Nix without NixOS and second because you can always embed your custom .service file :/

17:50:12
@pennae:matrix.eno.spacepennaeseen that article too when we started with nix and immediately discounted it for being just an angry rant17:55:12
@sternenseemann:systemli.orgsterni (he/him)New PR: https://github.com/NixOS/nixpkgs/pull/12542922:19:52
@sternenseemann:systemli.orgsterni (he/him)Did anything break while I was away? :)22:20:25
@maralorn:maralorn.demaralorn sterni (he/him): ap-normalize certainly did https://hydra.nixos.org/eval/1674829?filter=x86_64-linux&compare=1674774&full=#tabs-errors 😉 22:28:30
@sternenseemann:systemli.orgsterni (he/him)I was referring to master :p22:29:09
@sternenseemann:systemli.orgsterni (he/him)If mergeable and maintained are any indication, then I'm not too worried about that22:29:46
@maralorn:maralorn.demaralornDo oure mergeable and maintained get built on master?22:30:11
@sternenseemann:systemli.orgsterni (he/him)No, but they we were even with master when they were green, so all should be well22:31:54
@maralorn:maralorn.demaralornAh, yeah.22:32:06
@maralorn:maralorn.demaralornWe need something maintained and mergeable on status.nixos.org.^^22:32:58
@sternenseemann:systemli.orgsterni (he/him)heh22:38:23
3 Jun 2021
@_xmpp_qy=40xa0.uk:matrix.orgbqv changed their display name from bqv to qy.00:50:32
@_xmpp_qy=40xa0.uk:matrix.orgbqv changed their display name from qy to bqv.00:50:33
@ahdyt:matrix.orgahdyt joined the room.05:59:29
@ahdyt:matrix.orgahdythow's stack in haskell? I can't just use nix-shell -p stack and build stack project? it's says missing ghc802 which is unavailable anymore in nixpkgs I guess? Or I mean, how to build haskell stack project in nix way?06:00:46
@roosemberth:orbstheorem.chRoosAfair, the GHC version is fixed in the stack distribution of your project. Stack is integrated with nix to use the corresponding attribute (e.g. ghc802) as a function of the compiler in the stack distribution.06:02:19
@ahdyt:matrix.orgahdyt * how's stack in haskell? I can't just use nix-shell -p stack and build stack project? it's says missing ghc802 which is unavailable anymore in nixpkgs I guess? Or I mean, how to build haskell stack project in nix way? this is the example stack project I wanna build https://github.com/akhesaCaro/haskell-breakout06:02:24
@roosemberth:orbstheorem.chRoosghc802 missing means that compiler version (I'm guessing 8.02) is not available in the nixpkgs available in NIX_PATH.06:03:23
@roosemberth:orbstheorem.chRoos You may want to take a look at pkgs/top-level/haskell-packages.nix to see the supported ghc versions. 06:04:30
@ahdyt:matrix.orgahdytYeah it's also unavailable in nixpkgs, cause it's too old, my ghc is 8.1006:04:51
@ahdyt:matrix.orgahdytSo how to "fix" this missing ghc? Updating the Stack.yaml?06:05:40
@roosemberth:orbstheorem.chRoosFrom what I can see, ghc865 seems to be the oldest available compiler.06:05:42
@roosemberth:orbstheorem.chRoos
In reply to @ahdyt:matrix.org
So how to "fix" this missing ghc? Updating the Stack.yaml?
Yes, that is an alternative.
06:05:57
@roosemberth:orbstheorem.chRoosIt is also possible to build with an older version of nixpkgs, but be ready to download the world :D06:06:54
@cdepillabout:matrix.orgcdepillabout

ahdyt: You generally have two options:

  1. Specify an older channel as Roos suggests (stack --nix-path nixpkgs=https://github.com/NixOS/nixpkgs/archive/8c2447fdee1af9310367b1ad7b63aed6217d3445.tar.gz build)
  2. Write a stack-shell.nix file: https://docs.haskellstack.org/en/stable/nix_integration/#using-a-custom-shellnix-file
06:09:20
@roosemberth:orbstheorem.chRoos cdepillabout: How would you go about finding a nixpkgs version that contains a given compiler? 06:10:02

There are no newer messages yet.


Back to Room ListRoom Version: 6