gchristensen changed the topic of #nixos to: NixOS stable: 18.09, beta: 19.03 https://discourse.nixos.org/t/nixos-19-03-feature-freeze/1950 || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat, #nixcon ... nixcon videos: https://tinyurl.com/nixcon2018
justanotheruser has joined #nixos
Shouou has joined #nixos
<Shouou> When adding to Nixpkgs, can I use nix-shell to test my new package? I've been trying `nix-shell . -A package --pure --run package` but said package doesn't seem to be in scope.
o1lo01ol1o has joined #nixos
<ajs124> Shados, you can just build the package with nix-build and execute the binary from the results/bin directory
the-kenny has quit [Ping timeout: 255 seconds]
mbrgm_ has joined #nixos
<ajs124> * I mean Shouou, oops
mbrgm has quit [Ping timeout: 246 seconds]
mbrgm_ is now known as mbrgm
<Shouou> ajs124, is that identical in behaviour to `nix-shell --pure`?
thc202 has quit [Ping timeout: 245 seconds]
the-kenny has joined #nixos
<clever> Shouou: -A is for building the package, not using the package
<clever> Shouou: you want -p, which doesnt accept the . (a path)
<ajs124> ah, I'm really not paying enough attention… obviously. just do something like nix-shell -I nixpkgs=$PWD --pure -p package
<ajs124> that should work, shouldn't it?
<clever> ajs124: yeah, that should work
Havvy has quit [Ping timeout: 245 seconds]
<Shouou> Ah, I was missing the "nixpkgs=" part. Thanks for the help!
<Shouou> I tried it with the `-I` parameter earlier but it didn't work
Havvy has joined #nixos
Ariakenom has quit [Quit: Leaving]
Anton-Latukha has quit [Quit: Leaving.]
Myhlamaeus has quit [Ping timeout: 268 seconds]
<gchristensen> I have a / filesystem which is ro, and another block device I'd like to mount as a writable layer on top. is this possible, with the / being ro?
<ajs124> gchristensen, can't you just use overlayfs for that?
<{^_^}> [nixpkgs] @jtojnar pushed 2 commits to gnome-3.32: https://git.io/fjJ5O
<gchristensen> I'm not sure I can... since its ro
<clever> you would need to mount tmpfs's to directories that already exist
<clever> and then overlay things, maybe
<clever> would be simpler from the initrd
<clever> the livecd stuff already does that, purely with fileSystems.
<ajs124> Sure, but that sounds about like what a live iso setup looks like. Read only "backing device", writable tmpfs on top. Or non-tmpfs, in your case.
<gchristensen> I don't have an initrd :(
<clever> gchristensen: why not?
<gchristensen> no support :)
<clever> lol
<ajs124> what are you running this on?
<{^_^}> [nixpkgs] @Zer0- opened pull request #58231 → python beaker: 1.8.0 -> 1.10.1 fix building on hydra → https://git.io/fjJ5W
KaitoDaumoto has joined #nixos
<gchristensen> firecrackervm
<aleph-> Heya gchristensen
<aleph-> Others
<gchristensen> hi
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
erictapen has quit [Ping timeout: 245 seconds]
<adisbladis> gchristensen: "I'm not sure I can... since its ro"
<adisbladis> How does this make sense?
<gchristensen> hrm?
erictapen has joined #nixos
shabius_ has joined #nixos
<adisbladis> gchristensen: It's pretty bog-standard overlayfs stuff, no?
<gchristensen> I don't think so, I think overlayfs is usually used when / is a tmpfs
<ajs124> gchristensen, nah, that's excatly what you use overlayfs for. ro layer as llowerdir, rw layer as upperdir.
jasongrossman has quit [Quit: ERC (IRC client for Emacs 26.1)]
<gchristensen> yes as lower, but not as /
pjan has joined #nixos
shabius has quit [Ping timeout: 258 seconds]
<gchristensen> as far as I can see, this is how it is used
<{^_^}> [nixpkgs] @bendlas pushed commit from @colemickens to master « chromium: enable mojo + vaapi + allow hw accel »: https://git.io/fjJ5g
<{^_^}> [nixpkgs] @artemist opened pull request #58232 → jadx: init at 0.9.0 → https://git.io/fjJ5a
<colemickens> wait, why'd that commit pop onto master without my PR merging?
<ajs124> gchristensen, hm... now I'm curious. Give me a minute and I'll try it out.
ym555 has quit [Quit: leaving...]
Shouou has quit [Quit: Leaving]
IRCsum has quit [Remote host closed the connection]
<gchristensen> I think I might've found a way ...
<gchristensen> mounting dirs to dirs which already exist (even ro is fine)
IRCsum has joined #nixos
<{^_^}> [nixpkgs] @bendlas closed pull request #57837 → chromium: enable vaapi/hw-accel → https://git.io/fjv2d
<{^_^}> [nixpkgs] @bendlas closed pull request #56973 → chromium (72): Add hardware video decoding using VAAPI → https://git.io/fhp8j
<{^_^}> [nixpkgs] @Zer0- opened pull request #58233 → Giada2 → https://git.io/fjJ5i
<ajs124> gchristensen, that's what I though. Sure, something like mount -t overlayfs -o lower=/,upper=/tmpfs / looks weird, but I'd kinda expect it to work.
devalot has quit [Quit: ZNC - http://znc.in]
<clever> gchristensen: of note, android boots with an initrd, but never does pivot_root
<clever> gchristensen: user data gets mounted to /data, the os to /system, and then it just runs like that
<{^_^}> [nixpkgs] @dtzWill opened pull request #58234 → libedit: 20180525 -> 20190324 → https://git.io/fjJ59
<clever> nix would have trouble with that though, due to /nix
<gchristensen> nice
<gchristensen> woohoo, it boots
<aanderse> someone should really do an "audit" on listed maintainers in nixpkgs
<aanderse> people move on
<aanderse> thats fair
<aanderse> makes sense
<aanderse> but they tend to not remove themselves as listed maintainers
<gchristensen> they will probably be more likely to once ofborg starts pinging (all of) them
<aanderse> :)
<{^_^}> [nixpkgs] @dtzWill closed pull request #52850 → libedit: 20180525-3.1 -> 20181209-3.1 → https://git.io/fhUhq
schneid3306 has quit [Quit: ZZZzzz…]
silver has quit [Quit: rakede]
HappyEnt has quit [Ping timeout: 255 seconds]
aristid has quit [Ping timeout: 258 seconds]
sondr3 has quit [Quit: WeeChat 2.4]
<infinisil> aanderse: Another idea I had for https://github.com/NixOS/nixpkgs/issues/50105#issuecomment-475765748 was that all the current committers should also go through this process (well, a fast version of it), such that we know what they focus on and that they're still active
<infinisil> Oh, you mean maintainers, not committers
<{^_^}> [nixpkgs] @dtzWill opened pull request #58235 → ponyc: 0.27.0 -> 0.28.0 → https://git.io/fjJ5N
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fjJ5A
adetokunbo has quit [Quit: This computer has gone to sleep]
LnL has quit [Ping timeout: 252 seconds]
<mightybyte> Anyone know if it's possible to decouple a Haskell package's test suite from everything else in terms of code coverage generation?
<mightybyte> Current behavior turns on the code coverage for all the targets including executables other than the test suite. But you usually don't want code coverage on those.
<{^_^}> [nixpkgs] @dtzWill merged pull request #58218 → ckbcomp: 1.190 -> 1.191 → https://git.io/fjJ97
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to master: https://git.io/fjJdf
rcshm has joined #nixos
adetokunbo has joined #nixos
aristid has joined #nixos
<aanderse> infinisil: ah yeah that makes sense. good idea
BertyCoX- has joined #nixos
KaitoDaumoto has quit [Ping timeout: 258 seconds]
hyper_ch has quit [Ping timeout: 250 seconds]
rcshm has quit []
matix has joined #nixos
matix has quit [Client Quit]
<gchristensen> hmm my VM starts in 10s
adetokunbo has quit [Quit: This computer has gone to sleep]
jmeredith has quit [Quit: Connection closed for inactivity]
Supersonic has quit [Ping timeout: 240 seconds]
Supersonic has joined #nixos
b has quit [Quit: Lost terminal]
<{^_^}> Channel nixos-19.03-small advanced to https://github.com/NixOS/nixpkgs/commit/23fd1394dc6 (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-19.03-small)
vincentpants has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @dtzWill merged pull request #58141 → powertop: patch to fix vertical scrolling → https://git.io/fjJ3d
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to master: https://git.io/fjJdb
<{^_^}> [nixpkgs] @dtzWill merged pull request #58137 → lastpass-cli: 1.3.1 -> 1.3.2, touchups → https://git.io/fjJ3y
<{^_^}> [nixpkgs] @dtzWill pushed 3 commits to master: https://git.io/fjJdN
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/69d0c1404c1 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<{^_^}> [nixpkgs] @dtzWill merged pull request #58111 → b612: 1.003 -> 1.008, new home → https://git.io/fjJed
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to master: https://git.io/fjJdx
<{^_^}> [nixpkgs] @samueldr pushed to master « nixos/virtualbox-image: set the root fsType to reenable root FS resizing »: https://git.io/fjJdp
<{^_^}> [nixpkgs] @dtzWill merged pull request #58078 → wpgtk: 5.8.7 -> 6.0.3 → https://git.io/fjfNg
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to master: https://git.io/fjJdh
<samueldr> dtz on a rampage
<{^_^}> [nixpkgs] @dtzWill merged pull request #58077 → wayland: 1.16.0 -> 1.17.0 → https://git.io/fjfNu
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to staging: https://git.io/fjJdj
<samueldr> you had me pull --rebase twice!
<{^_^}> [nixpkgs] @dtzWill merged pull request #57969 → nlohmann_json: 3.5.0 -> 3.6.1 → https://git.io/fjfEk
<{^_^}> [nixpkgs] @dtzWill pushed 3 commits to master: https://git.io/fjJFf
<{^_^}> [nixpkgs] @dtzWill merged pull request #57968 → libpqxx: 6.3.3 -> 6.4.1 → https://git.io/fjf0h
<{^_^}> [nixpkgs] @dtzWill pushed 4 commits to master: https://git.io/fjJFJ
<{^_^}> [nixpkgs] @dtzWill merged pull request #57892 → xtruss: init at 20181001-82973f5 → https://git.io/fjvxr
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to master: https://git.io/fjJFT
buffet- has joined #nixos
<mog> MichaelRaskin, any chance you could package stumpwm-contrib into the lispPackages.stumpwm
buffet has quit [Ping timeout: 246 seconds]
jackdk has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @dtzWill merged pull request #58217 → pkgconf: 1.6.0 -> 1.6.1 → https://git.io/fjJ9Q
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to master: https://git.io/fjJFt
Glider_IRC__ has joined #nixos
Glider_IRC_ has quit [Ping timeout: 272 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
vincentpants has joined #nixos
rcshm has joined #nixos
mekeor has quit [Ping timeout: 258 seconds]
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @dtzWill merged pull request #58219 → ffmpeg{_4,-full}: 4.1.1 -> 4.1.2 → https://git.io/fjJ9d
<{^_^}> [nixpkgs] @dtzWill pushed 3 commits to master: https://git.io/fjJFc
o1lo01ol1o has quit [Ping timeout: 246 seconds]
teto has quit [Ping timeout: 246 seconds]
pbb has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
pbb has joined #nixos
hyper_ch has joined #nixos
alex`` has quit [Quit: WeeChat 2.4]
<{^_^}> [nixpkgs] @dtzWill merged pull request #58229 → tor-browser-bundle-bin: 8.0.6 -> 8.0.8 → https://git.io/fjJ7U
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to master: https://git.io/fjJFo
clever_ has joined #nixos
clever has quit [Ping timeout: 250 seconds]
ddellacosta has quit [Ping timeout: 246 seconds]
<siraben> How behind is the nix unstable channel from the nixpkgs repository?
<{^_^}> [nixpkgs] @dtzWill opened pull request #58236 → libreoffice-fresh: 6.2.1.2 -> 6.2.2.2 → https://git.io/fjJFP
MinceR has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @dtzWill opened pull request #58237 → ffsend: 0.2.38 -> 0.2.39 → https://git.io/fjJFM
MinceR has joined #nixos
clever_ has joined #nixos
clever_ has quit [Changing host]
<{^_^}> [nixpkgs] @dtzWill opened pull request #58238 → youtube-dl: 2019.03.01 -> 2019.03.18 → https://git.io/fjJFy
<siraben> dtz: just closed #58210 , how long will it take for changes to appear on the unstable branch?
<{^_^}> https://github.com/NixOS/nixpkgs/issues/58210 (by siraben, 12 hours ago, closed): tor-browser-bundle-bin fails to build due to broken curl
bgamari has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @dtzWill merged pull request #58186 → toot: 0.20.0 -> 0.21.0 → https://git.io/fjJVT
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to master: https://git.io/fjJFS
jackdk has joined #nixos
i1nfusion has quit [Remote host closed the connection]
i1nfusion has joined #nixos
<Zer000> What the heck, the github bot said "This PR breaks listing of package outputs after merging." and nothing else. What does this mean?
ixxie has quit [Ping timeout: 244 seconds]
<{^_^}> [hydra] @kquick opened pull request #647 → Display reasons for all die conditions during jobset eval. → https://git.io/fjJFd
<{^_^}> Channel nixos-18.09 advanced to https://github.com/NixOS/nixpkgs/commit/40e716b92a7 (from 9 hours ago, history: https://channels.nix.gsc.io/nixos-18.09)
isHavvy has joined #nixos
fusion809 has quit [Remote host closed the connection]
Havvy has quit [Ping timeout: 255 seconds]
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
clever has joined #nixos
clever has joined #nixos
clever has quit [Changing host]
Mateon3 has joined #nixos
Mateon2 has quit [Ping timeout: 245 seconds]
Mateon3 is now known as Mateon1
abathur has quit [Ping timeout: 250 seconds]
clever_ has joined #nixos
rauno has quit [Remote host closed the connection]
<marler8997> I'm putting together some notes/documentation based on what I've learned...I had a question.. is there a term or way to distinguish between a "derivation definition" and a "realized derivation"? Would those be the terms to use?
clever_ has joined #nixos
clever_ has quit [Changing host]
clever_ is now known as clever
Rusty1 has quit [Quit: Konversation terminated!]
KaitoDaumoto has joined #nixos
clever_ has joined #nixos
clever has quit [Ping timeout: 250 seconds]
BertyCoX- has quit [Ping timeout: 250 seconds]
i1nfusion has quit [Remote host closed the connection]
i1nfusion has joined #nixos
domogled has joined #nixos
neminis has quit [Quit: WeeChat 2.2]
<{^_^}> [nixpkgs] @volth opened pull request #58239 → add option config.nix.systemFeatures → https://git.io/fjJbY
erasmus has joined #nixos
vk3wtf has quit [Ping timeout: 258 seconds]
<elvishjerricco> marler8997: I don't really understand what distinction you're trying to make
<marler8997> between the ".drv" file and the derivation it generates
<slack1256> between the .nix file and the .drv
<marler8997> nah, between the ".drv" file and the files it generates
<slack1256> ah the "realisation" as said by nix-store?
<marler8997> "/nix/store/<hash1>-<name>.drv" VS "/nix/store/<hash2>-<name>"
<elvishjerricco> marler8997: I generally just refer to the .drv as "the deriver" and its outputs as "the outputs"
<marler8997> so you would call this /nix/store/a8aapdin2820s5nm2dzdyqm7r0nv4djc-busybox-1.29.3.drv a "Deriver for busybox"
<marler8997> and /nix/store/i5q5spk02pm3gmjkgj49sv73g6cnldrc-busybox-1.29.3 the "busybox outputs"?
<elvishjerricco> marler8997: yea
<marler8997> but that's not what the nix pills and doc calls them
<marler8997> it calls them derivations
<marler8997> from what I read, it calls both of them derivations and doesn't distinguish between the two
<marler8997> and the point of my notes is to distinguish between the two...
<marler8997> so would people in the nix community know what I meant if I said a "derivation deriver" and "derivation output"?
<marler8997> and the command to print a "deriver" as you called it is "nix show-derivation"???
<marler8997> if what you're saying is true, why isn't it "nix show-deriver"?
<slack1256> just define your terms at the beginning and adhere to them
<elvishjerricco> marler8997: The most unambiguous thing you could say ".drv file" for the .drv file, and "outputs" for the outputs. The nix pills are leaving an ambiguity just to keep it simple
<elvishjerricco> ^ that's the best thing
<marler8997> yes of course I'll define my terms...but I'm new to nix so I'm asking if there's already an accepted term for these
<marler8997> it sounds like the answer is no?
<marler8997> I don't want to go inventing new terms if everyone already has a term
<slack1256> I mean PDEs books all redefine all their concepts (in incompatible ways with each other author), what could go wrong? :^)
<slack1256> Nah in all seriousness, define your terms at the beginning and keep it simple
<marler8997> yeah of course
<marler8997> good advice, but not an answer to the question
<marler8997> it looks like "nix-store -q --deriver <file>" shows the ".drv file"
<marler8997> so it looks like that's a place it is used...I suppose I'll go with "deriver" and "realized derivation"?
drakonis has quit [Quit: WeeChat 2.3]
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #58241 → imagemagick7: 7.0.8-22 -> 7.0.8-34 → https://git.io/fjJbR
rcshm has quit []
<{^_^}> [nixpkgs] @jonafato opened pull request #58242 → keepassxc: 2.3.4 -> 2.4.0 → https://git.io/fjJbg
wfranzini has quit [Quit: wfranzini]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #58243 → iproute: 4.20.0 -> 5.0.0 → https://git.io/fjJb2
slack1256 has quit [Remote host closed the connection]
<elvishjerricco> marler8997: I'd go with "output" before I'd go with "realized derivation." Output is used in the nix language a lot; e.g. `outputs = ["out" "dev"];`
<elvishjerricco> or "fixed-output"
endformationage has quit [Ping timeout: 255 seconds]
lukego has quit [Quit: Page closed]
slack1256 has joined #nixos
BertyCoX- has joined #nixos
KaitoDaumoto has quit [Ping timeout: 250 seconds]
jtojnar has quit [Read error: Connection reset by peer]
jtojnar has joined #nixos
ddellacosta has joined #nixos
jtojnar has quit [Read error: Connection reset by peer]
slack1256 has quit [Remote host closed the connection]
jtojnar has joined #nixos
Myhlamaeus has joined #nixos
adetokunbo has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #58244 → jsonrpc-glib: 3.30.1 -> 3.32.0 → https://git.io/fjJbH
palo1 has joined #nixos
ddellacosta has quit [Ping timeout: 255 seconds]
palo has quit [Ping timeout: 246 seconds]
palo1 is now known as palo
<MichaelRaskin> gchristensen: given that maintainer-team will be invite-once, only committers will have an incentive to mark themselves gone
<MichaelRaskin> mog: it is not in QuickLisp, so it has to be updated separately; it is not comprehensive, as in there are a few extras outside it; and it is a single StumpWM command to set the path to checkout; not sure the tradeoff is worth it
jackdk has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #58223 → manual: Make sure building doesn't need recursive nix → https://git.io/fjJHW
<{^_^}> [nixpkgs] @Ericson2314 pushed 2 commits to master: https://git.io/fjJbF
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/40e716b92a7 (from 11 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
shabius has joined #nixos
<{^_^}> [nixpkgs] @7c6f434c merged pull request #58236 → libreoffice-fresh: 6.2.1.2 -> 6.2.2.2 → https://git.io/fjJFP
<{^_^}> [nixpkgs] @7c6f434c pushed commit from @dtzWill to master « libreoffice-fresh: 6.2.1.2 -> 6.2.2.2 (#58236) »: https://git.io/fjJbN
shabius_ has quit [Ping timeout: 258 seconds]
<{^_^}> [nixpkgs] @7c6f434c merged pull request #58228 → muse-sequencer: 3.0.2 -> 3.1pre1 → https://git.io/fjJQx
<{^_^}> [nixpkgs] @7c6f434c pushed 2 commits to master: https://git.io/fjJbA
Zer000 has quit [Ping timeout: 250 seconds]
<Izorkin> Linux kernel 4.20 deleted in master branch. How to manually add in my config?
guido_ has quit [Ping timeout: 250 seconds]
hyper_ch2 has joined #nixos
<{^_^}> [nixpkgs] @groodt reopened pull request #58147 → bazel: 0.22.0 -> 0.23.2 → https://git.io/fjJGR
drakonis has joined #nixos
drakonis1 has quit [Ping timeout: 246 seconds]
rauno has joined #nixos
inquisitiv3 has joined #nixos
[Leary] has joined #nixos
Lears has quit [Ping timeout: 244 seconds]
[Leary] has quit [Remote host closed the connection]
Lears has joined #nixos
MichaelRaskin has quit [Quit: MichaelRaskin]
teto1 has joined #nixos
Anton-Latukha has joined #nixos
_deepfire has quit [Ping timeout: 272 seconds]
Myhlamaeus has quit [Ping timeout: 250 seconds]
magnetophon has quit [Remote host closed the connection]
magnetophon has joined #nixos
<CMCDragonkai> Are there special settings for multi-gpu required for NixOS?
Lears has quit [Remote host closed the connection]
<CMCDragonkai> Like using `nvidia-xconfig`
<CMCDragonkai> And selecting the primary GPU?
ambro718 has joined #nixos
Lears has joined #nixos
vk3wtf has joined #nixos
hio has quit [Quit: Connection closed for inactivity]
Lears has quit [Remote host closed the connection]
<Nycatelos> I'm trying to run a swing program, but I get this error when I try to run it https://ghostbin.com/paste/2oo96
Lears has joined #nixos
<Nycatelos> for some reason the openjdk packaged with nixos doesn't seem to have that .so?
Makaveli7 has joined #nixos
Glider_IRC__ has quit [Ping timeout: 245 seconds]
teto1 is now known as teto
Serus has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @dotlambda merged pull request #57101 → pythonPackages.dnslib: init at 0.9.9 → https://git.io/fhh86
<{^_^}> [nixpkgs] @dotlambda pushed commit from @delroth to master « pythonPackages.dnslib: init at 0.9.9 (#57101) »: https://git.io/fjJNg
Serus has joined #nixos
BertyCoX- has quit [Remote host closed the connection]
<teto> how to check a derivation belongs to the haskell set / how to keep only haskell dependencies from a list of derivations ?
michalrus has left #nixos ["WeeChat 1.9.1"]
Tucky has joined #nixos
m0rphism has joined #nixos
Ariakenom has joined #nixos
adetokunbo has quit [Quit: This computer has gone to sleep]
<{^_^}> [nix] @edolstra pushed 4 commits to master: https://git.io/fjJNS
linarcx has joined #nixos
<{^_^}> [nix] @edolstra closed pull request #2723 → Fix build with C++17 and C++20, fix with libc++ → https://git.io/fjeaF
clever_ has quit [Changing host]
clever_ has joined #nixos
clever_ is now known as clever
ThatDocsLady_ has joined #nixos
ThatDocsLady_ has quit [Client Quit]
<{^_^}> [nixpkgs] @dywedir merged pull request #57956 → k6: 0.23.1 -> 0.24.0 → https://git.io/fjf80
<{^_^}> [nixpkgs] @dywedir pushed 2 commits to master: https://git.io/fjJNF
thc202 has joined #nixos
jasongrossman has joined #nixos
Guest24302 has quit [Ping timeout: 250 seconds]
xqsl has quit [Ping timeout: 244 seconds]
xqsl has joined #nixos
<{^_^}> [nixpkgs] @lheckemann opened pull request #58245 → libaudit: enable arm (including aarch64) support → https://git.io/fjJAn
civodul has joined #nixos
ThatDocsLady has joined #nixos
<{^_^}> [nixpkgs] @dywedir merged pull request #58237 → ffsend: 0.2.38 -> 0.2.39 → https://git.io/fjJFM
<{^_^}> [nixpkgs] @dywedir pushed 2 commits to master: https://git.io/fjJA2
zupo has joined #nixos
linarcx has quit [Ping timeout: 245 seconds]
wfranzini has joined #nixos
jomik has joined #nixos
linarcx has joined #nixos
johanot has joined #nixos
<jomik> Is there no pretty way to use a package-lock.json/yarn.lock to get dependencies for an npm package? That is, without running a script to generate a nix expression? I am pretty certain that I can not simply pass a file to nix to read dependencies from, because then we would have to fetch sources during build, not before.. :(
<immae> jomik: yarn.lock contain every information needed to build a correct nix derivation, and that’s what yarn2nix does. I’s not the case for everything (package-lock in particular I don’t know)
lewo has joined #nixos
<immae> Basically, you need an url and a sha256, which yarn.lock holds
drakonis_ has joined #nixos
linarcx has quit [Ping timeout: 244 seconds]
drakonis has quit [Ping timeout: 250 seconds]
linarcx has joined #nixos
<jomik> immae: Yeah - as I tried to say though, it is rather annoying having to run yarn2nix :P
<immae> Well, you can write it by hand
<immae> And maybe you can give the yarn.lock directly, but you’ll have to check :p
<jomik> My issue was that I wanted to be able to simply update yarn.lock, and then have my final nix expression update as well. That is - I can fetch a yarn.lock, check the sha, and then extract the sources, with shas.
<jomik> That should be pure/declarative, since we can ensure that the content of yarn.lock is the same.
<immae> ok
Jetien has joined #nixos
<immae> But then I think you just have to check yarn2nix documentation, I’m almost sure I saw something like that
<immae> (but I may muddle with bundle/gem)
emacsomancer has quit [Ping timeout: 246 seconds]
<jomik> Though, Nix does not support pulling dependencies based on runtime - it needs them at evaluation time :(
<{^_^}> [nixpkgs] @joachifm merged pull request #56433 → cadre: init at 1.0.4 → https://git.io/fhNnn
<{^_^}> [nixpkgs] @joachifm pushed 2 commits to master: https://git.io/fjJAD
<jomik> More importantly though, I guess I need a NUR :D
<immae> no, it’s on purpose that you need to know what you will build before building it
sinner has joined #nixos
sinner is now known as Guest20903
buffet- is now known as buffet
<immae> It doesn’t mean that there is no possibility though, but it’s a bit more tricky
<immae> and you have to fix "something" (for instance, the git commit where you will find the yarn.lock)
emacsomancer has joined #nixos
jomik has quit [Ping timeout: 250 seconds]
grizwako has joined #nixos
<{^_^}> [nixpkgs] @danbst opened pull request #58246 → pkgsMusl, pkgsi686Linux, pkgsStatic: fix infinite recursion with overlays → https://git.io/fjJA5
teto has quit [Ping timeout: 250 seconds]
teto has joined #nixos
goibhniu1 has joined #nixos
<teto> Mic92: seems like your NUR.nix-lsp hash is out of date
jomik has joined #nixos
<{^_^}> [nixpkgs] @delroth opened pull request #58247 → zbar: 0.10 -> 0.22 (new upstream) → https://git.io/fjJxf
Alling has joined #nixos
<Alling> Hello guys! I have one general question and one specific one.
<jomik> I am unsure how I add NUR, should I use packageOverrides, or an overlay? I want to access it with nix-shell and through home-manager.
tpanum has quit [Remote host closed the connection]
<Alling> When I search NixOS packages, there is a "Package name" and an "Attribute name". What's the difference? https://nixos.org/nixos/packages.html
<Alling> For example "ghc-8.4.3" and "haskellPackages.ghc_8_4_3", respectively.
periklis has joined #nixos
<jomik> Alling: The attribute name is a more precise way of specifying what you want. If you install the package in a *.nix, you'll need to use the attribute name, if you use nix-env, it will first look for a matching attribute, and if that fails, it'll find the first package name.
<Alling> Also I don't understand how Stack and GHC work. $ nix-shell; ghc -v
<Alling> Glasgow Haskell Compiler, Version 8.6.4, stage 2 booted by GHC version 8.2.2
<Alling> But: $ stack build
<Alling> error: attribute 'ghc864' missing, at (string):1:43 (use '--show-trace' to show detailed location information)
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/4697790b3c5 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
noctux` is now known as noctux
<Alling> jomik: OK, thanks!
<jw358> can i safely overrideAttrs and set broken = false on derivations even if they did not have a broken attribute before?
<Mic92> teto: can you send me a PR for that?
<jw358> i'm trying to make sure i can use packages like async-pool across different channels
<Alling> I think I figured out the Stack problem. It "looks in nixpkgs" (if that means anything); it doesn't care what's in my shell.nix.
domogled has quit [Quit: domogled]
<jomik> Alling: I think I understand what you mean, and that is correct - a package in Nix normally has all its dependencies in its own environment, independent of your PATH.
__Sander__ has joined #nixos
<{^_^}> [nixpkgs] @joachifm pushed commit from @dtzWill to release-18.09 « tor-browser-bundle-bin: 8.0.6 -> 8.0.8 »: https://git.io/fjJxw
<{^_^}> [nixpkgs] @joachifm pushed commit from @dtzWill to release-19.03 « tor-browser-bundle-bin: 8.0.6 -> 8.0.8 »: https://git.io/fjJxo
oleks_ has quit [Quit: leaving]
Mister_Magister has joined #nixos
<{^_^}> [nixpkgs] @lheckemann opened pull request #58248 → netperf: remove libsmbios on non-x86 → https://git.io/fjJxM
<Mister_Magister> Hello I tried nixos yesterday but i have one problem. When i ssh to it PATH variable is wrong and no commands are available. when i open terminal directly everything is okay. My shell is fish
oleks has joined #nixos
<teto> Mic92: I am not using it, just wanted to try it while bored :D
<Alling> When I run stack build, it tries to "configure hmatrix", but fails with this: Cabal-simple_mPHDZzAJ_2.4.0.1_ghc-8.6.4: Missing dependencies on foreign libraries: * Missing (or bad) C libraries: blas, lapack
__monty__ has joined #nixos
<Alling> I added liblapack and blas to my shell.nix, but they're still not found.
<jomik> Anyone using gitlab? https://gitlab.com/rycee/nur-expressions/blob/master/.gitlab-ci.yml#L38 I am unsure what the `nur-updates:token@gitlabe.com/repo.git` url does. I am pretty certain that it logs in with token and sets the remote, but what is the `nur-updates` in front? I can't seem to google it.
nomeata has joined #nixos
<jomik> I could ping rycee :P
<{^_^}> [nixpkgs] @7c6f434c merged pull request #58247 → zbar: 0.10 -> 0.22 (new upstream) → https://git.io/fjJxf
<{^_^}> [nixpkgs] @7c6f434c pushed 2 commits to master: https://git.io/fjJxy
<nomeata> Hi. What might be the cause for this error message: error: path '/nix/store/rawjlrb7k3yh17yb183wvjyzagr9di1n-name-of-local-derivation-0.0.0' does not exist and cannot be created
<jomik> nomeata: is that in a build step? You are probably missing a `mkdir -p $out/...` somewhere.
<jomik> We need some context :D
<nomeata> It is when I call `nix-build`, and it seems to work on other people’s machines, so it is likely some brokenness with my nix store?
<nomeata> The “error” is colorful, so it seems to come from `nix-build`.
<nomeata> Some context: I have experimented using remote builders, but I keep getting `error: unexpected end of file` errors that I have not manged to debug yet (unreliably TCP connection?), so there might have been some partial download. But the nix store should be resistant against that, right?
<AlexRice[m]> Alling: is stack definitely using you're shell.nix file
<nomeata> With -vvvv I see: path '/nix/store/rawjlrb7k3yh17yb183wvjyzagr9di1n-…-0.0.0' is required, but there is no substituter that can build it
<Alling> AlexRice[m]: I don't think it is (but I don't really know what that means).
<Alling> No, but I can give it a try!
<nomeata> Ah, `fgrep` finds a nix store path that mentions the missing derivation. So it seems that I somehow downloaded a store path from the builder without downloading all its dependencies?
<{^_^}> [nixpkgs] @dywedir opened pull request #58249 → skim: 0.6.2 -> 0.6.3 → https://git.io/fjJxN
dwdr has joined #nixos
<nomeata> If I use `nix-store --query` on that path, I get: error: path '/nix/store/57fqkxvnynrimpbrc0hpm9przmw8cfhf-ghc-8.4.4-with-packages' is not valid
Izorkin has quit [Ping timeout: 252 seconds]
agander has joined #nixos
<nomeata> How can I safely delete paths from the store?
<srk> nomeata: nix-store --delete
<srk> <PATH>
Anton-Latukha has quit [Ping timeout: 245 seconds]
<nomeata> Thanks. I am still confused by this: nix says “error: path '/nix/store/rawjlrb7k3yh17yb183wvjyzagr9di1n-…-0.0.0' does not exist and cannot be created”, but accoring to “nix-store --query --referers /nix/store/rawjlrb7k3yh17yb183wvjyzagr9di1n-…-0.0.0” nothing is referring to it (that command just does not print anything)
<srk> you can also try nix-store --verify
<nomeata> nix-store --verify --check-contents goes through without issues.
<nomeata> Disabling all substituters and remote builders also does not help
<nomeata> But oddly, that path does not appear when I grep through the output of nix-store --dump-db
<nomeata> (I wonder if I just just nuke `/nix` and reinstall it, and go for a long walk…)
sigmundv has joined #nixos
<srk> :))
<clever> nomeata: `is not valid` means its not in `--dump-db`, so a normal nix-collect-garbage will automatically delete that path
<clever> nomeata: `nix-collect-garbage --max-freed 1m` may start with that path, you can repeat that until the path in question is gone
<clever> nomeata: nix will also delete the path automatically when trying to build it again
<clever> and no nix tools will use an invalid path
Anton-Latukha has joined #nixos
<nomeata> Oh, interesting, the path actually exists! (So much about “does not exist and cannot be created”). I could `nix-store --delete` it, and now it does not exist on disk. But same error message.
<clever> nomeata: what was the original error? and the cmd that gave it?
rycwo has joined #nixos
<nomeata> Original error: error: path '/nix/store/rawjlrb7k3yh17yb183wvjyzagr9di1n-…-0.0.0' does not exist and cannot be created
<clever> and the cmd that gave it?
<nomeata> Command: `nix-build` in our internal monorepo. (The mentioned derivation is a smal piece down the the chain of dependenceis)
<clever> does nix-build give the same error if ran several times?
<nomeata> Yes
<clever> can you pastebin the entire output of nix-build?
<nomeata> Oh, wait, maybe I was wrong. It seems that `nix-build -A foo .` actually works, but `nix-env -i -A foo -f .` does not
<nomeata> I tought nix-build had the same problem … but not any more. So it is `nix-env` giving this error message, when I ask it to install something. `nix-build` actually works fine.
<clever> both should be building the same thing and just working the same way
silver has joined #nixos
orivej_ has quit [Ping timeout: 246 seconds]
illegalprime has quit [Read error: Connection reset by peer]
<nomeata> That’s what I thought as well :-). But the building seems to work fine, maybe the problem is related to my user profile, rather than to building this thing...
<nomeata> Ha, that brings me closer: `nix-env -i hello` doesn’t work either.
<clever> nomeata: ahh
<nomeata> Too many trees, barked up the wrong one
<clever> nomeata: there is a bug in nix-env, if you have dead symlinks in ~/.nix-profile, it cant update the profile
<clever> nomeata: find out which thing is adding it, and uninstall it with nix-env -e
inquisitiv3 has quit [Ping timeout: 250 seconds]
<clever> `nix-env -q` to list the installed things
rycwo has quit [Ping timeout: 250 seconds]
orivej has joined #nixos
<jomik> I can't seem to run `./bin/nur format-manifest` from NUR. `Could not find a version that satisfies the requirement jaraco.text`
<nomeata> Weird. Running `nix-env -e` on a bunch of installed files makes it _download_ glibc and other basic packages from the nixos cache. Somehow my setup is pretty broken.
<clever> nomeata: what does ls -l ~/.nix-profile report?
<nomeata> points to /var/lib/nix/profiles/per-user/jojo/profile, and that points to profile-200-link, and that points to /nix/store/rv8yv7b3jnmgiz5v257n0j37ni5dg60i-user-environment, and that looks reasonable
<clever> yep
<Alling> AlexRice[m]: OK, so it kind of sort of worked using that tutorial. But I can't get stack build to work. It stops with "Could not find module `Data.Packed.Matrix'" when compiling metric-0.2.0.
<AlexRice[m]> I think stack manages the haskell dependencies and not nix
<clever> nomeata: what about `nix-store --verify --check-contents` ?
<nomeata> I wonder if I did something (upgrade nix in an unclean way) that invalidated all paths in my profile. And now `nix-env` tried to reinstall everything, and it could not reinstall stuff that I built at some point in the past from source. Once I removed these packages from the profile using nix-env, it was reinstalling the other ones from the cache.
orivej has quit [Ping timeout: 255 seconds]
<nomeata> and now that this is out of the way, I can install stuff just fine again. So the problem seems to have been fixed.
<nomeata> Thanks for walking me through this!
<clever> yep
jomik has quit [Quit: WeeChat 2.4]
<Alling> AlexRice[m]: Yeah, probably. But I don't understand what I'm supposed to do to be able to install packages.
<clever> Alling: the products made by stack are all impure builds, and nix wont know they exist
<clever> Alling: if you want something installed by nix, then it has to be built by nix, which is where tools like nix-tools and stack2nix come into play
magnetophon has quit [Remote host closed the connection]
<AlexRice[m]> you should be able to run stack build though right?
<clever> AlexRice[m]: yep
<Alling> stack build fails when it tries to compile/configure/whatever metric-0.2.0, which is a dependency of kmeans-par, which is the package I actually wany.
* srk got rid of stack today .. find . -name .stack-work -type d -prune -exec rm -rf "{}" \;
ThatDocsLady_ has joined #nixos
ThatDocsLady has quit [Ping timeout: 258 seconds]
<clever> Alling: that likely has to do with the version of metric in the stack.yaml
<Alling> clever: It doesn't really matter to me if I use Nix or Stack; I'd just like to install kmeans-par and try it out.
<clever> Alling: do you have a link to kmeans-par?
<AlexRice[m]> 0.2.0 is the most recent
<Alling> clever: AlexRice[m] I have metric-0.2.0 in stack.yaml.
<srk> fails for me as well Could not find module ‘Data.Packed.Matrix’
nomeata has quit [Remote host closed the connection]
<Alling> Stack recommends adding metric-0.2.0 to extra-deps, which is why I did it.
<clever> srk: which module failed to build?
Izorkin has joined #nixos
<Alling> clever: This is kmeans-par: http://hackage.haskell.org/package/kmeans-par
<srk> metric-0.2.0
<clever> srk: within metric
<srk> src/Data/Packed/Matrix/Extras.hs
alex`` has joined #nixos
<clever> srk: odd, thats not listed on http://hackage.haskell.org/package/metric-0.2.0
<clever> at least in the docs part
jomik has joined #nixos
<clever> import Data.Packed.Matrix (Matrix(..), fromLists, trans)
<jomik> How can I add this file as an overlay ? https://gitlab.com/rycee/nur-expressions/blob/master/overlay.nix
<clever> Data/Packaed/Matrix.hs doesnt exist in the source tar
<Alling> clever: I think Data.Packed.Matrix is a module in hmatrix.
<clever> Alling: ah, *looks*
<clever> ok, so it does depend on hmatrix, but no version specified
<AlexRice[m]> just tried to get the nix version up and metric-0.2.0 is marked broken
Izorkin has quit [Remote host closed the connection]
<clever> AlexRice[m]: i dont see any signs of Data.Packed.Matrix being in hmatrix: https://github.com/haskell-numerics/hmatrix/tree/master/packages/base/src
Izorkin has joined #nixos
<AlexRice[m]> maybe it was removed?
<Alling> clever: OK, I made that conclusion based on the name only.
<clever> yep, it does exist in 0.13.0
<clever> Alling: so, the version of hmatrix, isnt compatible with the version of metric!
<AlexRice[m]> it looks like it becomes internal to the package from 16 onwards
<clever> and id say metric is to blame, for not having the correct version bounds on its hmatrix dep
<clever> and you can fix it by specifying an hmatrix version in stack.yaml
<Alling> clever: Yeah, specifying hmatrix-0.13.0.0 instead of 0.19 made that error go away. But now I'm stuck with that other error I got last time I tried.
<Alling> "base-4.12.0.0 from stack configuration does not match ==4.2.* || >=4.4 && <4.7" and a bunch of similar errors.
<Alling> package.yaml: - base >= 4.7 && < 5
<Alling> This is after like three steps of trying stack build and adding suggested dependencies to extra-deps.
<AlexRice[m]> hmatrix needs a base version more less than 4.7
<Alling> Now it suggests "- base-4.6.0.1" which I have already added to extra-deps.
<Alling> AlexRice[m]: How do I select a compatible version of base?
tboston has quit [Ping timeout: 252 seconds]
<AlexRice[m]> I'm not sure with stack
<Alling> AlexRice[m]: Do you recommend building in some other way?
<clever> Alling: you may need to change the version of ghc your using, i believe stack does that via the lts release?
iyzsong has joined #nixos
<AlexRice[m]> Alling: Not necessarily, I just don't know enough about stack
Izorkin has quit [Quit: ZNC 1.7.2 - https://znc.in]
<Alling> clever: Yes, I think so. I thought I wanted GHC 8.6.4 so I get all the latest optimizations and whatnot.
Izorkin has joined #nixos
<clever> nix-build -E 'with import <nixpkgs>{}; let mypkgs = haskellPackages.override { overrides = super: self: { hmatrix = self.callHackage "hmatrix" "0.13.0" {}; }; }; in mypkgs.kmeans-par'
<clever> this will build everything using nix, and override the version of hmatrix as it does so
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos
martinb has joined #nixos
<clever> but, callHackage currently fails, looking into why...
<clever> ah, 0.13.0.0
tmaekawa has joined #nixos
<clever> and now ive reproduced the base issue, so i just jailbreak...
<clever> nix-build -E 'with import <nixpkgs>{}; let mypkgs = haskellPackages.override { overrides = super: self: { hmatrix = haskell.lib.doJailbreak (self.callHackage "hmatrix" "0.13.0.0" {}); }; }; in mypkgs.kmeans-par'
<AlexRice[m]> what does jailbreak do
<clever> AlexRice[m]: modified the cabal file, to delete version constraints
Magnap[m] has joined #nixos
<clever> ack, double-whamy
<clever> a: jailbreak cant deal with constaints inside an if
<clever> b: hackage has a cabal revision, adding just that!
<Alling> clever: Tried your command.
<Alling> error: Package ‘kmeans-par-1.5.1’ in /nix/store/... is marked as broken, refusing to evaluate.
<Alling> Maybe I should just accept the fact that I won't be able to install kmeans-par. :)
<clever> Alling: i'm on a slightly older nixpkgs
<clever> but, i can try another ghc version...
<Alling> clever: OK; I'm on unstable.
<clever> nix-build -E 'with import <nixpkgs>{}; let mypkgs = haskell.packages.ghc844.override { overrides = super: self: { hmatrix = self.callHackage "hmatrix" "0.13.0.0" {}; }; }; in mypkgs.kmeans-par'
<AlexRice[m]> I tried overriding the version of base it uses but it couldn't compile it
<AlexRice[m]> does the above work?
<Alling> No, same error.
jbgi has joined #nixos
<clever> AlexRice[m]: nixpkgs doesnt allow base to be overriden, stack might?
adetokunbo has joined #nixos
<clever> 844 still fails, checking why...
<AlexRice[m]> I tried cabal2nix cabal://base-4.7.0.0 > base.nix and then overriding with that
<AlexRice[m]> but it just fails to build
<clever> AlexRice[m]: base is backed into the ghc package, and there is a special override to always ignore base overrides
<Alling> I'm gonna go get some lunch.
<clever> ghc844 has base 4.11.1
<clever> nix-build -E 'with import <nixpkgs>{}; let mypkgs = haskell.packages.ghc844.override { overrides = super: self: { hmatrix = haskell.lib.doJailbreak (self.callHackage "hmatrix" "0.13.0.0" {}); }; }; in mypkgs.kmeans-par'
<clever> but this may have the needed binary?
<clever> binary <0.6
<clever> nope, and binary is also a bootpkg, so you cant override it
<clever> nix-build -E 'with import <nixpkgs>{}; let mypkgs = haskell.packages.ghc822.override { overrides = super: self: { hmatrix = self.callHackage "hmatrix" "0.13.0.0" {}; }; }; in mypkgs.kmeans-par'
<clever> we need to go older!
Makaveli7 has quit [Quit: Leaving]
<clever> 0.14.0.0 also has the thing we want...
<AlexRice[m]> so is 15
<clever> nix-build -E 'with import <nixpkgs>{}; let mypkgs = haskell.packages.ghc844.override { overrides = super: self: { hmatrix = haskell.lib.doJailbreak (self.callHackage "hmatrix" "0.15.0.0" {}); }; }; in mypkgs.kmeans-par'
<AlexRice[m]> but it has the same base dependency
<clever> AlexRice[m]: base can be delt with via jailbreak
<clever> binary, in the cabal revision (thanks hackage :P) is the problem
<AlexRice[m]> ah ok
<clever> also, oddly, kmeans-par doesnt have source links in hackage
<clever> so i cant just git clone it
rprije has quit [Ping timeout: 246 seconds]
<AlexRice[m]> the one you put above failed for me
<clever> /nix/store/9hk3204yj7h47d4cfnlfbh0ydl9w8vfc-gnused-4.5/bin/sed: can't read conftest.c: No such file or directory
<clever> failing here too, for other reasons
<AlexRice[m]> mine failed while building hmatrix 15
<AlexRice[m]> from a haskell error not a dependency one
<clever> AlexRice[m]: i see it, join ambiguous
<AlexRice[m]> yes
<AlexRice[m]> is it possible to patch a source file in some way to add import Prelude hiding (join) or someting
<clever> yeah
pie_ has joined #nixos
<clever> add patches = [ ./foo.patch ]; with overrideCabal
<clever> but we need a patch file first
<clever> testing that...
pie_ has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @primeos closed pull request #58243 → iproute: 4.20.0 -> 5.0.0 → https://git.io/fjJb2
init_6 has joined #nixos
<clever> +import Prelude hiding (join)
<clever> AlexRice[m]: still fails with the same error with this
<clever> 54 import GHC.Base
<clever> AlexRice[m]: ah, because this is where i need to hide
tertl3_ has quit [Quit: Connection closed for inactivity]
<AlexRice[m]> I got this as my patch file
<clever> Conflicting family instance declarations:
<AlexRice[m]> though I'm not sure if I did it correctly
<clever> this is my current patch and nix file
<AlexRice[m]> and that doesn't work?
<clever> fails with the error i gave above
<AlexRice[m]> the conflicting family instance one?
jtojnar has quit [Read error: Connection reset by peer]
<clever> yep
<clever> 515 type instance BoundsOf (a->a) = Int
<clever> 516 type instance BoundsOf (a->a->a) = (Int,Int)
<clever> these 2 things conflict i think
<clever> 513 type family BoundsOf x
jtojnar has joined #nixos
<{^_^}> [nixpkgs] @thedavidmeister opened pull request #58250 → WIP: 2019 03 25 monero 14.0.2 → https://git.io/fjJha
fmsbeekmans has joined #nixos
pie_ has joined #nixos
<{^_^}> [nixpkgs] @thedavidmeister closed pull request #57247 → WIP: update monero to v0.14.0.2 → https://git.io/fhhQ4
tmaekawa has quit [Quit: tmaekawa]
jtojnar has quit [Quit: jtojnar]
Magnap[m] is now known as magnap
jtojnar has joined #nixos
<AlexRice[m]> I have no idea how to fix this apart from finding a really old ghc compiler
Acou_Bass has quit [Quit: byeeeeeeeeeeeeeee]
linarcx has quit [Quit: WeeChat 2.4]
Acou_Bass has joined #nixos
vk3wtf has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @jtojnar closed pull request #58244 → jsonrpc-glib: 3.30.1 -> 3.32.0 → https://git.io/fjJbH
<fmsbeekmans> Hi I'm trying to clone a repo using `nix-prefetch-git` but running the derivation results in `...Could not resolve host: github.com`. https://gist.github.com/fmsbeekmans/bf193c39f1c6a623b1820675811690b9
<clever> fmsbeekmans: all network is disabled during normal derivations, you must use a fixed-output derivation to get network access
<clever> fmsbeekmans: pkgs.fetchgit is a function for generating such derivations
<clever> with import (builtins.fetchTarball https://github.com/nixos/nixpkgs/archive/34aa254f9eb.tar.gz) { config = {}; overlays = []; };
<clever> fmsbeekmans: but for fetching nixpkgs, you likely want fetchTarball instead
nefix has joined #nixos
tdbgamer has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<fmsbeekmans> clever: Thanks, I'll try to go the pkgs.fetchgit route. The input I get is a github url.
<nefix> Hey! So I'm trying to install NixOS in a Rock64, but I can't figure out how to get the idbloader.img https://nixos.wiki/wiki/NixOS_on_ARM/PINE64_ROCK64
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/918bc442802 (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
<nefix> I've tried to reproduce the Hydra build (curl https://hydra.nixos.org/build/89697561/reproduce | bash) but it fails
<clever> nefix: did you build u-boot for the board?
<nefix> And tried to add the package but it also fails
<clever> nefix: that hydra build is in the cache, you can just: nix-store -r /nix/store/m7rpgdb47k0qkbw8wq03r47z9gy9w5q5-uboot-rock64-rk3328_defconfig-2017.09
<clever> /nix/store/m7rpgdb47k0qkbw8wq03r47z9gy9w5q5-uboot-rock64-rk3328_defconfig-2017.09/idbloader.img
<clever> idbloader.img is in that directory
<nefix> Oh, thanks!
agander has quit [Ping timeout: 244 seconds]
nefix_ has joined #nixos
<nefix_> So, I've flashed first the NixOS image and then u-boot but nothing seems to happen when I start the Rock
nefix has quit [Ping timeout: 256 seconds]
<nefix_> No output nor led blinking
<clever> nefix_: does the board have a serial port?
agander has joined #nixos
<nefix_> You can get serial output connecting the cable to certain pins
orivej has joined #nixos
<nefix_> But I don't have a serial cable :/
<clever> nefix_: do you happen to have a second matching board?
<nefix_> What do you mean with that? A second board like it?
<clever> nefix_: yeah
<{^_^}> [nixpkgs] @marsam opened pull request #58251 → postgresql: always create the bin directory in postgresqlAndPlugins → https://git.io/fjJhp
<nefix_> Not right now, but I have access to it
<nefix_> What would I be able to do with it?
<clever> nefix_: if you connect the tx->rx between both of them, then the serial port on one is linked to the other
<clever> nefix_: so you can then run any serial terminal program on one, to access the serial port of the other
<clever> you will also want to connect the gnd of both, so they have a common reference
<nefix_> Hmmm I see
<fmsbeekmans> clever: How can I calculate the sha256 of the repository after I fetchgit?
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<clever> fmsbeekmans: by running nix-prefetch-git, in a normal shell
rasmosis has joined #nixos
<clever> ,tofu fmsbeekmans
<{^_^}> fmsbeekmans: To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<clever> fmsbeekmans: or giving it a wrong hash
<{^_^}> [cabal2nix] @peti pushed to master « update-stackage: Stackage published a new URL to download their config files »: https://git.io/fjJjk
<fmsbeekmans> clever: Does that mean manually fixing the hash when you notice things going wrong?
<clever> fmsbeekmans: yeah
<{^_^}> [nixpkgs] @peti pushed 2 commits to haskell-updates: https://git.io/fjJjY
erasmus has quit [Ping timeout: 272 seconds]
<fmsbeekmans> clever: I want to do it in a derivation, without manual intervertion since I'm looking to clone a ton of them. Is there a way to change have a not-fixed-output derivation so that I can have network access?
<AlexRice[m]> can you just use a shell script?
<clever> fmsbeekmans: you need to have a script that generates the nix, outside of nix
<fmsbeekmans> Ok, that makes .
clefru has joined #nixos
<clefru> when debugging a failed build, I usually do "nix-build -K". When desperate, I source "env-vars" in there. When even more desperate, I sudo to the nixbld user that did the build. However, when rerunning the build step that failed, I hit the obstacle that $out points to /nix/store which isn't writable anymore at that point. Is there anything I can do to get a writable $out in this situation?
<clever> clefru: first, you can skip sourcing env-vars, by running `nix-shell /nix/store/foo.drv`, as for $out, you can just re-export out to something else
<clever> clefru: the rest highly depends on what is failing, and why
<{^_^}> [nixpkgs] @7c6f434c pushed to master « lispPackages.stumpwm: mimic Query-FS tricks for adding extra deps »: https://git.io/fjJjw
<clefru> clever: thanks for the nix-shell trick. what's the function inside that shell that's the entry point for a build? I usually try to call genericBuild
<Ashy> how do i find all of the *.desktop files in my current nix profile?
<clefru> clever: that's what I am trying to do https://pastebin.com/rb5Wgvga
<clefru> clever: nanopos requires some kind of build step that is not properly specified in its package.json, and I am trying to figure out which npm command I need to call to make that build.
<clefru> this is all in the context of node2nix
<clever> clefru: yeah, genericBuild is the usual entry
<clever> clefru: you may want to `export out=$HOME/foo` first, to make it writable
<clever> clefru: can you pastebin the original error your trying to fix?
<clefru> https://pastebin.com/F8WazVyb I tried that
<clefru> something seems off there with those references to ./gvfs
domogled has joined #nixos
<clefru> clever: here is the original error. https://pastebin.com/Fs5TEV6H . nanopos's git repo contains a build.sh that is not called when npm install-ing, as it's in 'scripts: { "dist": "build.sh" }' in the package.json, however there is "bin": "dist/cli.js" inside the package.json as well, which doesn't exist when build.sh is not run, therefore npm errors out
<clefru> clever: not sure how familiar you are with package.json..
<clever> clefru: /usr/bin/env doesnt exist within the nix sandbox, you cant recreate that issue with su or nix-shell
<clever> npm ERR! path /nix/store/in8240mjl3l857gi1db2ywvwapcqv5hs-node-nanopos-0.1.5/lib/node_modules/nanopos/dist/cli.js
<clever> npm ERR! code ENOENT
<clever> and its likely complaining about /usr/bin/env not existing
<clever> clefru: one mi
<clever> n
<clefru> clever: there is in fact no dist/cli.js in $out. that's not a wrong-shebang error
<clever> ah
<clever> clefru: have you tried yarn2nix yet?
<clefru> the error comes from npm linkBins according to the npm error log. So my theory is that build.sh isn't invoked, which I can see no trace of. also build.sh would probably fail anyway, because it shebangs to /bin/bash
<clever> clefru: looks like you need to run `babel -d dist src` after npm does most of its work
<clefru> clever: no I haven't. Looks like a packaging error to me
<clefru> clever: right, I figured that npm install does that work
<clever> i dont think it does
<clefru> node2nix calls npm install...
<clever> only `npm run dist` will run that
<clefru> clever: sorry, I forgot to mention that I cloned the repo and renamed dist to install
<clefru> So I figure that npm install should now run build.sh
<clever> install is special, and i dont think it can be overrode like that
<clefru> I am sure that there are custom builds scripts that can be triggered
<clefru> all those C binding compilation steps are triggered somehow
<clefru> If I could only get a reasonable working nix-shell
<clefru> genericBuild goes completely wrong in my case.
<clever> clefru: https://github.com/Mic92/cntr i think you want this
<clever> clefru: ctrl+f https://nixos.org/nixpkgs/manual/ for breakpointHook and it will explain what you need
ym555 has joined #nixos
<clever> > breakpointHook
<{^_^}> "<derivation /nix/store/cj07xfab8c1n45g806gaj2fsn05y90n8-hook.drv>"
abathur has joined #nixos
<clever> clefru: it works by adding buildInputs = [ breakpointHook ]; to your derivation
<Yaniel> is lto causing problems for anyone else?
<Yaniel> specifically with static libraries
iyzsong has quit [Ping timeout: 255 seconds]
<clefru> clever: interesting, thank you!
<jomik> How can I build a package/derivation, only if an attribute has been set to true? I need to do something similar to `allowUnfree`.
<jomik> I guess I should not directly piggyback off of allowUnfree - its for the android licenses.
martinb has quit [Remote host closed the connection]
<jomik> I don't want to just skip a buildStep - I'd like the build/derivation to fail with a meaningful message :o
abathur has quit [Ping timeout: 246 seconds]
<clever> jomik: you probably want assert or throw
<{^_^}> [nixpkgs] @dtzWill opened pull request #58252 → manrope: init at 3 → https://git.io/fjJjF
<clefru> meh, not getting into the environment of a nixbld1 is strongly frustrating
<clefru> there seems to be a developer tooling gap here.
<clever> clefru: also, you can just edit the nix file, to add more commands at any point in the derivation
<clever> clefru: and then re-run nix-build, and nix will run those commands for you, at the right point
<clefru> clever: that's what I do, but I want something more complex, and additionally play around with the invocation of npm/strace it and so forth. The derivation is pretty heaving and I don't want to have a 20 sec turnaround on each invocation
<clever> clefru: what about just running nix-shell, and then `phases="buildPhase" genericBuild` in the directory the src came from?
<clefru> clever: probably the same result, npm not being able to write to $out
<clefru> I need to redirect $out
<clever> you can also set out at the same time
ericsagnes has quit [Ping timeout: 240 seconds]
dnlkrgr has joined #nixos
<clever> phases="buildPhase" out=/tmp/whatever genericBuild
Rusty1 has joined #nixos
<symphorien> clefru: you might be interested in breakPointHook
<clefru> ah great, genericBuild of this derivation trampled over my /run/user/1000/ directory deleting my $XAUTHORITY file or moving it somewhere
<gchristensen> oof
<clefru> my X session is now broken.. hurray. I give up on this.
<clever> clefru: XAUTHORITY is in $HOME on nixos, last i checked
<clefru> symphorien: thanks, but I don't like this solution. It seems too heavy of a tool for what should be simple rerun of build scripts
<clever> /home/clever/.Xauthority
<clefru> clever: I am using gdm, there it's not
<clever> ah, i'm on slim
<clefru> hurray, I found my Xauthority file again in /tmp/nanopos/node_modules/accepts/Xauthority \o/.
<clever> clefru: what the heck did node2nix do to you? lol
<jomik> Thanks clever
<clever> clefru: can you run `nix show-derivation /nix/store/foo.drv` on that drv?
<{^_^}> [nixpkgs] @peti merged pull request #58199 → haskellPackages.superbuffer: fix build → https://git.io/fjJiP
<{^_^}> [nixpkgs] @peti pushed 2 commits to master: https://git.io/fjUe3
<clefru> clever: I have no idea to be honest. I tried to set -x and watch the output of genericBuild.. but I really didn't find what's wrong.
<Alling> clever: AlexRice[m] This seems to indicate that metric has been problematic for years, doesn't it? https://hydra.nixos.org/build/36536032/nixlog/1/tail
<Alling> Maybe better link: https://hydra.nixos.org/build/36536032
<clever> Alling: yep
<clefru> clever: anyway, thanks for your help :)
<clever> Alling: which says that it has never passed on hydra
civodul has quit [Ping timeout: 268 seconds]
mmlb97745 has joined #nixos
<jomik> clever: I can't seem to use assertions, I am using a buildEnv: https://gitlab.com/Jomik/nur-expressions/blob/master/pkgs/androidsdk/environment.nix#L14
shabius_ has joined #nixos
<{^_^}> [nixpkgs] @peti merged pull request #58216 → haskellPackages.hfsevents: Fix eval on Darwin hackage2nix config and temporarily → https://git.io/fjJ91
<{^_^}> [nixpkgs] @peti pushed 3 commits to release-19.03: https://git.io/fjUel
<clever> jomik: the syntax for assertions is weird, it works similar to a let block
<clever> jomik: so you would insert the assert on line 8 maybe
<{^_^}> [nixpkgs] @basilgood opened pull request #58253 → lazygit: 0.5 -> 0.7.2 → https://git.io/fjUe8
vmandela has joined #nixos
<jomik> Before the `pkgs.buildEnv`?
shabius has quit [Ping timeout: 258 seconds]
<clever> jomik: yeah
<jomik> I am not sure how to do that.. :/ The assertions example I found in the manual sets it as an attribute in a set - I am not sure what the attribute name of the derivaton should be then.
periklis` has joined #nixos
<clever> jomik: you want the nix manual, not the nixos manual
<clefru> clever: I worked around my problem by switching the underlying source for something that already contains the compiled dist/cli.js. That is I didn't point to the git repo but to the npmjs.org tgz file which is produced by npm dist
ericsagnes has joined #nixos
periklis has quit [Ping timeout: 250 seconds]
domogled has quit [Ping timeout: 246 seconds]
<jomik> OH
<{^_^}> [nixpkgs] @primeos pushed 2 commits to master: https://git.io/fjUey
<Alling> By the way, does anyone understand what "Data.Functor.Extras" (used by kmeans-par) is?
<jomik> Can I pass a message along with assert though? clever
<clever> jomik: nope, thats where you want throw instead
<clever> jomik: if condition then (throw "msg") else (buildEnv ...)
<jomik> Ooooh, ahh, duh. Thank you :p
<Alling> Or does anyone recognize the combinators (..:) and (...:)?
justanotheruser has quit [Ping timeout: 272 seconds]
johanot has quit [Quit: WeeChat 2.4]
<kyren> clever: thank you for teaching me about breakpointHook, that is *extremely* useful
domogled has joined #nixos
ckauhaus has joined #nixos
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/918bc442802 (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
bgamari has joined #nixos
aszlig has quit [Quit: Kerneling down for reboot NOW.]
jomik has quit [Quit: WeeChat 2.4]
aszlig has joined #nixos
<{^_^}> Channel nixos-19.03-small advanced to https://github.com/NixOS/nixpkgs/commit/d1b54b103be (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-19.03-small)
justanotheruser has joined #nixos
genesis has quit [Quit: Leaving]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/3791a20e978 (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
justanotheruser has quit [Quit: WeeChat 2.2]
fmsbeekmans has quit [Quit: Page closed]
npmccallum has joined #nixos
<{^_^}> [nixpkgs] @jbgi opened pull request #58255 → Add Prometheus 2 service in parallel with 1.x version (continuation) → https://git.io/fjUvu
init_6 has quit []
kai_w has joined #nixos
abathur has joined #nixos
<Alling> AlexRice[m]: Yeah, I found it eventually! I didn't think of the possibility of an internal module at first.
<kai_w> for python packages, what's the difference between `disabledIf IsPy3k (callPackage foo.nix)` and `callPackage foo.nix { disabled = IsPy3k; }`?
kai_w has quit [Quit: Konversation terminated!]
shabius has joined #nixos
kai_w has joined #nixos
shabius_ has quit [Ping timeout: 258 seconds]
myskran has joined #nixos
<sphalerite> Anybody know what's up with the "error: restoring parent mount namespace: Invalid argument" message that seems to crop up every second time I try to use nix-shell as root?
abathur has quit [Ping timeout: 255 seconds]
cmacrae has joined #nixos
<clever> sphalerite: ive also noticed it, but havent looked into why
<cmacrae> Hey guys o/ Having some trouble defining some NOPASSWD sudo rules which I've outlined here: https://gist.github.com/cmacrae/470fb159d1ea62c670ab0955c2f18376
<cmacrae> Would appreciate it if anyone has a moment to take a look
<cmacrae> tl;dr - I've tried defining a NOPASSWD sudo rule using security.sudo.extraRules, but I'm still prompted for a password
bgamari has quit [Quit: ZNC 1.7.1 - https://znc.in]
<symphorien> does /etc/sudoers look like what you expect ?
<clever> clefru: what does `sudo -l` report?
rauno has quit [Ping timeout: 272 seconds]
<clever> cmacrae: and what happens if you run a literal: sudo systemctl '*' openvpn-moo
<cmacrae> symphorien: /etc/sudoers looks right to me, it's in that gist (if you can access :)
<cmacrae> Good shout clever - I'll give that a go
<cmacrae> I had tried setting it to just accepting the `start` argument, to see if it was getting upset about the wildcard, but that didn't work
<cmacrae> Anyway, I'll see what happens with a literal '*'
<clever> cmacrae: also check `sudo -l` which should list what you can (and cant) do
bgamari has joined #nixos
m1sosoup has joined #nixos
<cmacrae> Yeah the literal '*' is the same result (get prompted for a password)
<cmacrae> sudo -l looks right to me
<clever> cmacrae: can you add the -l output to the gist?
<cmacrae> Of course
<cmacrae> One moment :)
<clever> sudo nix/store/rl4ky8x58ixnfjssliygq7iwyd30l3gn-systemd-239.20190219/bin/systemctl status openvpn-moo
<clever> cmacrae: you also missed a / in here
<cmacrae> Updated the gist
<cmacrae> Ah, yes, I think that was just my example (bad paste)
<cmacrae> I'll just confirm...
<cmacrae> Yep, was just a bad paste (thanks though!)
agander has quit [Ping timeout: 250 seconds]
<clever> (root) NOPASSWD: /run/current-system/sw/bin/zpool status*
<clever> cmacrae: from a machine where i do see it working
<clever> and `sudo zpool status` works without a pw
bgamari_ has joined #nixos
domogled has quit [Quit: domogled]
<cmacrae> Ah okay, so perhaps that `(root)` section needs to be present?
<cmacrae> I'll have a play around, thank you very much for your time :) Really appreciate it!
bgamari has quit [Ping timeout: 250 seconds]
<clever> i think that means i can only run zpool as root
<clever> while yours has all:all, so you can run systemctl status, as any user
<cmacrae> Yep, I think you're right
<clever> `sudo -u nobody systemctl status ...`
<clever> which is rather useless, since it only works as root
orivej has quit [Ping timeout: 250 seconds]
ThatDocsLady_ has quit [Remote host closed the connection]
<cmacrae> Yeah I had considered maybe I should just try static config like that
<cmacrae> Thanks! I'll play around, I'm sure I'll get it working with the references you've given here :)
ThatDocsLady_ has joined #nixos
jtojnar has quit [Ping timeout: 250 seconds]
jtojnar_ has joined #nixos
jtojnar_ is now known as jtojnar
cmacrae has quit [Remote host closed the connection]
fusion809 has joined #nixos
rembo10 has quit [Quit: ZNC 1.7.2 - https://znc.in]
<{^_^}> [nixpkgs] @max-wittig opened pull request #58257 → gitlab-runner: 11.8.0 -> 11.9.0 → https://git.io/fjUfB
rembo10 has joined #nixos
cmacrae has joined #nixos
inquisitiv3 has joined #nixos
<cmacrae> That was it, clever :)
<cmacrae> Just needed to add a `runAS = "root"` parameter
<cmacrae> Works
<cmacrae> Thanks very much!
<{^_^}> [nixpkgs] @teozkr opened pull request #58258 → buildRustCrate: Fix `include` filter → https://git.io/fjUfu
mariel__ has joined #nixos
ThatDocsLady_ has quit [Read error: Connection reset by peer]
agander has joined #nixos
Guanin has joined #nixos
<siraben> I've asked around before but I haven't been able to find docs on this, how do I remap caps lock to control in TTY terminals?
hyper_ch2 has quit [Ping timeout: 256 seconds]
periklis` has quit [Ping timeout: 245 seconds]
<Rusty1> siraben: does : man localectl have anything useful?
<siraben> Rusty1: is it possible to remap in configuration.nix ?
nefix_ has quit [Ping timeout: 256 seconds]
<cmacrae> Ah crap, maybe not... I just had a cached `sudo` session, ah well - I'll keep poking
devalot has joined #nixos
Notkea has joined #nixos
Notkea has quit [Quit: issued !quit command]
Notkea has joined #nixos
endformationage has joined #nixos
Notkea has quit [Client Quit]
periklis` has joined #nixos
Notkea has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace merged pull request #58238 → youtube-dl: 2019.03.01 -> 2019.03.18 → https://git.io/fjJFy
romildo has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fjUJf
rauno has joined #nixos
rauno has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @gebner opened pull request #58259 → evince: enable all features → https://git.io/fjUJT
jtojnar has quit [Ping timeout: 250 seconds]
drakonis has joined #nixos
o1lo01ol1o has joined #nixos
tertl3_ has joined #nixos
<{^_^}> [nixpkgs] @kalbasit merged pull request #56867 → bazelisk: init at 0.0.3 → https://git.io/fhxPW
drakonis_ has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @kalbasit pushed commit from @elasticdog to master « bazelisk: init at 0.0.3 (#56867) »: https://git.io/fjUJL
genesis has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace pushed commit from @dtzWill to release-19.03 « youtube-dl: 2019.03.01 -> 2019.03.18 »: https://git.io/fjUJl
amir has quit [Ping timeout: 264 seconds]
genesis_ has joined #nixos
genesis_ is now known as genesis
genesis is now known as Guest54103
rasmosis is now known as Erasmus
amir has joined #nixos
drakonis1 has joined #nixos
myskran has quit [Quit: myskran]
romildo has quit [Quit: Leaving]
amir has quit [Ping timeout: 264 seconds]
Makaveli7 has joined #nixos
linarcx has joined #nixos
amir has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace pushed 3 commits to release-18.09: https://git.io/fjUJM
msgctl is now known as loonquawl
inquisitiv3 has quit [Quit: Leaving]
<betawaffle> ok, so i managed to install nixos from another linux distro, because i couldn't get the graphical installer usb to boot
<srhb> betawaffle: Funny, that was how my first install went too. Though i think it was because I didn't have a usb stick at the time. Nerve wracking!
periklis` has quit [Ping timeout: 268 seconds]
<betawaffle> but now, after i turned on some stuff like wireless and xserver, it does this weird flashy thing when booting, where it switches between the normal virtual terminal i'd expect and what appears to be an incorrectly configured console (like, the one where newlines don't reset to the beginning of a line)
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #58192 → ghcjs-ng: unbreak → https://git.io/fjJKv
<{^_^}> [nixpkgs] @Ericson2314 pushed 2 commits to master: https://git.io/fjUJb
<betawaffle> so... what i've got now are two nixos things i can boot. one that works, but has no networking or anything; and another, that is graphically fucked and unusable
<srhb> betawaffle: Sounds like you need to grab some xserver logs for starters.
<betawaffle> is there something i can pass on the kernel command line to boot the latter is some kind of safe mode?
<betawaffle> s/is/in/
<srhb> You can boot to single user mode, but I'd expect that's less functional than just switching to vt1 and debugging from there.
<betawaffle> because i'm not sure how to interact with the later from the former
<srhb> There's no "graphical safe mode"
<betawaffle> srhb: when i switch vt, it still does that weird flashing thing. so i can't actually *see* the virtual terminal
<betawaffle> it's literally unusable
<srhb> betawaffle: Yuck, okay.
<samueldr> if display-manager.service is in a "bad loop" it might be hard to switch to VT1
<betawaffle> like, i'm trying to figure out how to completely disable whatever graphical nonsense it's trying to do
erasmas has joined #nixos
<srhb> betawaffle: Then you might indeed want to boot single user mode and go from there.
equivrel has joined #nixos
<betawaffle> how do i do that?
<betawaffle> (i'm pretty new to linux)
<samueldr> try adding `systemd.mask=display-manager.service` to the kernel boot options
<srhb> betawaffle: press 'e' in your boot loader and add "single" to your command line
periklis` has joined #nixos
<samueldr> (as an alternative)
<srhb> Oh, samueldr's option is even nicer
<srhb> Definitely go with that :)
<betawaffle> ok. i'll try that
<srhb> Saves you some manual wrangling.
<betawaffle> thanka
<samueldr> I believe it should disable the display manager service for the duration of the boot
zupo has joined #nixos
<samueldr> betawaffle: what kind of computer is it?
<samueldr> something really recent?
<betawaffle> system76 darter pro, yep, i think so
<samueldr> okay
<samueldr> I think I know what will help, unless you already did it
<betawaffle> so, the systemd mask totally seems to be helping. i have an actual login now
<samueldr> boot.kernelPackages = pkgs.linuxPackages_latest;
<samueldr> ^ add this to your configuration.nix, so it uses a newer kernel
<samueldr> if you installed 18.09 (likely) it's using the latest-at-that-moment LTS, which would be 4.14
<linarcx> Gyus. how to copy .desktop file when writing a python package?
<samueldr> it's not really old, but really new machines have been known to be annoying to work with
<slabity> Just got plasma-mobile working in Nix!
agander has quit [Ping timeout: 272 seconds]
<betaboon> slabity: ouh nice. you made progress :D
<slabity> Now just gotta get it running on my tablet :D
<betawaffle> samueldr: gimme a minute, gotta fix something else
<betaboon> linarcx: still working on packaging that downloadmanager ?
<samueldr> betawaffle: I'm not in a rush ;)
<linarcx> betaboon: Yes :)
<{^_^}> Channel nixos-19.03-small advanced to https://github.com/NixOS/nixpkgs/commit/d99ad3d3093 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-19.03-small)
<AlexRice[m]> If i've realised that my pr is broken should I take it down and add it again once I've fixed stuff or just leave it up while I fix stuff and commit the fixes?
<manveru> AlexRice[m]: just leave it up :)
<manveru> AlexRice[m]: but maybe mention that it's broken in the comment
dnlkrgr has quit [Ping timeout: 250 seconds]
jmeredith has joined #nixos
<linarcx> They force me not using makeDesktopItem, but instead useing it's own .desktop file. but i don't have any idea how to do this job.
<AlexRice[m]> will do
<betaboon> linarcx: so you could copy the file from $src in postInstall to the appropriate directory. makes sense ?
<linarcx> betaboon: Yes, got it.
<monotux> so I'd like to override what package a service uses, and use the latest from unstable (always!), here's a gist: https://gist.github.com/oscarcarlsson/7d9ac47266a5a57e9a89c4162f0b7db2
<monotux> any pointers?
Guanin has quit [Quit: Leaving]
Ariakenom has quit [Ping timeout: 250 seconds]
<betawaffle> samueldr: ok, so now that i'm booted in here, how do i configure wifi?
<samueldr> no idea
<samueldr> :) sorry
<srhb> ,unstable monotux
<monotux> thank you betaboon and srhb, I'll have a look!
<srhb> monotux: Ack, that;s not actually as helpful as I thought.
<samueldr> betawaffle: I was thinking more about the display-manager issues; newer kernels are generally easier to deal with new hardware when DMs won't start
mmlb97745 has quit [Ping timeout: 250 seconds]
<srhb> monotux: Basically, just override the package "globally" via an overlay.
<betawaffle> right, i just realized i can't run nixos-rebuild until networking is working
<monotux> never got around to understand overlays, but I'll give it a try
<samueldr> looks like it's an intel wireless card, which AFAIK are generally are well supported without doing much... except maybe if it's too new?
<samueldr> (the darter pro page says it's a "Intel® Wireless-AC, Bluetooth")
<srhb> monotux: betaboons approach works fine too since there's an home-assistant.package option, but overlays will work even when there isn't. ymmw.
<betawaffle> samueldr: i don't think there's a problem with support. more about me telling it what network to connect to, and the password :P
<slabity> Does it appear when you run `ip a`
<betawaffle> trying to find the docs to configure that
<samueldr> ah, betawaffle, for this I'm always using network-manager, so I can't help with the usual linux things; but AFAIK when you just enable wireless, it should be "as you do on other distros without helpers"
<samueldr> probably something like wpa_supplicant and dhcpcd/dhclient
<samueldr> betawaffle: might be relevant https://nixos.org/nixos/manual/#sec-wireless
mmlb97745 has joined #nixos
Neo-- has joined #nixos
<monotux> I'm giving up on overlays, I need time to understand this entire thing but I don't have it now
<monotux> there's so much to understand with nix that it's hard to know where to begin, but it is so awesome in the cases where the defaults works
periklis` has quit [Remote host closed the connection]
ddellacosta has joined #nixos
alex`` has quit [Quit: WeeChat 2.4]
<{^_^}> [nixpkgs] @matthewbauer merged pull request #58246 → pkgsMusl, pkgsi686Linux, pkgsStatic: fix infinite recursion with overlays → https://git.io/fjJA5
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fjUUC
waleee has joined #nixos
dnlkrgr has joined #nixos
<srhb> monotux: It's also pretty awesome when they don't, because of how customizable it is, but yeah, it's a big iceberg to dig into! :)
<{^_^}> [nixpkgs] @primeos pushed to master « tdesktop: 1.6.2 -> 1.6.3 »: https://git.io/fjUUB
<monotux> srhb, thanks for the pointers anyhow!
<srhb> monotux: Sure :)
alex`` has joined #nixos
<betaboon> srhb: does that look correct ?
<srhb> betaboon: Yep!
benhoman has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
benhoman has joined #nixos
<srhb> betaboon: And combining with your example, one could use self: super: { home-assistant = nixos-unstable.home-assistant; }
linarcx has quit [Ping timeout: 250 seconds]
<srhb> betaboon: In order to splice in just that one package from unstable into the main pkgs.
<betaboon> srhb: yes exactly.
<betaboon> monotux: do you follow? or should i combine that for you in the gist ?
<monokrome> Does anyone know what udev rules I would add in order to let my laptop charge my phone? My dmesg output is here: https://gist.github.com/monokrome/7d495be08be42719e3a1cca2846982cb
Zer000 has joined #nixos
* monokrome needs to learn udev better >.<
<srhb> monokrome: I've never had a usb connection _connect_ and yet not charge o_o
<srhb> Frankly I'd suspect the cable if that ever happened..
<srhb> But maybe I'm just USB-ignorant.
<monokrome> srhb: There are rules for "device X supports Y feature" that tell it that it's okay to send extra power to the device so it deoesn't damage ones that don't
linarcx has joined #nixos
<srhb> TIL. :)
<monokrome> This phone just released last month and it's not, like, a super popular one
<monokrome> So, makes sense that there aren't rules for it yet
<buckley310> i wouldnt think you need udev rules, or even a working driver, to charge a phone O.o
<monokrome> maybe udev isn't the right thing
<buckley310> i have also never had a phone not charge once it was detected
<monokrome> but there are rules somewhere that decide whether you can or not
<monokrome> Have you ever had a phone that isn't widely popular plugged into your PC?
<samueldr> usb PD can ask for more power, but USB itself should always provide the 500mA~ 5V output, the phone might say something like "charging slowly"
cmacrae has quit [Remote host closed the connection]
<samueldr> though I don't know how PD can be configured, if at all, via linux
<monokrome> Lots of phones want more power than that
<samueldr> yeah, but most, if not all, will still charge, albeit slowly
<monokrome> well it's not
<samueldr> though some firmwares (bios/uefi) will have options for that
<buckley310> i mean, ive never had what i would describe as an "unpopular" phone, i have seen phones charge before my OS has booted...
<srhb> monokrome: Is it possible that your USB port is just rated lower than what the phone will accept?
<monokrome> charges w/ my mac, not w/ my linux laptop, same connection
Alling has quit [Ping timeout: 256 seconds]
<samueldr> since dmesg sees the phone, the phone receives power from the USB port; maybe the software on the phone (or the firmware) decided that the 500mA/5V is not enough to show the charging state
<monokrome> yes that's what I said :)
linarcx has quit [Ping timeout: 245 seconds]
linarcx1 has joined #nixos
<srhb> I'll stop guessing blindly, I'm just very surprised. :P
<betawaffle> wth... 63% packet loss over wireless :(
<monokrome> betawaffle: Maybe a saturated channel?
<samueldr> apple computers are known to be able to deviate from the spec without PD, to give 1100mAH in some cases; might be related
<betawaffle> idk, maybe? not sure how to diagnose that. it's never a problem on my apple machines
<monokrome> pretty sure I just need to add a udev rule
<samueldr> find out how it'd be done on other distros, then we should be able to figure out how to do it for NixOS
<monokrome> hmm
<monokrome> so it isn't udev actually
<monokrome> If I plug in AC, it charges
<monokrome> tlp I guess
<samueldr> either that or the firmware of the laptop goes into "keep this up to spec, but as low power as needed"
<{^_^}> [nixpkgs] @gebner pushed to release-19.03 « evince: enable postscript support »: https://git.io/fjUUA
<betawaffle> suddenly i've got no packet loss :/
<monokrome> what changed?
<betawaffle> nothing!
<monokrome> something did :D
<betawaffle> i ran nix-channel --update
<samueldr> betawaffle: don't move, hold your breath, don't heat anything in the microwave, and ask your neighbours too, not to microwave anything
<samueldr> (assuming 2.4Ghz)
<{^_^}> [nixpkgs] @gebner pushed to master « evince: enable postscript support »: https://git.io/fjUUh
<monokrome> now it charges w/out AC
isHavvy has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @dtzWill merged pull request #58235 → ponyc: 0.27.0 -> 0.28.0 → https://git.io/fjJ5N
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to master: https://git.io/fjUTe
* monokrome scratches her head
<disasm> fpletz, globin, WilliButz: I know you guys are using prometheus 2. Would one of you be able to review https://github.com/NixOS/nixpkgs/pull/58255/files? I'd like to get this upstreamed. We're currently using it in our fork, much like you guys do :)
<{^_^}> [nixpkgs] @gebner closed pull request #58259 → evince: enable all features → https://git.io/fjUJT
<srhb> So, who's up for some psychic debugging...
<srhb> nixos-rebuild build fails with stack overflow (possible infinite recursion)
<srhb> I roll back my repo 100 commits and rebuild works.
<srhb> I bisect from there, marking the previous commit as bad.
<srhb> After some 5 steps, I have a reported first bad commit.
<srhb> Alas, this commit is fine.
<srhb> ???
<monokrome> It doesn't give a traceback?
Havvy has joined #nixos
orivej has joined #nixos
<monokrome> use `git bisect`
<globin> disasm: we're currently in the process of moving offices but will do so as soon as possible
<srhb> No. But what weirds me out is that the supposed first bad commit is wrong. I'm clearly not understanding some intricacy of git bisect here.
<monokrome> oh you're saying yo already did?
<srhb> Yup.
<monokrome> From master, did `git bisect start`?
<srhb> I'll redo it. I must have done _something_ wrong, right?
<srhb> nixos-unstable, but yes. (via git bisect bad)
<monokrome> via git bisect bad?
<monokrome> like
<srhb> If you invoke git bisect bad without start first, it'll just ask you whether it should start a bisect for you
<srhb> (And then also mark it as bad)
<monokrome> `git bisect start BAD_COMMIT_ID master` ?
<monokrome> oic ok
<monokrome> then it searches for a good one?
<srhb> No, I did git checkout HEAD~100, tested it, and it was good, so I did git bisect good
<srhb> Then it starts searching.
<monokrome> after doing `git bisect good`?
<srhb> Yep!
<monokrome> I didn't know you could manually checkout w/ a bisect active
<monokrome> it didn't break it?
<srhb> How else to mark the boundaries?
<srhb> Oh, you use the git bisect good COMMIT version?
<monokrome> yeah
<srhb> Yeah, I'm pretty sure it should be the same thing.
<monokrome> hmm interesting
<srhb> Like, after checking out two commits, one good and one bad, and marking each good/bad respectively, it'll initiate the normal bisect search.
<srhb> It's just implicitly the current commit.
<srhb> I'm so confused :-)
<monokrome> So, it found a commit that doesn't have any recursive logic or call into functions that commit introduces usage of?
<srhb> Well, it certainly finds a commit that's good... So there must be some interaction somewhere that I don't understand, I guess? I must have made some mistake, this doesn't make sense..
<monokrome> so once it finds a good commit
<monokrome> did you `git bisect good`?
equivrel` has joined #nixos
<srhb> Yep.
<monokrome> the it should have checked out a new one to find a bad one?
<srhb> If you'd asked me an hour ago I would have sworn I know how to bisect ;-)
<srhb> Yeah, I went through a bunch.
<monokrome> I would try again without the manual checkout
<srhb> OK. :)
<monokrome> I think that may have broken it
<monokrome> unless there's some caching of source files going on
equivrel has quit [Ping timeout: 268 seconds]
<ajs124> switch-to-configuration switch isn't updating my systemd-boot config anymore and I'm kind of out of ideas why that might be. any help?
<srhb> ajs124: Any errors or warning during rebuild? Usually it's out of space conditions.
fendor has joined #nixos
<srhb> hmm, wait, does switch-to-configuration switch do the same thing as rebuild switch?
<ajs124> srhb, nothing. There's enough space. The truly weird thing is, if I move /boot/loader, if I do a switch, it doesn't recreate /boot/loader/loader.conf but it does recreate /boot/loader/entries and it's contents, but only generations until 4 days ago
<ajs124> nixos-rebuild calls switch-to-configuration, yes.
<srhb> ajs124: Right, I was wondering whether it calls the boot logic separately, I forget.
<ajs124> I took a look and it doesn't look like it does.
<monokrome> the easiest way imo is to just do `git bisect start bad_commit good_commit`
<monokrome> sorry if not helpful
<ajs124> hm, yeah. I'll look through my commit history. The thing is, I don't remember changing anything related to that stuff over the weekend
<monokrome> :o
<srhb> I think the bisect stuff was a comment for me :)
<simukis_> what besides `.drv` being refered to could keep it "alive"?
<ajs124> and nixpkgs, which might have changed, obviously
<srhb> simukis_: nix-store --query --roots may help you
<monokrome> I meant srhb. Sorry for confusion ^
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<simukis_> srhb: ah, there was a `result` path somewhere.
<simukis_> thanks!
<srhb> ajs124: Which commit are you on?
<srhb> ajs124: The only other thing I can think of is an efi entry that point to an old, wrong boot list somehow..
Jackneill has quit [Ping timeout: 244 seconds]
Jackneill has joined #nixos
tertl3_ has quit [Quit: Connection closed for inactivity]
ixxie has joined #nixos
<ajs124> srhb, I'm on 918bc442802b78e41998b327348c6a7d3b1c9038
wfranzini has quit [Remote host closed the connection]
__Sander__ has quit [Quit: Konversation terminated!]
<ajs124> I think I might have figured it out, but I'm still not sure why that would have changed in the last 4 days on the stable channel
<srhb> ajs124: What's your hunch?
<ajs124> srhb, it seems to look like systemd-boot is generating the config correctly, but my generations are not "updating" properly. As in, if I do a switch, list my generations, change something and do another switch and list them again, only the newest generation gets replaced, but the whole list didn't get "shifted".
<srhb> ajs124: This doesn't apply to the actual generations in /nix, right?
<srhb> /nix/var/nix/profiles I mean
<srhb> What I'm wondering is whether there's actually a maximum for systemd-boot
<ajs124> srhb, it does. That's what I'm saying. I'm using a replacement for nixos-rebuild which a friend and I wrote, for various reasons and that seems to be broken.
<srhb> Ah, sorry.
<ajs124> Yup, doing a regular old nixos-rebuild switch worked -.-
knupfer has joined #nixos
<ajs124> Amazing. Well, thanks anyway. Guess I know whom to blame now, at least.
<srhb> Hehe. :)
<samueldr> ajs124: anything cool in that nixos-rebuild replacement? (if you're not ready to show, just don't mine me :) )
<samueldr> mind*
knupfer has quit [Client Quit]
knupfer has joined #nixos
cryptomonad has joined #nixos
<ajs124> samueldr, I'm not responsible for most of it, so das_j is the better person to ask this question. It mainly deploys secrets, nix channels, builds and deploys systems. Locally and remotely. It's a collection of horrible bash scripts.
rcshm has joined #nixos
<AlexRice[m]> does anyone know how I can set an environment variable to be an empty string in makeFlags
<AlexRice[m]> nm think I've figured it out
<{^_^}> Channel nixos-18.09 advanced to https://github.com/NixOS/nixpkgs/commit/918bc442802 (from 8 hours ago, history: https://channels.nix.gsc.io/nixos-18.09)
<azazel> so, remind me why builtins.toPath doesn't work? what can I use to convert a string representing an existing path to a path?
<samueldr> >> builtins.toPath s
<samueldr> DEPRECATED. Use /. + "/path" to convert a string into an absolute path. For relative paths, use ./. + "/path".
Myhlamaeus has joined #nixos
LnL has joined #nixos
LnL is now known as Guest56005
<azazel> oh, thanks samueldr ... but the lasts time I checked the manual it wasn't there!
i1nfusion has quit [Remote host closed the connection]
ixxie has quit [Ping timeout: 250 seconds]
i1nfusion has joined #nixos
Guest56005 has quit [Ping timeout: 250 seconds]
ixxie has joined #nixos
Tucky has quit [Quit: WeeChat 2.2]
m1sosoup has quit [Quit: Leaving]
<srhb> The plot thickens.
<srhb> I have a local branch, nixos-unstable
<srhb> Git shows that the latest commit is 373488e6f4c3dc3bb51cabcb959e4a70eb5d7b2c
<srhb> nixos-rebuild dry-build fails, infinite recursion.
<srhb> now, I git checkout 373488e6f4c3dc3bb51cabcb959e4a70eb5d7b2c
<{^_^}> [nixpkgs] @gebner opened pull request #58277 → evince: enable all backends → https://git.io/fjUkl
<srhb> And now, nixos-rebuild dry-build succeeds
<srhb> (-:
<srhb> Like.. What.
LnL7 has joined #nixos
LnL7 has quit [Changing host]
LnL7 has joined #nixos
<samueldr> could you somehow be mixing nixpkgs with NIX_PATH and importing paths?
slack1256 has joined #nixos
drakonis1 has quit [Quit: WeeChat 2.3]
<srhb> samueldr: ... plausibly? I'm not sure I understand how that would cause this failure though..
<samueldr> you asked for psychic debugging! I tried pysching up :)
<srhb> :D I appreciate it.
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/1f6e46ff968 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/2d656a97297 (from 3 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
<{^_^}> Channel nixpkgs-19.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/7228ac327d6 (from 3 hours ago, history: https://channels.nix.gsc.io/nixpkgs-19.03-darwin)
<srhb> :o
<gchristensen> party!
<LnL7> srhb++
<{^_^}> srhb's karma got increased to 41
<azazel> :-)
drakonis_ has joined #nixos
<genesis> how to know when lxqt 0.14 will be in stable branch ?
<srhb> genesis: Presumably when 19.03 is released and becomes the stable branch.
<srhb> Unless there's a specific reason to backport it to 18.09.
<genesis> kewl i hop e so :)
fpob has joined #nixos
Neo-- has quit [Ping timeout: 268 seconds]
<azazel> samueldr: using /. + a_path_in_store_as_string now I got "a string that refers to a store path cannot be appended to a path"
drakonis has quit [Ping timeout: 250 seconds]
<samueldr> :/ I don't know much more than what the manual said
<samueldr> is there a reason you need a path, where a string won't work?
<samueldr> (I mean, it's likely you do)
<simukis_> is there a command to manipulate /etc/nix/nix.conf config?
<srhb> simukis_: On NixOS, you can manipulate it via configuration.nix
<simukis_> alas, not NixOS.
<srhb> simukis_: Then just your editor of choice :)
<simukis_> well, I’m trying to automate it, so I would have to resort to sed, I guess.
<srhb> simukis_: What are you trying to automate exactly?
Glider_IRC has joined #nixos
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/2d656a97297 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
<azazel> samueldr: I'm packaging a customized version of nixops, but if leave the nixpkgs in release.nix https://github.com/azazel75/nixops/blob/remote-libvirt/release.nix#L3 unspecified i get an error about (python?) package compatibilty as I'm on unstable ... so I setup to pass in the store path to latest stable nixpkgs, but I don't know why this way fails to render the path at
<azazel> https://github.com/azazel75/nixops/blob/remote-libvirt/doc/manual/default.nix#L23 that gets called along the way and looks up just for /nixos/doc/manual/options-to-docbook.xsl, so I was thinking about the differences between fetchTarball "stablepkgs" and <nixpkgs> and I noted that the former returns a string, while the latter is a path (in nix repl)
<NemesisD> hey folks. i'm trying to set up a particular directory structure with `dockerTools.buildImage`. i have a derivation that drops a bunch of files into $out. i tried making a derivation that depends on that and in the `installPhase` copying those to `$out/my/desired/structure`, then using that in the docker image `contents`, but the image still has all those files in the root
<simukis_> srhb: adding a new entry to substituters and its key.
<srhb> simukis_: You could write a nix derivation that generates the nix.conf file declaratively, but... :-P
<NemesisD> is there a more sensible way to configure where files in the docker image go at build time?
<srhb> NemesisD: iirc everything is just linked to the top level, so you can modify the generation to produce whatever kind of tree you like.
marler8997_ has joined #nixos
<{^_^}> Channel nixos-19.03-small advanced to https://github.com/NixOS/nixpkgs/commit/7228ac327d6 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-19.03-small)
<srhb> NemesisD: as in pkgs.runCommand "weirdlocation" {} "mkdir -p $out/blorb && ln -s ${pkgs.hello}/bin/hello $out/blorb/hello"
<marler8997_> is anyone else getting this right now? warning: unable to download 'https://cache.nixos.org/nix-cache-info': SSL peer certificate or SSH remote key was not OK (60)
PuercoPope has joined #nixos
<NemesisD> srhb: i've seen runCommand mentioned before but never used. so runCommand creates a new derivation with name "weirdlocation" right?
<srhb> NemesisD: Yeah.
<{^_^}> [nixpkgs] @rnhmjoj opened pull request #58278 → mtxclient: patch to workaround matrix synapse bug → https://git.io/fjUk9
<srhb> NemesisD: It's just an ultra simple mkDerivation.
<samueldr> marler8997_: does load on another device on your network? is your system clock about right?
alex`` has quit [Ping timeout: 250 seconds]
<marler8997_> actually system clock is wrong, I'll try fixing
<{^_^}> [nixpkgs] @dingxiangfei2009 opened pull request #58279 → Customizable fsType for make-disk-image → https://git.io/fjUk7
adetokunbo has quit [Quit: This computer has gone to sleep]
<NemesisD> srhb: i'll give that a try. i may be doing the rough equivalent already, i'm running mkDerivation, unpackPhase = "true"; buildPhase = "true"; installPhase = "mkdir -p $out/my-dir $out/my-dir/log; maybe where i went wrong is that i was doing a `cp` instead of an `ln` from source to dest
<srhb> NemesisD: Either should be fine.
<NemesisD> srhb: either runCommand || mkDerivation, or either ln || cp
alex`` has joined #nixos
<srhb> NemesisD: anyOf those :)
<srhb> NemesisD: What do you see wrong with your version? Does it not link my-dir properly?
<NemesisD> hmm, wonder why it isn't taking then, the files are still in the root and my directory structure is nowhere to be found in the docker image
<srhb> NemesisD: You added it to contents, or what's its name?
<srhb> NemesisD: If so, it might be using paths-to-link or something...
adetokunbo has joined #nixos
<{^_^}> [nixpkgs] @jtojnar closed pull request #58277 → evince: enable all backends → https://git.io/fjUkl
<{^_^}> [nixpkgs] @jtojnar reopened pull request #58277 → evince: enable all backends → https://git.io/fjUkl
<srhb> NemesisD: Looks to me like it's basically doing `for content in $contents; do cp -r content /; done`
<srhb> git reset --hard HEAD~1 && git pull -- fixed the rebuild issue. Go figure. The repository was cleaned, garbage collected, and everything. git must have messed up something?
* srhb shrugs
<marler8997_> samueldr: that did the trick...thanks for the help
<betawaffle> does anyone here use wayland on nixos?
<AlexRice[m]> yes
<samueldr> marler8997_: one of the most non-obvious issue, SSL checks with time and date, and when it's wildly out of whack, it just fails hard :/
<betawaffle> what config options do you need for it?
<samueldr> (not nix specific)
equivrel` has quit [Ping timeout: 250 seconds]
<marler8997_> good to know, I'll keep that in mind in the future
<AlexRice[m]> betawaffle: services.xserver.enable = false; program.<compositor>.enable = true;
rycwo has joined #nixos
<AlexRice[m]> where <compositor> is whatever you're going to run
<betawaffle> like sway?
<AlexRice[m]> yes
<NemesisD> srhb: it works! it turns out i was goofing up the syntax: `cp -r ${frontend} $out/my-dir` i think was like copying the link or something weird. i changed it to `cp -r ${frontend}/* $out/my-dir` and everything looks good :)
HappyEnt has joined #nixos
<srhb> NemesisD: Great!
alex`` has quit [Ping timeout: 244 seconds]
alex`` has joined #nixos
sigmundv has quit [Ping timeout: 250 seconds]
<AlexRice[m]> betawaffle: A few wayland programs are missing from nixpkgs atm but it seems you can copy in .nix files from https://github.com/colemickens/nixpkgs-wayland and it has worked fine for me so far
<betawaffle> AlexRice[m]: what's something that's missing, as an example?
<{^_^}> [nixpkgs] @r-ryantm opened pull request #58280 → kid3: 3.7.0 -> 3.7.1 → https://git.io/fjUI8
<AlexRice[m]> I'm using waybar and redshift-wayland from there
hedning_ has joined #nixos
<colemickens> :)
hedning_ has quit [Client Quit]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #58281 → kisslicer: 1.6.2 -> 1.6.3 → https://git.io/fjUIz
rcshm has quit []
<{^_^}> [nixpkgs] @flokli merged pull request #58211 → [19.03] fix containers ipv6 → https://git.io/fjJyQ
<{^_^}> [nixpkgs] @flokli pushed 3 commits to release-19.03: https://git.io/fjUIw
domogled has joined #nixos
<{^_^}> [nixpkgs] @obadz merged pull request #57394 → citrix_receiver: remove old versions → https://git.io/fhjGB
<{^_^}> [nixpkgs] @obadz pushed commit from @Ma27 to master « citrix_receiver: remove old versions »: https://git.io/fjUIr
<{^_^}> [nixpkgs] @etu merged pull request #58253 → lazygit: 0.5 -> 0.7.2 → https://git.io/fjUe8
<{^_^}> [nixpkgs] @etu pushed 2 commits to master: https://git.io/fjUI6
<AlexRice[m]> does anyone know anything about apparmor in nixos?
zupo has joined #nixos
<neonfuz> so, I can't get a local gogs service to work
vmandela has quit [Quit: Leaving]
<neonfuz> I tried services.gogs.enable = true; and it said "This binary version does not build support for SQLite3"
<neonfuz> so I added nixpkgs.config.gogs.sqliteSupport = true;
ilmu has joined #nixos
<neonfuz> did nixos-rebuild, didn't seem to rebuild the gogs service or anything
<neonfuz> and I still get that error
<neonfuz> is it somehow not noticing the nixpkgs.config.gogs.sqliteSupport = true; ?
<betawaffle> AlexRice[m]: is there an xwayland package somewhere?
<neonfuz> or hmm, am I putting this in the wrong place
<clever> neonfuz: sqliteSupport defaults to true, and must be set with .override, not config.gogs
knupfer has quit [Ping timeout: 250 seconds]
<AlexRice[m]> betawaffle: yes, it's just called xwayland
<betawaffle> maybe not in 18.09?
<neonfuz> odd, then why does my binary not support sqlite?
<neonfuz> broken nix file?
Guest20903 has quit [Read error: Connection reset by peer]
sinner has joined #nixos
vincentpants has quit [Quit: leaving]
<clever> neonfuz: what is the full storepath to your gogs binary?
sinner is now known as Guest71168
knupfer has joined #nixos
<neonfuz> s59vkr1xs9c67nchwwdmpbbappb52wn0-gogs-0.11.86-bin
<AlexRice[m]> betawaffle: I'm on unstable but would be surprised if xwayland wasn't in stable
<clever> neonfuz: yeah, that one appears to be built without gogs
<neonfuz> wtf, I didn't override it or anything
<clever> neonfuz: sqlite, i mean
<neonfuz> ik lol
<clever> neonfuz: what does `nix eval nixpkgs.lib.version` report?
<{^_^}> [nixpkgs] @rnhmjoj closed pull request #57899 → [backport] nixos/containers: create veths if only IPv6 is configured → https://git.io/fjfet
<neonfuz> "19.09pre173445.796a8764ab8"
<clever> neonfuz: sqlite is also enabled on that version...
<clever> neonfuz: can you pastebin your entire configuration.nix file?
i1nfusion has quit [Remote host closed the connection]
agander has joined #nixos
i1nfusion has joined #nixos
knupfer has quit [Ping timeout: 268 seconds]
<azazel> samueldr and all: to be more clear, I don't undersand why this https://gist.github.com/azazel75/995e2dd72a22f8293a91ff63e894fc11 fails with "error: getting attributes of path '/nixos/doc/manual/options-to-docbook.xsl': No such file or directory"? it ends up evaluating this line https://github.com/azazel75/nixops/blob/remote-libvirt/doc/manual/resource.nix#L18 with empty nixpkgs path
<neonfuz> it's a bit messy
dwdr has quit [Ping timeout: 245 seconds]
<neonfuz> I checked the other files it references, it's either secrets or just a few lines to get some hardware like my mouse properly working
waleee has quit [Quit: WeeChat 2.4]
<clever> [clever@nas:~/neonfuz]$ nix-build https://github.com/NixOS/nixpkgs/archive/796a8764ab8.tar.gz -I nixos-config=./configuration.nix -A system
<clever> neonfuz: this allows me to build the same cfg, on the same nixpkgs
<clever> oh, oops, thats the nixpkgs, not nixos path
<{^_^}> Channel nixpkgs-19.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/e0acf81725e (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-19.03-darwin)
<neonfuz__> oh hmm?
<neonfuz__> the file I uploaded?
Ariakenom has joined #nixos
<clever> typo in my cmd
<clever> [clever@nas:~/neonfuz]$ nix-build -E '(import ((builtins.fetchTarball https://github.com/NixOS/nixpkgs/archive/796a8764ab8.tar.gz) + "/nixos") {}).system' -I nixos-config=./configuration.nix
<neonfuz__> sorry switched clients btw
<clever> this will actually do what i said
<{^_^}> [nixpkgs] @r-ryantm opened pull request #58282 → ktlint: 0.30.0 -> 0.31.0 → https://git.io/fjUId
<neonfuz__> I think that might fail without my other files
<neonfuz__> which have secrets like my wifi password and latitude / longitude lol
<clever> yeah, deleting the references to them now
<clever> [clever@nas:~/neonfuz]$ nix-build -E '(import ((builtins.fetchTarball https://github.com/NixOS/nixpkgs/archive/796a8764ab8.tar.gz) + "/nixos") {}).vm' -I nixos-config=./configuration.nix
<clever> and without an fs, i have to switch to .vm
<neonfuz__> nice
<betawaffle> hmm... so, sway was working before, but now it's complaining about not being able to drop root
<betawaffle> anyone seen that before?
<clever> neonfuz: it is now building...
<clever> copying path '/nix/store/s59vkr1xs9c67nchwwdmpbbappb52wn0-gogs-0.11.86-bin' from 'http://nas.localnet:8081'...
Guest71168 has quit [Ping timeout: 250 seconds]
<clever> neonfuz: i can see that it fetched the exact same gogs build you have, which lacked sqlite
isHavvy has joined #nixos
<clever> neonfuz: now i can run `nix show-derivation /nix/store/s59vkr1xs9c67nchwwdmpbbappb52wn0-gogs-0.11.86-bin` and see the drv that built it
fendor has quit [Ping timeout: 272 seconds]
orivej has quit [Ping timeout: 250 seconds]
Havvy has quit [Ping timeout: 250 seconds]
<neonfuz__> yeah I was gonna try to look at the drv
<NemesisD> is it possible to evaluate a lib.sourceByRegex in the repl? i think i have a bug in one of my regexes
<neonfuz__> it looks like my drv includes ("buildFlags","-tags sqlite -tags pam")
<clever> neonfuz: yep
<NemesisD> and i guess by evaluate i mean fully evaluate and get a list of sources, evaluating turns into a set
<clever> neonfuz: which would imply a bug within the derivation, sqlite is enabled, yet silently not included
<neonfuz__> which is what the .nix file puts when it finds sqliteSupport
<clever> neonfuz__: i'm thinking, try a newer nixpkgs rev
<neonfuz__> yep
<neonfuz__> okay
<neonfuz__> what do you mean evaluating turns into a set exactly?
<neonfuz__> it takes the drv file, and evaluates into a set of source urls or something?
<neonfuz__> I don't understand the nix pipeline exactly
<betawaffle> interesting... it's definitely only broken when i use nixos-unstable
linarcx1 has quit [Quit: WeeChat 2.4]
<{^_^}> [nixpkgs] @Ma27 pushed to release-19.03 « citrix_receiver: remove old versions »: https://git.io/fjUIj
<{^_^}> [nix] @edolstra merged pull request #1828 → Add isPath primop → https://git.io/vN5PE
<{^_^}> [nix] @edolstra pushed 2 commits to master: https://git.io/fjULe
Erasmus has quit [Read error: Connection reset by peer]
linarcx has joined #nixos
zupo_ has joined #nixos
dejanr has joined #nixos
<{^_^}> Channel nixos-19.03 advanced to https://github.com/NixOS/nixpkgs/commit/23fd1394dc6 (from 20 hours ago, history: https://channels.nix.gsc.io/nixos-19.03)
zupo has quit [Ping timeout: 272 seconds]
<dejanr> hi anyone here familiar with thinkpad cpu throttling issues, i am looking for something like this for NixOS https://github.com/erpalma/throttled
<ldlework> hmm, the dep2nix README doesn't have quite enough information for me to piece together how to use it
<dejanr> i tried with workaround from https://github.com/NixOS/nixos-hardware but doesn't seem to work
silver_ has joined #nixos
<dejanr> i am particulary interested in t480 solutions
silver has quit [Read error: Connection reset by peer]
samrose has joined #nixos
<srhb> dejanr: Maybe you can try and see if just undervolt is sufficient to fix your troubles?
pie_ has quit [Ping timeout: 272 seconds]
<ldlework> I have this so far but it says undefined variable `goPackages`: https://gist.github.com/dustinlacewell/3fb94e4ad3590a39f30701e2a4e7dbb8
<{^_^}> [nixpkgs] @dylex opened pull request #58283 → fetchurl: use fetchurlBoot for zlib deps → https://git.io/fjULm
<srhb> ldlework: There is no goPackages.
<ldlework> but i read a blog and copy pasted, so it should work
<srhb> ldlework: ;)
<srhb> All evidence points to the contrary, I'm afraid.
<infinisil> ldlework: Link to blog?
<srhb> goPackages did exist way back.
<srhb> It disappeared in 16.09 iirc.
<AlexRice[m]> betawaffle: my sway is working fine from nixos-unstable, what error are you getting?
<betawaffle> starting it from root, it tries to drop root, but fails
halfbit has joined #nixos
<genesis> domenkozar : do u plan to update poedit ?
<ldlework> :)
<ldlework> srhb: what do I change!?
<srhb> ldlework: Why don't you check a recent go derivation first? :)
<srhb> Happy to help after that.
<srhb> ldlework: I suggest: nix edit nixpkgs.gosu
ixxie has quit [Ping timeout: 250 seconds]
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<NemesisD> how could i combine multiple calls to sourceByRegex?
<ldlework> infinisil: thanks homie
<AlexRice[m]> betawaffle: does it work when not run from root
<infinisil> NemesisD: No idea, but maybe you're interested in #56985
<{^_^}> https://github.com/NixOS/nixpkgs/pull/56985 (by nh2, 2 weeks ago, open): sources: Add explicitFilterSource
<{^_^}> [nixpkgs] @bgamari opened pull request #58284 → nixos/gitlab: Package gitlab-rails → https://git.io/fjULr
agander has quit [Ping timeout: 250 seconds]
<NemesisD> infinisil: i need some files from ../frontend and ../test, i can't for the life of me figure out how to make this work: `sourceByRegex ../. ["^frontend/.*", "^test/.*"]`, it seems like regexes with path slashes in them just doesn't work
<infinisil> NemesisD: Ahh, you need to add a regex for the directory itself too
<neonfuz__> clever: maybe tags need to be passed in together? like -tags "sqlite pam" rather than -tags sqlite -tags pam
<infinisil> NemesisD: It will only descend into a directory if the directory itself matches too
<clever> neonfuz__: check the go docs
<neonfuz__> yah
<NemesisD> infinisil: meaning the name of ../. ? e.g. `my-project`?
<infinisil> NemesisD: I mean "^frontend" should be in the list of regexes
<infinisil> Or something like that, without the slash
<samrose> anyone happen to know what the default logrotate settings are on journald in nixos 18.09?
<infinisil> NemesisD: explicitFilterSource would make that much more intuitive
<samrose> I only see a ratelimit in my /etc/systemd/journald.conf
<NemesisD> infinisil: so say i just want `../test/data`, i would do sourceByRegex ../. ["^test$", "^test/data/.*"] or something?
<samrose> but it appears the logs are actually rotated for journal already
<infinisil> NemesisD: Um maybe? Not entirely sure
<NemesisD> sourceByRegex kinda sucks. it seems like explicitFilterSource isn't in the code yet
<infinisil> NemesisD: Yeah, but you could try it out regardless
<infinisil> NemesisD: If you do I'd love if you could give the PR an accepting review so we know you'd like it to be merged too :)
<neonfuz__> oh crap clever , that nix eval version was wrong too btw
<neonfuz__> because I didn't run it as sudo
<NemesisD> i don't know if i have time, i've burned all morning on this
<neonfuz__> I use a different channel for my user nix-env
<neonfuz__> in any case I think it may still be broken in the latest version
<infinisil> NemesisD: inherit (import (fetchTarball "https://github.com/nh2/nixpkgs/archive/d20e5d2671676526446a97060005787a7dc5e390.tar.gz" + "/lib")) explicitFilterSource;
Lears has quit [Remote host closed the connection]
<infinisil> NemesisD: You can use this line in one of your let in's to get explicitFilterSource in scope
<infinisil> If you wanna give it a go
Lears has joined #nixos
<NemesisD> infinisil: didn't realize it was so easy to vendor. i'll give it a try in a minute
<srhb> neonfuz__: Latest is what in this case?
<lassulus> anybody know how I can set "enableTun" with imperative nixos-containers?
<neonfuz__> srhb: gogs
<neonfuz__> oh specifically gogs sqlite support
<goibhniu1> lassulus: I've been patching nixpkgs manually for that. I wonder if it can be done with an overlay though, or if there's a nicer way.
<srhb> neonfuz__: How are you checking whether there's sqlite support? The install page?
<neonfuz__> it's failing to start logging that it's not built with sqlite3 support
sinner has joined #nixos
<neonfuz__> I'm trying reverting to the commit before they added PAM because I think adding the second -tags may have silently broken sqlite
sinner is now known as Guest86592
<srhb> neonfuz__: It does look weird.
<lassulus> goibhniu1: can I have a look at your patch?
<goibhniu1> lassulus: This is what I do to change the DevicePolicy: http://sprunge.us/ng3gOe
<neonfuz__> how would I go about making modifications to this .nix file and then testing it on my system as a system service?
<neonfuz__> usually I test packages with nix-shell or installing them with nix-env -f -i
ixxie has joined #nixos
mekeor has joined #nixos
srid has quit [Read error: Connection reset by peer]
<srhb> neonfuz__: You can override NIX_PATH to point at your checkout eg.
srid has joined #nixos
<neonfuz__> ah cool thanks
agander has joined #nixos
<{^_^}> Channel nixos-19.03-small advanced to https://github.com/NixOS/nixpkgs/commit/e0acf81725e (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-19.03-small)
wfranzini has joined #nixos
<{^_^}> [nixpkgs] @elasticdog opened pull request #58285 → ansible: 2.7.8 -> 2.7.9 → https://git.io/fjUte
bemeurer has joined #nixos
<goibhniu1> lassulus: to be clear, this is for the problem where starting a VPN fails because you're not allowed to create the tun device in an container (just in case you're actually asking about something else)
<{^_^}> [nixpkgs] @elasticdog opened pull request #58286 → ansible: 2.6.9 -> 2.6.15 → https://git.io/fjUtv
<neonfuz__> confirmed, it's commit fb7770b8439521c2a6aede7d4162c32d86c2659d that broke gogs sql
<neonfuz__> sqlite*
<lassulus> yeah, i have the same problem with tinc
<goibhniu1> lassulus: for reference, here's the relevant issue https://github.com/NixOS/nixpkgs/issues/18708
<{^_^}> #18708 (by wlhlm, 2 years ago, open): OpenVPN not working inside container
linarcx has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @elasticdog opened pull request #58287 → ansible: 2.5.14 -> 2.5.15 → https://git.io/fjUtJ
<srhb> neonfuz__: Bizarre. Does it not like -tags being specified twice?
<samrose> ok if anyone searches for this in irc archives: I found that if systemd defaults are being used in nixos, SystemMaxUse defaults to 10% of the system with a cap of 4GB (how much max space journal can use up at most) SystemMaxFiles defaults to max 100 indivudal files
<neonfuz__> that was my guess
<neonfuz__> I checked out the commit before and after, and the one after lacked sqlite support
<neonfuz__> checked out and built
<srhb> neonfuz__: To be extra sure you probably need to be on master/nixos-unstable and _revert_ the commit
<srhb> But I already did this, and you're right.
<neonfuz__> I'll try when I'm not on limited data
<srhb> No need :)
<neonfuz__> tfw satalite internet
i1nfusion has quit [Remote host closed the connection]
i1nfusion has joined #nixos
<srhb> neonfuz__: The last -tags looks to take effect. Probably needs some buildFlagsArray
<neonfuz__> yeah
<neonfuz__> you working on a patch? otherwise I could
<srhb> neonfuz__: If you want to, I'll let you. :-)
<neonfuz__> I mean tbh I'm not extremely comfortable with nix when it comes to things like manipulating these lists or whatever
<neonfuz__> either way really
silver_ is now known as silver
mariel__ has quit [Ping timeout: 255 seconds]
<srhb> neonfuz__: Me neither :-)
fresheyeball has joined #nixos
<srhb> Go ahead.
<neonfuz__> alright lol
pie_ has joined #nixos
alex`` has quit [Ping timeout: 246 seconds]
alex`` has joined #nixos
halfbit has quit [Quit: WeeChat 2.4]
<{^_^}> [nixpkgs] @SomeDer opened pull request #58289 → init: colorls at 1.1.1 → https://git.io/fjUti
fresheyeball has quit [Quit: WeeChat 2.2]
jomik has joined #nixos
<jomik> I am trying to override neovim to get the nightly build. https://github.com/NixOS/nixpkgs-channels/blob/nixos-unstable/pkgs/applications/editors/neovim/default.nix#L22 It says that I am trying to call something which is not a function, but a set.. https://gist.github.com/Jomik/3739e8c351595e719db0b1df0e8ef56f
<benley> whoa sweet my "declarative docker containers as systemd services" PR got merged!
domogled has quit [Ping timeout: 245 seconds]
drakonis has joined #nixos
HappyEnt has quit [Quit: ERC (IRC client for Emacs 26.1)]
wfranzini has quit [Remote host closed the connection]
domogled has joined #nixos
dermetfan has joined #nixos
dermetfan has quit [Client Quit]
<infinisil> benley: \o/
srk has quit [Ping timeout: 268 seconds]
<benley> \o/
<benley> I wasn't sure if that was going to end up needing to go through the PR process or what
drakonis_ has quit [Ping timeout: 250 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
<infinisil> the RFC process?
<benley> errr yes, the RFC process
olovnatejsie has quit [Ping timeout: 258 seconds]
<benley> moments ago I misspelled "Grafana" as "nginx". Spelling is hard :-P
pointfourone has joined #nixos
srk has joined #nixos
<{^_^}> [nixpkgs] @dywedir merged pull request #58258 → buildRustCrate: Fix `include` filter → https://git.io/fjUfu
<{^_^}> [nixpkgs] @dywedir pushed 2 commits to master: https://git.io/fjUtQ
hexo has joined #nixos
domogled has quit [Client Quit]
adetokunbo has quit [Quit: This computer has gone to sleep]
zupo_ has quit [Ping timeout: 244 seconds]
<srhb> jomik: ....overrideAttrs (oldAttrs: { ...
rycwo has quit [Ping timeout: 240 seconds]
<jomik> srhb: Oh god... I forget :joy: Thank you!
fendor has joined #nixos
<{^_^}> [nixpkgs] @neonfuz opened pull request #58290 → gogs: fixed buildtime tags bug → https://git.io/fjUtj
wfranzini has joined #nixos
agander has quit [Ping timeout: 246 seconds]
jomik has quit [Quit: WeeChat 2.4]
fenedor has joined #nixos
<gchristensen> it'd be neat if that fn detected it wasn't a fn and just assumed it didn't need to be one
<rycee> jomik: The `nur-updates` is the name I chose for the access token I created for the https://gitlab.com/rybot user
<rycee> jomik: Under the "Personal Access Tokens" tab in the user settings.
hamishmack has joined #nixos
pie_ has quit [Ping timeout: 268 seconds]
zupo has joined #nixos
<{^_^}> [nixos-hardware] @Mic92 merged pull request #103 → pcengines/apu: expose GRUB over serial → https://git.io/fjJ65
<{^_^}> [nixos-hardware] @Mic92 pushed 2 commits to master: https://git.io/fjUq8
domogled has joined #nixos
<infinisil> gchristensen: I think `.override` does that too
<gchristensen> nice
<infinisil> > hello.override { stdenv = pkgs.clangStdenv; }
<{^_^}> "<derivation /nix/store/d3y7g3vv8dzsc2qjisahnr01ivq7qq7n-hello-2.10.drv>"
<infinisil> > hello.override (old: { stdenv = pkgs.clangStdenv; })
<{^_^}> "<derivation /nix/store/d3y7g3vv8dzsc2qjisahnr01ivq7qq7n-hello-2.10.drv>"
<infinisil> Yee
jasongrossman has quit [Ping timeout: 268 seconds]
goibhniu1 has quit [Ping timeout: 246 seconds]
goibhniu1 has joined #nixos
o1lo01ol1o has joined #nixos
Xyliton has joined #nixos
<Xyliton> Has anyone managed to install bluej on their nixos system?
vk3wtf has joined #nixos
<dejanr> srhb: upgraded bios and seems to work now
civodul has joined #nixos
rcshm has joined #nixos
jasongrossman has joined #nixos
<neonfuz__> so I just did a PR without making an issue
<neonfuz__> should I make an issue? or is that unnecessary
drakonis1 has joined #nixos
ym555 has quit [Ping timeout: 245 seconds]
<srhb> neonfuz__: PR is fine, but will that work if both are disabled?
rcshm has quit []
knupfer has joined #nixos
<neonfuz__> I tried it with both set to false as default and it worked
<neonfuz__> like modified the lines up top to say false
<srhb> That's interesting..
<neonfuz__> yeah... maybe it's not the best
ym555 has joined #nixos
<neonfuz__> I had a thing with an if before, but I was running into syntax shit I couldn't figure out
<neonfuz__> was complaining about a partially applied function, idk
<srhb> Hm, can I make a suggestion then..
<neonfuz__> was using string concatenating functions and stuff
justanotheruser has joined #nixos
<neonfuz__> sure?
bemeurer has quit [Quit: WeeChat 2.4]
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
<neonfuz__> see the thing is
jasongrossman has quit [Ping timeout: 245 seconds]
zupo has quit [Ping timeout: 250 seconds]
<neonfuz__> I have another idea
<{^_^}> [nixpkgs] @r-ryantm opened pull request #58291 → libdazzle: 3.30.2 -> 3.32.0 → https://git.io/fjUmv
zupo has joined #nixos
rycwo has joined #nixos
Xyliton has quit [Quit: Lost terminal]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #58292 → libebml: 1.3.6 -> 1.3.7 → https://git.io/fjUmt
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/9e693a074d0 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<{^_^}> [nixpkgs] @jtojnar closed pull request #58291 → libdazzle: 3.30.2 -> 3.32.0 → https://git.io/fjUmv
<{^_^}> [nixpkgs] @r-ryantm opened pull request #58293 → libextractor: 1.8 -> 1.9 → https://git.io/fjUmZ
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
<neonfuz__> anyone see what I'm doing wrong here?
<neonfuz__> working on build flags still, line 30 ish
<srhb> neonfuz__: You're better off using a bash array when dealing with spaces here.
<srhb> setting buildFlagsArray from within that prebuild
<neonfuz__> this is why I just used the buildFlagsArray
<neonfuz__> because it was doing that
<srhb> Yeah...
<neonfuz__> is that [@] a bash thing?
<srhb> Yes.
<neonfuz__> alright makes sense
<neonfuz__> so yeah, that really is why I did that
<neonfuz__> I didn't know it was a bash thing though
<{^_^}> [nixpkgs] @r-ryantm opened pull request #58294 → libgdiplus: 5.6 -> 5.6.1 → https://git.io/fjUmR
<neonfuz__> I'm not sure if buildFlagsArray is supposed to be used like this, but it works well and is actually correct unlike the current .nix file
<{^_^}> [nixpkgs] @eadwu opened pull request #58295 → vscode-extensions.ms-vscode.cpptools: 0.21.0 -> 0.22.1 → https://git.io/fjUmu
<{^_^}> [nixpkgs] @eadwu opened pull request #58296 → linux_testing_bcachefs,bcachefs-tools: 2019-03-24 → https://git.io/fjUmz
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
drakonis1 has quit [Quit: WeeChat 2.3]
<srhb> neonfuz__: The thing I dislike most is that it seems incidental that buildFlags and buildFlagsArray interact correctly in this case.
<srhb> But yes, it technically works.
<betawaffle> AlexRice[m]: it sort of worked, but i've changed some thing since then, it might work better now
<neonfuz__> lmao
<srhb> neonfuz__: Er, sorry, that came out wrong...
<neonfuz__> honestly it's a bit... implementation dependent maybe
<srhb> Yeah.. :)
<srhb> I really think preBuild and then a bash array looks cleaner. There's precedence for this as well
drakonis_ has joined #nixos
<srhb> neonfuz__: See eg. pkgs/tools/networking/dd-agent/6.nix -- where the tags list is hardcoded, granted, but that model is simple to understand with a concatStringsSep " " tags
Makaveli7 has quit [Quit: Leaving]
<infinisil> I wonder how a mkDerivation redo would look like
<srhb> infinisil: More builder logic, more passing via json?
<infinisil> I want it to better integrate with running the build from nix-shell
drakonis has quit [Ping timeout: 250 seconds]
<infinisil> And less confusing phases, less of that prePhase/postPhase thing
<srhb> I like the pre/postphases :(
<srhb> But maybe with more dynamic hooks..
o1lo01ol1o has quit [Remote host closed the connection]
ambro718 has quit [Ping timeout: 250 seconds]
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #58298 → libinput: 1.12.6 -> 1.12.901 → https://git.io/fjUmy
<infinisil> srhb: I mean the thing about pre/postX not running when you override X
<srhb> aah.
<srhb> Yes, that is indeed confusing.
<srhb> Maybe they should just be phases themselves instead of hooks..
<samueldr> the idea is to add/remove pre/post by simply adding or removing their attached phase I think
drakonis_ has quit [Ping timeout: 240 seconds]
jbgi has quit [Ping timeout: 250 seconds]
<infinisil> That on the other hand seems to make sense
<infinisil> How about having a dependency graph thing instead, where you can say that "This phase must run after this one and before that one"
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<infinisil> And we could add stuff like ".. and needs that file to run successfully"
<infinisil> Or " only runs on this architecture"
<infinisil> Although, that feels like it's going towards a makefile
<samueldr> might be a tad too much abstract to think about
<samueldr> I'm thinking such an endeavour would be better taken by actively trying to make something like a borfpkgs using stdenv.mkDerivationTwoPointOh
<samueldr> ;)
<infinisil> borf?
<samueldr> (try and fail, retry and refail?)
<srhb> borgpkgs :3
<samueldr> I wasn't sure you read that silly thing the other night
<infinisil> Ohh, retrying phases sounds interesting, although dangerous too
<srhb> Hey, who are you calling silly. :P
<samueldr> oh, I was thinking trying to implement a mkDerivation, and failing to implement one, then retrying and maybe do it!
<infinisil> Ahh yes that sounds good too
<samueldr> I'm sure there are numerous design decisions that aren't obvious
<infinisil> Like?
<samueldr> no idea, they aren't obvious!
<samueldr> (sorry if this is unhelpful)
<rnhmjoj> do you know whether nixos updates the hardware clock before shutdown?
<infinisil> I guess the whole buildInputs with cross comp stuff
rprije has joined #nixos
<infinisil> What I also find a bit weird on mkDerivation is how it's ready-to-go for a standard C project by default
<infinisil> I'd rather have this be a thing you need to add yourself
Shouou has joined #nixos
<samueldr> you see C, but I hear [./configure]; make; make install
<samueldr> :)
<samueldr> (though your point mostly stands)
vk3wtf has quit [Ping timeout: 250 seconds]
<infinisil> How about having a mkDerivationTwoPointOh which has an option `buildType = [ "rust" "c" "node" ]` which could be used to specify what builders it needs. This would replace the non-modular `buildRustPackage`, etc.
<samueldr> it sure would be a better experience to start every derivation with stdenv.mkDerivation
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<samueldr> and those additional behaviours be "plugged-in"
<infinisil> Give that stdenv is pretty much the C stuff, it could be `pkgs.mkDerivation` directly even
<fendor> trying to install an exe with cabal that depends on zlib. Cant figure out a way to make cabal/ghc be aware of zlib? tried nix-shell -p ghc zlib --run 'cabal new-install hoogle' and similar stuff
knupfer has quit [Ping timeout: 268 seconds]
<fendor> all fail because of a missing zlib
<infinisil> Or hell, why even `mkDerivation`, let's call it `pkgs.build`
<infinisil> I'll probably experiment with this in the future
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @jtojnar pushed 2 commits to gnome-3.32: https://git.io/fjUYk
Ariakenom has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #58299 → liblo: 0.29 -> 0.30 → https://git.io/fjUYt
<{^_^}> [nixpkgs] @jtojnar pushed to gnome-3.32 « arc-theme: fix build »: https://git.io/fjUYY
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol_ has joined #nixos
jackdk has joined #nixos
vk3wtf has joined #nixos
<neonfuz__> srhb: got busy with some stuff, also just noticed your suggestion
<neonfuz__> somehow got eaten by my irc client before I think
orivej has joined #nixos
<neonfuz__> I like that suggestion, I was actually looking for let blocks but I tried to do them haskell style (after, and without in) so it didn't work lol
<neonfuz__> been a bit since I've been far into nix syntax
<{^_^}> [nixpkgs] @dywedir opened pull request #58300 → broot: 0.7.2 -> 0.7.4 → https://git.io/fjUYZ
realrokka has quit [Ping timeout: 255 seconds]
<srhb> neonfuz__: Ah sorry, should have been more obvious about it at posted it on github :P
erasmas has quit [Quit: leaving]
<{^_^}> [nixpkgs] @jtojnar pushed to gnome-3.32 « fixup! gnome3.gnome-weather: 3.26.0 -> 3.32.0 »: https://git.io/fjUYB
rycwo has quit [Ping timeout: 255 seconds]
realrokka has joined #nixos
pie_ has joined #nixos
ddellacosta has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @jtojnar pushed to gnome-3.32 « fixup! gnome3.gpaste: 3.30.2 -> 3.32.0 »: https://git.io/fjUYr
fendor has quit [Remote host closed the connection]
ddellacosta has joined #nixos
o1lo01ol_ has quit [Remote host closed the connection]
pie_ has quit [Ping timeout: 245 seconds]
rcshm has joined #nixos
<{^_^}> [nixpkgs] @hedning pushed 2 commits to gnome-3.32: https://git.io/fjUYi
<{^_^}> [nixpkgs] @r-ryantm opened pull request #58301 → libmanette: 0.2.1 -> 0.2.2 → https://git.io/fjUYP
jtojnar has joined #nixos
<{^_^}> [nixpkgs] @veprbl merged pull request #57325 → vscode-extensions.WakaTime.vscode-wakatime: 1.2.7 -> 1.2.13 → https://git.io/fhjfp
<{^_^}> [nixpkgs] @veprbl pushed 2 commits to master: https://git.io/fjUYb
<{^_^}> [nixpkgs] @jtojnar closed pull request #58301 → libmanette: 0.2.1 -> 0.2.2 → https://git.io/fjUYP
Shouou has quit [Quit: Leaving]
<neonfuz__> srhb: do you know why this wouldn't work?
<{^_^}> [nixpkgs] @r-ryantm opened pull request #58302 → liblouis: 3.5.0 -> 3.9.0 → https://git.io/fjUYx
<neonfuz__> oh god
<neonfuz__> err
<neonfuz__> idk
<infinisil> Um, is that the right paste?
<infinisil> Oh
<neonfuz__> oops...
<neonfuz__> no I was in wrong directory
<neonfuz__> lines 30 - 35 is what I wrote
<neonfuz__> errors out with flag provided but not defined: -tags pam sqlite
<infinisil> What are you trying to achieve?
<{^_^}> [nixpkgs] @r-ryantm opened pull request #58303 → libofx: 0.9.13 -> 0.9.14 → https://git.io/fjUOf
<infinisil> It might help using `nix repl` to try out stuff
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
rcshm has quit []
drakonis_ has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #58304 → libpipeline: 1.5.0 -> 1.5.1 → https://git.io/fjUOI
<{^_^}> [nixpkgs] @jtojnar pushed to gnome-3.32 « perlPackages.Glib: 1.328 → 1.329 »: https://git.io/fjUOq
<genesis> jtojnar is a great reviewer :)
<jackdk> suppose I'm writing a derivation that takes a single file (not compressed) as source. how do I tell stdenv to skip trying to unpack it?
<jtojnar> jackdk: unpackPhase = ":";
<jackdk> jtojnar++
<{^_^}> jtojnar's karma got increased to 10
<jtojnar> true instead of : will also work
<jackdk> I was trying to use unpackPhase = ""
<jackdk> yeah that makes sense
hphhphhphhphhphh has quit []
<genesis> jtojnar i think i fix all stuff donno if you've be noticed https://github.com/NixOS/nixpkgs/pull/44505
<{^_^}> #44505 (by bignaux, 33 weeks ago, open): [WIP] gscrabble : init at 2019-03-11
<{^_^}> [nixpkgs] @illegalprime opened pull request #58305 → dhcp: cross compile → https://git.io/fjUOl
alex`` has quit [Ping timeout: 246 seconds]
alex`` has joined #nixos
domogled has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #58306 → libsodium: 1.0.16 -> 1.0.17 → https://git.io/fjUOR
Anton-Latukha has quit [Quit: Leaving.]
<dsx> Considering this https://pastebin.com/HKHdMtm2, how do I add my overlay to replace default pkgs.kubernetes with mine?
<infinisil> dsx: `import <nixpkgs> {}` -> `import <nixpkgs> { overlays = [ (self: super: { kubernetes = ...; }) ]; }`
kvda has joined #nixos
<dsx> oh!
fenedor has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @jtojnar pushed to gnome-3.32 « mikutter: mark as broken »: https://git.io/fjUOa
pie_ has joined #nixos
<dsx> infinisil: thank you!
__monty__ has quit [Quit: leaving]
<neonfuz__> infinisil: ah yeah, nix repl
<neonfuz__> been intermittedly busy, sry
<{^_^}> [nixpkgs] @r-ryantm opened pull request #58307 → libssh: 0.8.5 -> 0.8.7 → https://git.io/fjUO6
<{^_^}> [nixpkgs] @jtojnar pushed to gnome-3.32 « ntrack: try to fix build »: https://git.io/fjUOP
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
m0rphism has quit [Ping timeout: 250 seconds]
pie_ has quit [Ping timeout: 255 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #58308 → libtermkey: 0.20 -> 0.22 → https://git.io/fjUOM
Rusty1 has quit [Quit: Konversation terminated!]