| 2 Jun 2021 |
cdepillabout | 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 | It’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 |
Roos | 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 |
Roos | 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 | seen that article too when we started with nix and immediately discounted it for being just an angry rant | 17:55:12 |
sterni (he/him) | New PR: https://github.com/NixOS/nixpkgs/pull/125429 | 22:19:52 |
sterni (he/him) | Did anything break while I was away? :) | 22:20:25 |
maralorn | 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 |
sterni (he/him) | I was referring to master :p | 22:29:09 |
sterni (he/him) | If mergeable and maintained are any indication, then I'm not too worried about that | 22:29:46 |
maralorn | Do oure mergeable and maintained get built on master? | 22:30:11 |
sterni (he/him) | No, but they we were even with master when they were green, so all should be well | 22:31:54 |
maralorn | Ah, yeah. | 22:32:06 |
maralorn | We need something maintained and mergeable on status.nixos.org.^^ | 22:32:58 |
sterni (he/him) | heh | 22:38:23 |
| 3 Jun 2021 |
| bqv changed their display name from bqv to qy. | 00:50:32 |
| bqv changed their display name from qy to bqv. | 00:50:33 |
| ahdyt joined the room. | 05:59:29 |
ahdyt | 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? | 06:00:46 |
Roos | Afair, 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 | * 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-breakout | 06:02:24 |
Roos | ghc802 missing means that compiler version (I'm guessing 8.02) is not available in the nixpkgs available in NIX_PATH. | 06:03:23 |
Roos | You may want to take a look at pkgs/top-level/haskell-packages.nix to see the supported ghc versions. | 06:04:30 |
ahdyt | Yeah it's also unavailable in nixpkgs, cause it's too old, my ghc is 8.10 | 06:04:51 |
ahdyt | So how to "fix" this missing ghc? Updating the Stack.yaml? | 06:05:40 |
Roos | From what I can see, ghc865 seems to be the oldest available compiler. | 06:05:42 |
Roos | 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 |
Roos | It is also possible to build with an older version of nixpkgs, but be ready to download the world :D | 06:06:54 |
cdepillabout | ahdyt: You generally have two options:
- Specify an older channel as Roos suggests (
stack --nix-path nixpkgs=https://github.com/NixOS/nixpkgs/archive/8c2447fdee1af9310367b1ad7b63aed6217d3445.tar.gz build)
- Write a
stack-shell.nix file: https://docs.haskellstack.org/en/stable/nix_integration/#using-a-custom-shellnix-file
| 06:09:20 |
Roos | cdepillabout: How would you go about finding a nixpkgs version that contains a given compiler? | 06:10:02 |