Home liberachat/#haskell: Logs Calendar

Logs: liberachat/#haskell

←Prev  Next→ 1,804,041 events total
2021-08-10 17:07:01 <dminuoso> Athas: override the src attribute of the derivation and use lib.cleanSource
2021-08-10 17:07:12 <dminuoso> If there's cabal/stack directories, that's the problem
2021-08-10 17:07:13 × lavaman quits (~lavaman@98.38.249.169) (Ping timeout: 248 seconds)
2021-08-10 17:07:36 <Athas> How do I use lib.cleanSource? My reading of this is that it might be trying to do something in that regard: https://github.com/NixOS/nixpkgs/blob/34f475f5eae13d18b4e4b8a17aa7a772d8619b0b/pkgs/development/haskell-modules/make-package-set.nix#L201-L216
2021-08-10 17:08:07 × merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 268 seconds)
2021-08-10 17:08:13 <Cale> I was about to link the very same thing :D
2021-08-10 17:08:27 <dminuoso> Sorry, I meant cleanSourceWith
2021-08-10 17:08:40 merijn joins (~merijn@83-160-49-249.ip.xs4all.nl)
2021-08-10 17:09:41 <dminuoso> You override the src attribute with something like: `{ src = lib.cleanSourceWith { filter = p; src = ./.; }; }` where `p` is a suitable predicate that will ignore cabal/stack directories.
2021-08-10 17:10:19 <dminuoso> I wonder whether callCabal2nix wouldn't already do this.
2021-08-10 17:10:56 × eggplantade quits (~Eggplanta@108-201-191-115.lightspeed.sntcca.sbcglobal.net) (Remote host closed the connection)
2021-08-10 17:11:12 <Cale> It's already filtering to only .cabal and package.yaml files.
2021-08-10 17:11:57 <dminuoso> But really, start by looking at what `src` is in the resulting derivation, and then proceed.
2021-08-10 17:12:04 <Athas> dminuoso: I know how to do that when writing derivations by hand (I think), but I have no idea how to slot it into the magic that the callCabal2Nix is doing.
2021-08-10 17:12:05 <dminuoso> That'd be my first suspect
2021-08-10 17:12:20 <dminuoso> Athas: callCabal2nix produces a derivation, that you can override like any other derivation
2021-08-10 17:12:31 <dminuoso> Using override or overrideAttrs
2021-08-10 17:13:03 <Athas> I see. I'll try.
2021-08-10 17:14:07 × merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 258 seconds)
2021-08-10 17:14:55 merijn joins (~merijn@83-160-49-249.ip.xs4all.nl)
2021-08-10 17:15:24 <Athas> It looks like it's working. Thanks! I guess I will have to maintain the list of source directories in default.nix manually. It would have been nicer if it was just extracted from the cabal file.
2021-08-10 17:15:58 <dminuoso> Athas: you can also invert the match and just exclude the pathological directories. That could reduce maintenance
2021-08-10 17:16:05 <dminuoso> While not as clean, perhaps
2021-08-10 17:16:18 × acertain quits (sid470584@stonehaven.irccloud.com) (Ping timeout: 240 seconds)
2021-08-10 17:16:25 <Athas> dminuoso: unfortunately, I also have a habit of storing various large development files in the root directory.
2021-08-10 17:16:49 <dminuoso> Im curious why I havent had this type of issue before
2021-08-10 17:17:10 × aplainzetakind quits (~johndoe@captainludd.powered.by.lunarbnc.net) (Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net)
2021-08-10 17:17:30 <Athas> The reason might also be that I have a 'tests' folder that may contain various quite large autogenerated test files.
2021-08-10 17:18:20 <dminuoso> 19:11:13 Cale | It's already filtering to only .cabal and package.yaml files.
2021-08-10 17:18:22 <dminuoso> Mmm
2021-08-10 17:18:49 <dminuoso> Maybe canCleanSource fails?
2021-08-10 17:18:50 <Cale> (and in fact, it's not just any .cabal files, it's only the .cabal file that has the right package name)
2021-08-10 17:19:08 oxide joins (~lambda@user/oxide)
2021-08-10 17:19:10 <dminuoso> If it fails, no cleanSourceWith is called
2021-08-10 17:19:11 <Athas> Wait, I also spoke too soon. I thought src could be a list, but I guess not.
2021-08-10 17:19:24 <dminuoso> But this is poking at the problem. Look at the generated derivation first.
2021-08-10 17:20:01 × merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 248 seconds)
2021-08-10 17:20:50 merijn joins (~merijn@83-160-49-249.ip.xs4all.nl)
2021-08-10 17:21:58 <Athas> The generated derivation contains 'src = ./.', as I would expect.
2021-08-10 17:22:35 <dminuoso> Athas: How does `lib.canCleanSource ./.` evaluate with your used nixpkgs?
2021-08-10 17:22:37 × SanchayanMaity quits (sid478177@id-478177.stonehaven.irccloud.com) (Ping timeout: 245 seconds)
2021-08-10 17:23:33 <Athas> I have no idea how to evaluate that.
2021-08-10 17:24:12 <dminuoso> You can use `nix eval`
2021-08-10 17:24:14 acertain joins (sid470584@stonehaven.irccloud.com)
2021-08-10 17:24:18 × astra` quits (sid289983@user/amish) (Ping timeout: 240 seconds)
2021-08-10 17:25:08 <Athas> But there is no 'lib' in that environment. I think this has crossed my threshold of Nix experience.
2021-08-10 17:25:19 SanchayanMaity joins (sid478177@stonehaven.irccloud.com)
2021-08-10 17:25:28 × xff0x quits (~xff0x@2001:1a81:53d2:1c00:f58c:78ee:80de:d293) (Ping timeout: 272 seconds)
2021-08-10 17:25:30 × jakesyl quits (sid56879@id-56879.stonehaven.irccloud.com) (Ping timeout: 240 seconds)
2021-08-10 17:25:46 xff0x joins (~xff0x@2001:1a81:53d2:1c00:df20:e0ed:5860:3ed0)
2021-08-10 17:26:25 × merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 248 seconds)
2021-08-10 17:27:54 × pjlsergeant quits (sid143467@id-143467.stonehaven.irccloud.com) (Ping timeout: 240 seconds)
2021-08-10 17:28:18 × rubin55__ quits (sid175221@id-175221.stonehaven.irccloud.com) (Ping timeout: 258 seconds)
2021-08-10 17:28:27 × dmj` quits (sid72307@id-72307.stonehaven.irccloud.com) (Ping timeout: 245 seconds)
2021-08-10 17:30:32 × joel135 quits (sid136450@id-136450.stonehaven.irccloud.com) (Ping timeout: 245 seconds)
2021-08-10 17:31:09 dmj` joins (sid72307@stonehaven.irccloud.com)
2021-08-10 17:31:17 rubin55__ joins (sid175221@stonehaven.irccloud.com)
2021-08-10 17:32:14 × ec quits (~ec@gateway/tor-sasl/ec) (Ping timeout: 244 seconds)
2021-08-10 17:32:23 mr-red joins (~drd@2001:b07:a70:9f1f:1562:34de:f50f:77d4)
2021-08-10 17:33:34 joel135 joins (sid136450@stonehaven.irccloud.com)
2021-08-10 17:34:37 Tuplanolla joins (~Tuplanoll@91-159-69-50.elisa-laajakaista.fi)
2021-08-10 17:34:38 × drd quits (~drd@93-39-151-19.ip76.fastwebnet.it) (Ping timeout: 268 seconds)
2021-08-10 17:35:33 pjlsergeant joins (sid143467@id-143467.stonehaven.irccloud.com)
2021-08-10 17:35:53 aplainzetakind joins (~johndoe@captainludd.powered.by.lunarbnc.net)
2021-08-10 17:36:39 fendor joins (~fendor@046125250092.public.t-mobile.at)
2021-08-10 17:37:44 jakesyl joins (sid56879@stonehaven.irccloud.com)
2021-08-10 17:39:51 ec joins (~ec@gateway/tor-sasl/ec)
2021-08-10 17:41:53 astra` joins (sid289983@user/amish)
2021-08-10 17:43:12 × Boomerang quits (~Boomerang@xd520f68c.cust.hiper.dk) (Ping timeout: 272 seconds)
2021-08-10 17:47:38 × mr-red quits (~drd@2001:b07:a70:9f1f:1562:34de:f50f:77d4) (Ping timeout: 272 seconds)
2021-08-10 17:48:22 × lechner quits (~lechner@debian/lechner) (Quit: WeeChat 3.0)
2021-08-10 17:50:02 × fendor quits (~fendor@046125250092.public.t-mobile.at) (Read error: Connection reset by peer)
2021-08-10 17:50:38 × euandreh quits (~euandreh@2804:14c:33:9fe5:9814:dfa2:8237:3c5c) (Quit: WeeChat 3.2)
2021-08-10 17:51:39 lechner joins (~lechner@debian/lechner)
2021-08-10 17:52:40 eggplantade joins (~Eggplanta@108-201-191-115.lightspeed.sntcca.sbcglobal.net)
2021-08-10 17:54:32 takuan joins (~takuan@178-116-218-225.access.telenet.be)
2021-08-10 17:56:51 × wroathe quits (~wroathe@c-68-54-25-135.hsd1.mn.comcast.net) (Ping timeout: 268 seconds)
2021-08-10 17:57:26 norias joins (~jaredm@c-98-219-195-163.hsd1.pa.comcast.net)
2021-08-10 18:02:11 merijn joins (~merijn@83-160-49-249.ip.xs4all.nl)
2021-08-10 18:03:25 notzmv joins (~zmv@user/notzmv)
2021-08-10 18:07:29 × merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 248 seconds)
2021-08-10 18:09:13 abhixec joins (~abhixec@c-67-169-139-16.hsd1.ca.comcast.net)
2021-08-10 18:10:44 × eggplantade quits (~Eggplanta@108-201-191-115.lightspeed.sntcca.sbcglobal.net) (Remote host closed the connection)
2021-08-10 18:12:19 wroathe joins (~wroathe@c-68-54-25-135.hsd1.mn.comcast.net)
2021-08-10 18:12:24 × abhixec quits (~abhixec@c-67-169-139-16.hsd1.ca.comcast.net) (Read error: Connection reset by peer)
2021-08-10 18:15:20 × dhouthoo quits (~dhouthoo@178-117-36-167.access.telenet.be) (Quit: WeeChat 3.2)
2021-08-10 18:17:11 × ec quits (~ec@gateway/tor-sasl/ec) (Ping timeout: 244 seconds)
2021-08-10 18:17:48 × wroathe quits (~wroathe@c-68-54-25-135.hsd1.mn.comcast.net) (Ping timeout: 268 seconds)
2021-08-10 18:18:05 burnsidesLlama joins (~burnsides@client-8-91.eduroam.oxuni.org.uk)
2021-08-10 18:20:20 × viluon quits (uid453725@id-453725.brockwell.irccloud.com) (Quit: Connection closed for inactivity)
2021-08-10 18:21:58 × y04nn quits (~y04nn@91.193.4.154) (Ping timeout: 258 seconds)
2021-08-10 18:22:26 <slack1256> Has someone already written a katip message parser for cli?
2021-08-10 18:24:42 ec joins (~ec@gateway/tor-sasl/ec)
2021-08-10 18:28:03 eggplantade joins (~Eggplanta@108-201-191-115.lightspeed.sntcca.sbcglobal.net)
2021-08-10 18:33:07 × Guest7700 quits (~chris@81.96.113.213) (Remote host closed the connection)
2021-08-10 18:35:08 × raehik quits (~raehik@cpc95906-rdng25-2-0-cust156.15-3.cable.virginm.net) (Ping timeout: 272 seconds)
2021-08-10 18:35:55 merijn joins (~merijn@83-160-49-249.ip.xs4all.nl)
2021-08-10 18:36:47 chris joins (~chris@81.96.113.213)
2021-08-10 18:36:52 chris is now known as Guest9955
2021-08-10 18:37:39 jakalx parts (~jakalx@base.jakalx.net) (Error from remote client)

All times are in UTC.