<nekroze>
has anyone had any success using nixops network arguments and disnix tests? It appears that disnix assumes the network file is a set but when using nixops network arguments the network file is a function that takes those arguments so there is type failure preventing the tests from running
imalsogreg has quit [(Quit: ZNC 1.6.2 - http://znc.in)]
phinxy has quit [(Quit: Leaving)]
eacameron has joined #nixos
vaibhavsagar has quit [(Ping timeout: 260 seconds)]
ebzzry has quit [(Ping timeout: 248 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz pushed 1 new commit to master: https://git.io/vQi72
spinus has quit [(Read error: Connection reset by peer)]
vaibhavsagar has joined #nixos
spinus has joined #nixos
<cheshircat>
I have a strange problem -- when I compile something with "cabal build" it takes a really long time, and in top it shows bash taking 100% CPU. Has anyone encountered something like this before?
hellrazo1 has joined #nixos
<cheshircat>
specifically, the command is /nix/store/wb34dgkpmnssjkq7yj4qbjqxpnapq0lw-bash-4.4-p12/bin/bash -e /nix/store/3k978nnp7ppjim34di40vwz5f95rsxhw-gcc-wrapper-5.4.0/bin/cc @/tmp/ghc28943_0/ghc_30.rsp
<cheshircat>
I'm not sure if this is a haskell question or a nixos question, I'm going to try both channels
Supersonic112 has quit [(Disconnected by services)]
Supersonic112_ has joined #nixos
Supersonic112_ is now known as Supersonic112
<spinus>
cheshircat: yes, sure, compilation takes a moment
<chominist[m]>
localectl cannot load keymaps, any idea on how to fix?
<cheshircat>
spinus: you're funny
koserge has quit [(Ping timeout: 248 seconds)]
<spinus>
I'm not trying be rude, really, haskell stuff can take a moment
<spinus>
what are you compiling?
eacameron has quit [(Remote host closed the connection)]
<nekroze>
\quit
nekroze has quit [(Quit: leaving)]
<spinus>
chominist[m]: what's the error?
Mateon1 has quit [(Ping timeout: 240 seconds)]
<cheshircat>
I'm compiling a yesod app. It's not so much that it overall takes so long; that I wouldn't worry about. It's that each individual file takes a while, and it didn't use to take that long
<cheshircat>
at least, when I worked on it a month ago, it probably was 10x faster
<cheshircat>
the helpful folks over at #haskell say that it may be a linking thing
<radvendii>
does anyone else have chromium.enableWideVine not working on unstable?
<radvendii>
It seems to be failing to find some libraries
<cheshircat>
radvendii: why don't you just use google chrome
<spinus>
hmm, but linking usually happens at the end, not sure if that affects single files
<cheshircat>
oh, that's a good point
<spinus>
have any vm in the background?
<radvendii>
nope
eacameron has joined #nixos
<cheshircat>
No, no vm
Mateon1 has joined #nixos
<spinus>
cheshircat: are you running same nixpkgs? maybe something changed in infra
Thra11 has joined #nixos
<cheshircat>
yeah, I'm not running the same nixpkgs as a month ago
radvendii has quit [(Quit: WeeChat 1.9)]
<spinus>
try
lambdamu has joined #nixos
<cheshircat>
try running the same nixpkgs?
lambdamu_ has quit [(Ping timeout: 240 seconds)]
<spinus>
sure
<spinus>
something like NIX_PATH=nixpkgs=path/to/repo/with/old/version nix-build your-stuff.nix
<cheshircat>
I haven't changed anything with a .nix extension
<cheshircat>
I'm running cabal-build with a globally installed ghcWithHoogle
<cheshircat>
*cabal build
<spinus>
ah
s33se_ has joined #nixos
s33se has quit [(Ping timeout: 240 seconds)]
mbrgm has quit [(Ping timeout: 260 seconds)]
mbrgm has joined #nixos
romildo has joined #nixos
roconnor has quit [(Ping timeout: 240 seconds)]
roconnor has joined #nixos
ryanartecona has joined #nixos
romildo has quit [(Quit: Leaving)]
dbmikus has joined #nixos
ison111_ has quit [(Quit: WeeChat 1.7.1)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] peterhoeg pushed 1 new commit to master: https://git.io/vQibM
<NixOS_GitHub>
nixpkgs/master 4dd55c1 Peter Hoeg: syncthing: 0.14.30 -> 0.14.31
NixOS_GitHub has left #nixos []
contrapumpkin has quit [(Quit: My MacBook Pro has gone to sleep. ZZZzzz…)]
contrapumpkin has joined #nixos
ryanartecona has quit [(Quit: ryanartecona)]
spinus has quit [(Ping timeout: 240 seconds)]
Wizek_ has quit [(Ping timeout: 268 seconds)]
elninja44 has quit [(Remote host closed the connection)]
nekroze has joined #nixos
zraexy has joined #nixos
<nekroze>
it looks like disnixos test generator module has a switch for nixops (which I need to for testing my nixops deployment) but the interface where you define the tests does not have a nixops switch to pass through. What is the correct way to make a disnixos test use nixOpsModel?
schoppenhauer has quit [(Ping timeout: 248 seconds)]
heath is now known as ybit2
ybit2 is now known as ybit
schoppenhauer has joined #nixos
roconnor has quit [(Ping timeout: 240 seconds)]
ison111 has joined #nixos
ybit is now known as ybit2
yegortimoshenko has joined #nixos
justelex_ has joined #nixos
justelex_ has quit [(Ping timeout: 248 seconds)]
justelex_ has joined #nixos
magnetophon1 has quit [(Ping timeout: 248 seconds)]
yegortimoshenko has quit [(Remote host closed the connection)]
yegortimoshenko has joined #nixos
nekroze has quit [(Quit: leaving)]
justelex_ has quit [(Ping timeout: 276 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] MP2E pushed 1 new commit to master: https://git.io/vQipB
<olejorgenb>
maybe a stupid question but the nixpkgs manal suggest to base branches off nixos-version commit: when i do that I find that this commit is not an ancestor of master? Is the release channels sometimes mutated such that this is expected?
<olejorgenb>
ie. `git rev-list master | grep 72c9ed78d0` is empty
<olejorgenb>
where 72c9ed78d0 comes from `nixos-version` (or ~/.nix-defexpr/channels_root/nixos/svn-revision)
sophiag has joined #nixos
alx741_ has quit [(Quit: alx741_)]
vaibhavsagar has quit [(Ping timeout: 255 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] olejorgenb opened pull request #27271: Nix zsh completions update and add missing version to name (master...nix-zsh-completions-update+fix) https://git.io/vQijf
NixOS_GitHub has left #nixos []
eacameron has quit [(Remote host closed the connection)]
eacameron has joined #nixos
ebzzry has quit [(Ping timeout: 260 seconds)]
freusque has joined #nixos
ebzzry has joined #nixos
<srhb>
olejorgenb: Probably it has been cherry picked from master with a different hash
<srhb>
olejorgenb: And indeed, if I check nixos-17.03 and ask fo the logs for 72c9ed, I get: (cherry picked from commit d88c0cf8678c7accbd95010bb20ea0812a48bac5)
eacameron has quit [(Ping timeout: 240 seconds)]
<olejorgenb>
srhb: thanks, that's what I figured. Maybe a note should be added to the manual?
ryanartecona has joined #nixos
<srhb>
olejorgenb: Sounds like a good idea, I don't think it's described there.
<olejorgenb>
I'll attempt a PR
<srhb>
olejorgenb: Great! :-)
magnetophon1 has joined #nixos
filterfish_ has quit [(Remote host closed the connection)]
filterfish_ has joined #nixos
endformationage has quit [(Quit: WeeChat 1.7)]
marsel has joined #nixos
DrWaste has joined #nixos
hamishmack has quit [(Quit: hamishmack)]
vaibhavsagar has joined #nixos
yegortimoshenko has quit [(Ping timeout: 240 seconds)]
<NixOS_GitHub>
nixpkgs/master 5160ae5 Taeer Bar-Yam: libargon2: init at 20161029
<NixOS_GitHub>
nixpkgs/master b6d0c1e Jörg Thalheim: libargon2: do not override pre/postInstall hook
NixOS_GitHub has left #nixos []
DutchWolfie has joined #nixos
DutchWolfie has quit [(Changing host)]
DutchWolfie has joined #nixos
thc202 has joined #nixos
ebzzry has quit [(Ping timeout: 240 seconds)]
mudri has quit [(Ping timeout: 240 seconds)]
arianvp2 has quit [(Quit: arianvp2)]
ertes has quit [(Ping timeout: 260 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] asppsa opened pull request #27273: jruby: changes to make it possible to use in development environment (master...jruby-gem-fix) https://git.io/vQPLB
NixOS_GitHub has left #nixos []
civodul has joined #nixos
mudri has joined #nixos
orivej has joined #nixos
hyphon81 has quit [(Remote host closed the connection)]
<NixOS_GitHub>
[nixpkgs] qknight opened pull request #27276: postfix: complete remake of postfix service (master...postfix_redone) https://git.io/vQPmZ
NixOS_GitHub has left #nixos []
<srhb>
When is hardware.trackpoint.speed reloaded? Only on boot?
<srhb>
Perhaps this is the wrong way to configure mouse speed
<clever>
srhb: and there is an activation script to reload it every time you run "nixos-rebuild switch" or "nixos-rebuild test"
arianvp2 has quit [(Read error: Connection reset by peer)]
arianvp2 has joined #nixos
<srhb>
clever: Oh, I see what's going on. It reconfigured the internal trackpoint on my laptop, which is docked, but didn't change anything for my usb keyboard's trackpoint.
<clever>
ahh
<clever>
adding a similiar rule, that matches the name of the external one might work
<srhb>
clever: I'll see if I can figure that out.
koserge has joined #nixos
Wizek_ has joined #nixos
<clever>
srhb: id check "udevadm monitor" first, while plugging in the external trackpad, to find its udev path
mudri has quit [(Ping timeout: 260 seconds)]
<clever>
srhb: then there is a query command somewhere in google, that tells you every attribute you can match against in udev
<srhb>
clever: Thanks. :)
<clever>
ive done crazy things with udev before
<clever>
for example, a different usb mouse in every room, and using udev rules to detect which one it is
ThatDocsLady has joined #nixos
<clever>
which then automaticaly reconfigures the screen layout in synergy, so it knows which desktop is to the left/right of the laptop
__Sander__ has joined #nixos
nslqqq has quit [(Ping timeout: 260 seconds)]
magnetophon has quit [(Ping timeout: 260 seconds)]
Christian[m]1 has left #nixos ["User left"]
fpletz[m] has left #nixos ["User left"]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vQP3B
<NixOS_GitHub>
nixpkgs/master c060b87 Roman Volosatovs: Mopidy-iris: init at 3.0.0 (#26518)
NixOS_GitHub has left #nixos []
nslqqq has joined #nixos
johnw_ has quit [(Read error: Connection reset by peer)]
Ivanych has quit [(Ping timeout: 246 seconds)]
<srhb>
clever: Magic! :-P
arianvp2 has quit [(Read error: Connection reset by peer)]
arianvp2 has joined #nixos
<LnL>
clever: that's awesome!
<srhb>
Hmm. I can find events related to plugging in the entire keyboard, but I'm not sure what kind of atttribute name I should be looking for
<srhb>
Maybe that's not how USB hids work at all
<srhb>
Though I would expect a mouse device note to be a tell.
<Dezgeg>
it could be a composite usb device, so probably would show up only as one on the usb layer
<srhb>
I guess it is. Hmm
k2s has joined #nixos
k2s has quit [(Client Quit)]
<clever>
srhb: i believe everything with a driver in linux will appear in udev, including character and block devices with no hardware behind them
<srhb>
Fun!
<clever>
its just a matter of decrypting the output from udev
<srhb>
So maybe I really am just matching the composite thing
<clever>
i would expect a usb keyboard to have several entries in udev
<clever>
the usb device itself, and then the hid interface created by the driver
spacefrogg has quit [(Quit: Gone.)]
arianvp2 has quit [(Read error: Connection reset by peer)]
arianvp2 has joined #nixos
<clever>
srhb: for example, plugging in my usb mouse causes 7 events to show up, twice each
arianvp2 has quit [(Client Quit)]
<clever>
i see 2 for usb devices, 1 hid, 1 hidraw, and 3 input nodes
<clever>
srhb: i believe one of the input nodes would be related to the trackpad
koserge has quit [(Remote host closed the connection)]
<page>
Eisfreak7: that needs to be updated, you're right
<Eisfreak7>
page: Thats what I was looking for, thanks
magnetophon1 has joined #nixos
<Eisfreak7>
In case anybody will update that: It might be a good idea not to specify a valid example device like /dev/sdb. Someone will probably copy that verbatim and overvrite his data
<srhb>
Huh, how do I tell which linux package is the current/default one for my NixOS?
<srhb>
I naively thought it was pkgs.linux
<srhb>
Hm, maybe it is, but my packageoverride with changed options doesn't trigger a rebuild. Weird.
Coyin has quit [(Ping timeout: 246 seconds)]
<srhb>
Ah, it's using linux_4_9 not linux, which is the same version./
<srhb>
How odd.
ThatDocsLady_afk is now known as ThatDocsLady
mounty has quit [(Quit: Konversation terminated!)]
justan0theruser is now known as justanotheruser
mounty has joined #nixos
cpennington has joined #nixos
<srhb>
I'm starting to think the lenovo hid driver is bugged. I can indeed write to the file, also using udev rules, but 200 is very slow for the trackpoint compared to what it is on the laptop itself.
<srhb>
(And 218 seems to be the highest value, despite not being fast either, 219 just makes the point garbage out all over the place)
yegortimoshenko has quit [(Remote host closed the connection)]
arianvp2_ has quit [(Client Quit)]
arjen-jonathan has joined #nixos
mudri has joined #nixos
arianvp2_ has joined #nixos
arianvp2_ has quit [(Client Quit)]
nckx has quit [(Quit: restarting my GuixSD server)]
nckx has joined #nixos
erictapen has joined #nixos
mudri has quit [(Ping timeout: 240 seconds)]
nslqqq has quit [(Ping timeout: 240 seconds)]
arianvp2_ has joined #nixos
Coyin has joined #nixos
UFODiveb1mb has quit [(Ping timeout: 276 seconds)]
roberth has joined #nixos
eacameron has joined #nixos
abrar has quit [(Ping timeout: 240 seconds)]
arianvp2_ has quit [(Quit: arianvp2_)]
arianvp2_ has joined #nixos
ebzzry has joined #nixos
Lisanna_ has quit [(Quit: Lisanna_)]
arianvp2_ has quit [(Read error: Connection reset by peer)]
arianvp2_ has joined #nixos
nslqqq has joined #nixos
atbd has joined #nixos
butchery has joined #nixos
arianvp2_ has quit [(Read error: Connection reset by peer)]
arianvp2_ has joined #nixos
vaibhavsagar has joined #nixos
mudri has joined #nixos
butchery has quit [(Quit: Lost terminal)]
<apeyroux>
pbogdan: yes but i want to disable "default" listen (override, not append)
roconnor has joined #nixos
justelex_ has joined #nixos
MoreTea has joined #nixos
tvon has joined #nixos
luismig has joined #nixos
orivej has quit [(Read error: Connection reset by peer)]
<pbogdan>
apeyroux: not sure then, sorry
orivej has joined #nixos
<luismig>
Hi, I am struckling with a problem in NixOS related with the installation of VSFTPD. I have overrided the VSFTPD package with (pkgs.vsftpd.override { sslEnable = true; }) and NixOS indeed install the server with ssl support, but once it reaches the services.vsftpd configuration, it install another copy of vsftpd (without the ssl support) and the start/stop commands points to the vsftpd without the sslEnable.
<luismig>
Any suggestions of how to avoid NixOS from reinstalling VSFTPD and only use my override package? Thanks in advance!
<gchristensen>
luismig: where did you put (pkgs.vsftpd.override { sslEnable = true; }) ?
<luismig>
in environment.systemPackages = [ (... list of all other packages ...) (pkgs.vsftpd.override { sslEnable = true; }) ]
<gchristensen>
ah there we go, you need to override vsftpd in packageOverrides
<MoreTea>
luismig, what happened here is that you modified the package, and installed it, whilst the nixos module still pointed to the un-modified VSFTPD server
<simukis>
any hints as to what I’m doing wrong then? because my configuration.nix can’t see it (error: attribute ‘linuxPackages_4_12’ missing, at /etc/nixos/configuration.nix:50:25), despite `sudo nix-channel --list` showing I use unstable channel: (nixos https://nixos.org/channels/nixos-unstable)
<hodapp>
and I think that it may be related to the fact that ROS is able to find network errors out of absolutely nothing
<hodapp>
acowley_away: ^
MoreTea has quit [(Quit: Leaving)]
orivej has quit [(Ping timeout: 255 seconds)]
<hodapp>
I can nix-store --delete but now I just wish I could figure out what "Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7ffff138ee50>: Failed to establish
<hodapp>
a new connection: [Errno -2] Name or service not known',)': /simple/rosdep/" means
tmaekawa has quit [(Read error: Connection reset by peer)]
tmaekawa has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 opened pull request #27281: lib: Add isPowerPC predicate, and fix family name (master...lib-powerpc) https://git.io/vQPF3
NixOS_GitHub has left #nixos []
tmaekawa has quit [(Read error: Connection reset by peer)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 closed pull request #27281: lib: Add isPowerPC predicate, and fix family name (master...lib-powerpc) https://git.io/vQPF3
NixOS_GitHub has left #nixos []
mudri has joined #nixos
arianvp2 has joined #nixos
ng0 has quit [(Remote host closed the connection)]
ng0 has joined #nixos
orivej has joined #nixos
tmaekawa has joined #nixos
ng0 has quit [(Remote host closed the connection)]
* hodapp
grumbles and fires up Docker
<disasm>
if you want a nixos module to just touch a file somewhere in /etc would you just do environment.etc."foo/bar.lock" = file (where file == something generated by writeText)?
georges-duperon has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 pushed 1 new commit to staging: https://git.io/vQPNk
<NixOS_GitHub>
nixpkgs/staging 5c4fa41 John Ericson: Merge a lib change into staging
NixOS_GitHub has left #nixos []
spinus has joined #nixos
<gchristensen>
disasm: sure
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] edolstra pushed 3 new commits to staging: https://git.io/vQPNy
<NixOS_GitHub>
nixpkgs/staging 2f19895 John Ericson: stdenv: Make separate-debug-info.sh a `nativeBuildInput`
<NixOS_GitHub>
nixpkgs/staging 5896d84 John Ericson: stdenv: Stop reversing the list of sandbox stuff...
thblt has quit [(Remote host closed the connection)]
tmaekawa has quit [(Read error: Connection reset by peer)]
tmaekawa has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dtzWill opened pull request #27283: jnettop: patch (from Debian) to use 64bit counters for transfer totals. (master...feature/jnettop-64bit-counters) https://git.io/vQXe8
NixOS_GitHub has left #nixos []
civodul has quit [(Quit: ERC (IRC client for Emacs 25.2.1))]
mudri|srcf has quit [(Ping timeout: 246 seconds)]
mudri|srcf has joined #nixos
Gravious has quit [(Ping timeout: 260 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 opened pull request #27284: stdenv: Store one package per line in nix-support/propagated-* (staging...prop-lines) https://git.io/vQXvR
<joepie91>
dtzWill: both PEG parsers and Atom's JSON-monstrosity-format-containing-regex are more or less linear parsers
tmaekawa has joined #nixos
<celldee>
Hi, could anyone tell me how I can pass arguments to cmake in a package derivation?
<joepie91>
which means your options for exclusion are pretty much limited to some form of negative lookahead
<joepie91>
apparently both implementations made the same mistake of naively doing a negative lookahead without checking that the lookahead match is actually the full (not an) identifier
<joepie91>
therefore it tried to match `inherit-local` as an identifier, then went "oh but that starts with "inherit", aborted the identifier match, treated the "inherit" as an inherit statement, and then went "but I don't know what -local is"
<dtzWill>
celldee: look through nixpkgs for "cmakeFlags" for examples
<dtzWill>
joepie91: haha, wow
<celldee>
dtzWill: Thanks. I'll take a look.
<joepie91>
dtzWill: the fix was to include an additional non-identifier character in the abort-match after the reservedWord
<joepie91>
so that it only matches it as a reservedWord if it's the *entire* thing
<joepie91>
according to identifier rules
<dtzWill>
strange that "inherit-local" is a single token
<joepie91>
dtzWill: dashes are valid in identifiers in Nix :p
<joepie91>
it's caused me a few headaches
<joepie91>
subtraction ambiguity being one of them
<dtzWill>
jophish: right! I was actually asking where it would appear other than as part of an identifier
<dtzWill>
since I forgot that subtraction and integer arith was even a thing, can't remember ever actually seeing that used outside of ... nix pills lol
<joepie91>
dtzWill: wellllll the official Nix documentation doesn't document the arithmetic operators
<joepie91>
so... :P
<joepie91>
I had to produce my own table of operators because the Nix manual is incomplete
<joepie91>
dtzWill: it's also unusual in that boolean negation has very different precedence from what it would have in most languages
<joepie91>
that is...
<joepie91>
!5 - 5 -> !(5 - 5)
<joepie91>
in most languages, that'd result in (!5) - 5
<joepie91>
(now of course that's not valid because of a type mismatch, but AST-wise)
<simpson>
Wacky.
<joepie91>
there are a few fun things like that :P
<dtzWill>
joepie91: whoa haha
<manveru>
i still wonder if it'd be easier to make a parser for the output of nix-instantinate --parse instead :P
<joepie91>
writing a Nix parser has certainly presented me with a number of "... wait, what? seriously?" moments
<joepie91>
manveru: nope, it can produce ambiguous output sometimes
<joepie91>
--parse doesn't seem to try very hard to produce useful results
<joepie91>
:p
<manveru>
alright :)
ThatDocsLady has quit [(Ping timeout: 248 seconds)]
<manveru>
then i'll continue with mine
<joepie91>
it's handy as a way to double-check my interpretation of the reference implementation though
zraexy has quit [(Ping timeout: 260 seconds)]
riclima has joined #nixos
<joepie91>
anyhow, I'm up to line 421 in all-packages.nix now
ris has quit [(Ping timeout: 258 seconds)]
<joepie91>
dtzWill: also, this is the kind of tooling I'm currently working with: https://i.imgur.com/G0Pzixr.png -- I'm working on a better tracer, but I got a bit frustrated with it so I tabled that for later, and I'm using my older tracer now
<joepie91>
still useful, just takes a bit more work to spot the error
<dtzWill>
:D
<manveru>
way too fancy :)
sigmundv_ has joined #nixos
<joepie91>
manveru: the one I'm working on analyzes all the 'visits' of the parser to find unique 'routes' that partially succeeded, 'peaks' so to say
<joepie91>
manveru: and then compiles it into a list of potentially-intended routes, and eventually I intend to have it render a tree graph (including snippets) of potential paths the parser could have taken that you might have intended
<manveru>
i just wanna make a nixfmt for myself
<joepie91>
there's already a vaguely similar tracer in existence but it only considers the further path and that's not necessarily the right one
<NixOS_GitHub>
[nixpkgs] fpletz pushed 1 new commit to master: https://git.io/vQXG0
<NixOS_GitHub>
nixpkgs/master e4dd637 Franz Pletz: mitmproxy: add patch to bump pyopenssl dependency
NixOS_GitHub has left #nixos []
<joepie91>
the parser itself just parses all operator expressions in a straight line and feeds it into above reordering algo to turn it into a correct tree based on the specified operator precedences and associativities
<joepie91>
because PEG parsers are really, really bad at dealing with operator precedence
<manveru>
but i guess with crazy rules like in nix it might be hard
<joepie91>
manveru: are you familiar with the left recursion issue?
<manveru>
yeah
<joepie91>
manveru: right, so the only workaround for that that I'm aware of is bizarre rule chaining, which produces totally unmaintainable grammars
<joepie91>
this approach is a lot easier to understand and maintain :p
<manveru>
agreed :)
<joepie91>
(good old "fix it in post")
<manveru>
well, now i think i'll just wait until you're done with your grammar ^^;
<joepie91>
haha
<joepie91>
keep in mind that this is in JS, so I would not necessarily expect performant parsing, at least not at the level that Nix itself parses it
<joepie91>
performance is not a big requirement in my case so that is fine
<joepie91>
but it may not suit your requirements :P
<manveru>
i'm doing it in ruby... so hey :)
<joepie91>
... well, heh, okay
<manveru>
:D
<joepie91>
yeah, that might actually even be slower
<joepie91>
haha
<manveru>
definitely
<manveru>
but i don't expect to win any speed awards, just want to unify my nix code formatting
<joepie91>
manveru: you can always port the PEG grammar to Ruby anyway, PEGs are fairly portable for the most part... the only challenge will be in porting the operator reordering, afaik this is a novel concept that nobody else has implemented yet
<joepie91>
unless I overlooked something in my travels
<manveru>
nah, no worries
<joepie91>
so there are not likely to be existing implementations in other languages
<joepie91>
takes in Nix output, parses out the stacktrace, and turns it into something more usable
<joepie91>
one of the applications for my Nix parser is to do something like annotating the snippets with references to the call sites and arguments passed in etc.
<manveru>
it's so pretty it hurts
tokudan has quit [(Client Quit)]
<manveru>
do you have a repo or something?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz closed pull request #27283: jnettop: patch (from Debian) to use 64bit counters for transfer totals. (master...feature/jnettop-64bit-counters) https://git.io/vQXe8
NixOS_GitHub has left #nixos []
<manveru>
i don't mind writing in js if i can help you there :)
<joepie91>
there's a lot of functions being called on functions being called on functions etc., so it'd help a lot to have everything laid out in an obvious manner
<LnL>
joepie91: still having problems with that?
<joepie91>
manveru: for the error reporting tool, not yet
<joepie91>
in progress still
<joepie91>
LnL: yeah, but I've tabled that for a bit :)\
<joepie91>
probably will look at it again tomorrow
<joepie91>
I've been jumping between projects a lot this extended-weekend
<joepie91>
manveru: anyway, especially for stuff that I'm newly developing from scratch, it'll usually be faster for me to work on it on my own (at least for initial release) than to work together with somebody, so while I appreciate the offer to help out, it probably wouldn't help (yet) :P
<manveru>
i understand
<joepie91>
though once semi-done, patches etc. would ofc be welcome
<manveru>
well, no rush there
tokudan has joined #nixos
<manveru>
it's mostly nice to have stuff for me ;)
<joepie91>
hehe
<manveru>
i format all my code with prettier/rubocop/gofmt ...
<joepie91>
well, not |, whatever puts stderr into it
<joepie91>
because that's where strace dumps stuff
<manveru>
jup
<manveru>
i shall try that tonight
<joepie91>
so it'd be more like... `strace -f whatever-command 2| node /path/to/find.js`
<joepie91>
no idea whether 2| is a thing :D
<manveru>
no, just &> should do it
<joepie91>
manveru: it has some very rudimentary ignore rules for things that are often missing but optional, but some stuff may slip through and show as missing when it's not required... but it should be helpful pointers nevertheless
<sudoreboot[m]>
manveru: Thanks. It still complains about it needing it as an argument though :(
<manveru>
remove run-persist from line 11
<manveru>
err 12
<sudoreboot[m]>
Ahh, thank you :)
<sudoreboot[m]>
I guess I assumed it would not ask for it if it was in scope
<manveru>
if you want to make it optional you could use `run-persist ? run-persist` i _think_... though i'd call it different then :)
<sudoreboot[m]>
manveru: Yeah, I realized the error in my logic there
<joepie91>
manveru: anyhow, I'll eventually be turning all these tools into more polished, organized tools :P it's just a bit of a yak shaving process until then
<joepie91>
and it's all pretty much driven by the issues I run into myself, so sometimes I need to adjust requirements because I wasn't aware of some particular case beforehand
georges-duperon has quit [(Ping timeout: 276 seconds)]
tmaekawa has quit [(Ping timeout: 248 seconds)]
tteggel has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vbgl pushed 2 new commits to master: https://git.io/vQXCB
<NixOS_GitHub>
nixpkgs/master 79ddb5d Vincent Laporte: ocamlPackages.topkg: requires OCaml ≥ 4.01
<NixOS_GitHub>
nixpkgs/master c9468ac Vincent Laporte: ocamlPackages.ocaml-migrate-parsetree: requires OCaml ≥ 4.02
NixOS_GitHub has left #nixos []
magnetophon1 has joined #nixos
tteggel has quit [(Client Quit)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vQXWU
<NixOS_GitHub>
nixpkgs/master 73860ee Vincent Laporte: ocamlPackages.result: 1.1 -> 1.2
NixOS_GitHub has left #nixos []
tmaekawa has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vyp opened pull request #27289: xst: init at 0.7.1 (master...patch/xst-init) https://git.io/vQXW2
NixOS_GitHub has left #nixos []
riclima has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
magnetophon1 has quit [(Ping timeout: 246 seconds)]
davidak has quit [(Quit: Leaving.)]
georges-duperon has joined #nixos
davidak has joined #nixos
ertes has joined #nixos
dekorum has joined #nixos
<dekorum>
how do I skin XFCE? I apparently have to put the skins in /usr/share/themes/xfce4 but that doesn't exist
<sphalerite>
dekorum: I'm not sure to what extent XFCE implements XDG specs but maybe putting them in ~/.local/share/themes/xfce4 instead will work
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] nckx pushed 1 new commit to master: https://git.io/vQX4D
<NixOS_GitHub>
nixpkgs/master 46dc539 Tobias Geerinckx-Rice: Update e-mail address for nckx
NixOS_GitHub has left #nixos []
<dekorum>
i found the answer on the xfce wiki, thanks
anelson has joined #nixos
Filystyn has quit [(Quit: Konversation terminated!)]
<sphalerite>
dekorum: was it that?
<dekorum>
yeah but without the xfce4 at the end
<sphalerite>
ah right
<dekorum>
what makes it more complicated is that there is a difference between window decorations and gtk+ interfaces, they change different things
<manveru>
let's see if there's that lib too and just missing :)
<sphalerite>
It's definitely not missing, libstdc++.so.6 is the right lib
<sphalerite>
just the wrong version
<dekorum>
manveru: oh, it is just called libcxx, try adding libcxx at the top of the steam declaration nixfile
<dekorum>
if it isn't already
<sphalerite>
no, libcxx is libc++ which is a completely different C++ standard library
<sphalerite>
definitely won't help
yegortimoshenko has joined #nixos
<dekorum>
i see
<manveru>
it's still possible that we should upgrade the steam package for real?
<manveru>
last version is from over a year ago
<sphalerite>
(if it doesn't fail to load with the same error message, which it will, it will crash disastrously)
<sphalerite>
manveru: yes, that should help
<yegortimoshenko>
is there a way to interpolate a variable any cleaner than "${domain}" in the following Nix expression:
<yegortimoshenko>
domain = "example.com";
<yegortimoshenko>
security.acme.certs = {
<yegortimoshenko>
"${domain}" = {};
<yegortimoshenko>
};
stanibanani has joined #nixos
<sphalerite>
manveru: 17.03's version of glibc has a suitable version, but I don't want to know what kind of chaos trying to use that in the steam runtime env would cause :p
Guest61222 has quit [(Killed (tolkien.freenode.net (Nickname regained by services)))]
katyucha_ is now known as katyucha
katyucha_ has joined #nixos
wak-work has joined #nixos
davidak has quit [(Quit: Leaving.)]
oida_ has joined #nixos
<manveru>
sphalerite: looks like the only option is trying the steamos beta version... that's at least only half a year old :)
<manveru>
(as base for the package list, i mean)
<manveru>
it's totally possible that port guy didn't try it on steamos, so it'd fail
yegortimoshenko has quit [(Ping timeout: 260 seconds)]
oida has quit [(Ping timeout: 255 seconds)]
<manveru>
aye, it's built against the wrong version from the beginning :(
<manveru>
the beta didn't help there
<celldee>
I'm trying to understand how authentication files get written to /etc/pam.d. I installed the i3lock package and an i3lock file got written to /etc/pam.d. Installed Sway including swaylock but no swaylock file written to pam.d. Not sure what's going on. Does anyone have any pointers?
<sphalerite>
celldee: because package management can be unprivileged, nothing can be installed to a global namespace like /etc
<sphalerite>
celldee: I'm guessing you didn't just install i3lock but set the nixos option for i3?
<celldee>
sphalerite: I'm using Sway as my window manager and i3lock to provide a lock screen. I just did nix-env -i i3lock against unstable and it installed and worked.
<sphalerite>
celldee: try adding security.pam.services.swaylock = {}; to your config
<sphalerite>
celldee: actually, I think the i3lock config in /etc/pam.d will have existed regardless of whether you installed i3lock or not
<celldee>
sphalerite: Thanks for the suggestion. I'll try and see what happens.
celldee has quit [(Quit: leaving)]
ixxie has quit [(Quit: Lost terminal)]
mudri has joined #nixos
magnetophon1 has quit [(Ping timeout: 248 seconds)]
celldee has joined #nixos
<celldee>
sphalerite: Thank you. Your suggestion worked a treat.
<sphalerite>
great!
spluko has joined #nixos
bennofs has quit [(Ping timeout: 246 seconds)]
<spluko>
I need to build a Haskell package with a flag set (-f). I'm guessing I can use overrideAttrs, but I've no idea what the attribute should be. Anyone familiar with this area?
<spluko>
sphalerite: I'm not really sure what that means. I tried foo.overrideAttrs (oldAttrs: { buildFlags=["-f jack"];}). That did run a full compilation and succeded, but I saw some errors roll past. I don't think I had jack in scope at the time. How do I force it to try building again?
ennui has joined #nixos
<sphalerite[m]>
spluko: I think haskell.lib.enableCabalFlag "jack" foo should do the trick
<sphalerite[m]>
Oh right but if you need libjack to be available for the build you'll need to use overrideAttrs in addition to add it to buildInputs or something like that (I don't know enough about the Haskell stuff to tell you how exactly, should hopefully be quite straightforward though)
<yegortimoshenko>
is it possible to interpolate an option value into a string?
<sphalerite[m]>
yegortimoshenko: depends on where and what kind of option. If it's a nixos option in the nixos config, then yes — just put ${config.xyz.abc} inside the string
civodul has quit [(Quit: ERC (IRC client for Emacs 25.2.1))]
<yegortimoshenko>
sphalerite: thanks a bunch!
civodul has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] joachifm pushed 2 new commits to release-17.03: https://git.io/vQXX3
<NixOS_GitHub>
nixpkgs/release-17.03 69a346f Will Dietz: netselect: Fix attempt to use unsupported permissions on files in store...
<NixOS_GitHub>
nixpkgs/release-17.03 86ca675 Will Dietz: wcslib: fix attempts to use unsupported permissions during install...
NixOS_GitHub has left #nixos []
tokudan has quit [(Quit: Leaving)]
grumble is now known as gurmble
<sphalerite[m]>
yegortimoshenko: no problem :) and this applies in general as well — you can interpolate any expression that evaluates to a string into a string using ${}
yegortimoshenko has quit [(Remote host closed the connection)]
yegortimoshenko has joined #nixos
<yegortimoshenko>
sorry, emacs crashed
hamishmack has quit [(Quit: hamishmack)]
orivej has quit [(Ping timeout: 240 seconds)]
riclima has joined #nixos
[0x4A6F] has quit [(Ping timeout: 260 seconds)]
zeus_ has quit [(Read error: Connection reset by peer)]
zeus_ has joined #nixos
<spluko>
sphalerite: where does that enableCabalFlag go?
<spluko>
sphalerite: Ah, I see. Let me try that...
<p5cm>
got a Lenovo p50 that having issues resuming from suspend. Got any suggestions?
Hinidu has joined #nixos
<spluko>
sphalerite: haskell is not in scope. Where does it come from? pkgs?
Mateon1 has quit [(Quit: Mateon1)]
<sphalerite[m]>
Yes
necronian has joined #nixos
<bennofs>
spluko: haskell is from pkgs.haskell yes
aswanson has joined #nixos
<Hinidu>
Hello! I have a question about Unity3D: it is packaged and working but I can't build a game to run it on NixOS because Unity generates executable and so-files with default linker and RPATH. Should we have something like buildUnity3DProject function to assist with it? I was trying to use ldd and patchelf to modify binaries myself but I didn't manage to run the game. I'm not sure whether it fits as an issue on nixpkgs repo or not. Thank
aswanson has quit [(Client Quit)]
georges-duperon has quit [(Ping timeout: 255 seconds)]
ilyaigpetrov has quit [(Quit: Connection closed for inactivity)]
Guest55363 has quit [(Quit: Lost terminal)]
<spluko>
sphalerite, bennofs: thanks, the arguments are the other way round, but this did cause the flag to be set.
earldouglas has quit [(Quit: leaving)]
<spluko>
now it can't find jack. I'll try the overrideAttrs for the buildInputs
<spluko>
Woohoo, I got the haskell package to build with jack support! Thanks guys.
Hinidu has joined #nixos
aswanson has joined #nixos
<aswanson>
Does anyone know if there are current issues with the rstudio wrapper? I'm trying to install a new package via the prescribed method in the nixpkgs manual but getting an error that a single dependency can't be built
<bennofs>
hmm, I have a program that opens 100 connections in rapid succession. looking at the wireshark dump, that generates 100 syn packets in rapid succession on nixos. this totally overloads my network and even causes the wifi to go down. however, the problem does not appear on Ubuntu or ArchLinux, only on NixOS. Any idea what the cause for that could be?
<bennofs>
I already diffed the sysctl settings for net.ipv4 between ubuntu and nixos, and there seems to be no relevant difference
hamishmack has joined #nixos
hiratara has quit [(Ping timeout: 276 seconds)]
hiratara has joined #nixos
georges-duperon has joined #nixos
<bennofs>
Hmm, seems that the program simply generated a lot more connections on NixOS than on the other systems
dekorum has quit [(Quit: Page closed)]
<spluko>
How do I get a jack server running? It looked like I needed to select jack support in pulseaudio with hardware.pulseaudio.package = pkgs.pulseaudioLight.override { jackaudioSupport = true; }; but I still have no server
markonsdes has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] jwiegley pushed 1 new commit to master: https://git.io/vQX51
<NixOS_GitHub>
nixpkgs/master fdc49ed John Wiegley: coqPackages.paco: Add attribute to 8_5 and 8_6 as well
NixOS_GitHub has left #nixos []
markonsdes has quit [(Client Quit)]
jgertm has quit [(Ping timeout: 255 seconds)]
mudri has quit [(Ping timeout: 258 seconds)]
jgertm has joined #nixos
digitus has quit [(Read error: Connection reset by peer)]
stanibanani has quit [(Ping timeout: 260 seconds)]
erictapen has joined #nixos
deep-book-gk_ has joined #nixos
deep-book-gk_ has left #nixos []
<spluko>
I gave up with jack as I only need midi anyway for now. alsa seems to work
mudri has joined #nixos
<Sonarpulse>
is it possible to get the log for an aribrary derivation?
<Sonarpulse>
that hydra.nixos.org built?
<bennofs>
Sonarpulse: i think hydra keeps the logs for some time but not indefinitely
<c74d>
One can use `users.users.<name>.hashedPassword` to set the password such that it can't just be read out of the configuration file; I do
<Infinisil>
I'm pretty sure the whole configuration ends up in the nix store, which has no restricted access
<c74d>
However, AFAIK modules other than `users` — like your VPNs etc. — generally don't support that
<Infinisil>
So just keep that in mind
<yegortimoshenko>
true. thanks!
<yegortimoshenko>
going to use /run/keys
athan has quit [(Read error: Connection reset by peer)]
vaibhavsagar has quit [(Ping timeout: 240 seconds)]
markus1189 has joined #nixos
<spinus>
hey guys, I need to run app which wants to write files in nix store, I thought I'll do some overlay magic and app will be happy, did anyone do that by any chance?
<Ralith>
you should fix the app not to do that
erasmas has quit [(Quit: leaving)]
indi_ has joined #nixos
<spinus>
Ralith: that's really nice idea
<spinus>
but I don't want
<spinus>
it's not my app, just need to run it
filterfish_ has quit [(Ping timeout: 255 seconds)]
markus1199 has quit [(Ping timeout: 268 seconds)]
<simpson>
spinus: Many apps which are not our apps want to write to the store, and we fix them all. Why should this app not be fixed?
<Infinisil>
spinus: Yeah you need to somehow fix it, that's how nix works, there are some utilities to do that
<simpson>
spinus: Consider: At some point in the future, the Nix store may be something that *cannot be written* in that sense.
<dtzWill>
^_^
<spinus>
simpson: I didn't write that it should not be fixed :-)
<spinus>
Infinisil: exactly, just wondering how I can fix it with overlay fs :)
<manveru>
spinus: question is... what does it try to write? :)
<manveru>
might be much easier to just patch the path
<spinus>
really, if I won't find a quick way to mock fs, I'll run it in docker, really don't have time and energy to discover what some JS programmers had in mind by looking at minified code :)
<spinus>
so, I found few env variables and switched some paths, but this one I cannot find
<spinus>
it's a blob of js
<Infinisil>
spinus: What's the app?
<simpson>
spinus: Name and shame?
<spinus>
some internal
<manveru>
we even patch paths of blobs of binaries... this is easier ;)
<spinus>
manveru: que?
<Infinisil>
spinus: Well it's hard to help when you're the only one that has access to it heh
<spinus>
Infinisil: sure, that's why I want the solution which doesn't need internal app knowledge, in worst case I'll just put that into docker or what :[
taktoa has quit [(Remote host closed the connection)]
<spinus>
I found some namespace share/unshare stuff
<Infinisil>
spinus: If it's internal you could encourage its developers to do it properly in the next release
<spinus>
but was wondering if anyone did that
<spinus>
Infinisil: yeah, I need bigger encourager/taser
JagaJaga has quit [(Ping timeout: 240 seconds)]
<simpson>
spinus: If you're deploying with Nix, why aren't they developing with Nix? This sounds like a process problem.
<spinus>
I'm just trying to introduce nix
<simpson>
Ah. I know this pain.
Eisfreak7 has quit [(Ping timeout: 276 seconds)]
erictapen has quit [(Ping timeout: 255 seconds)]
<spinus>
:)
<Infinisil>
I was trying to introduce nix to my university collegues a bit ago, but I couldn't get the package to work :(
nckx has quit [(Quit: I'm probably just restarting my server.)]
nckx has joined #nixos
nckx has quit [(Remote host closed the connection)]
<Infinisil>
I didn't have much nix experience then, the package was requiring jdk6 (which isn't being maintained in nix), and the only thing I had to work with was an Ubuntu VirtualBox which was known to work, it probably took them ages to get it into a working state, so they just said 'fuck it' and packaged it up without a single word on how they got there