gchristensen changed the topic of #nixos to: Share the output of nix-shell -p nix-info --run nix-info to help us help you. || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://botbot.me/freenode/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64
hamishmack has joined #nixos
bluemonk12 has joined #nixos
rogue_koder has joined #nixos
kelleyNif has joined #nixos
<vcanadi> hakujin: I will try with `services.hydra.package`
<samueldr> fresheyeball: when you say "changed its name", what kind of name were you using? /dev/sdX, /dev/disk/by-XXX/YYY ?
<samueldr> /dev/sdX device names are not expected to be stable enough, e.g.: adding a drive to a machine could move them around
<fresheyeball> samueldr: in configuration.nix it was `/dev/sdk`
BlessJah has quit [Ping timeout: 265 seconds]
<samueldr> you might want to check for either one of /dev/disk/by-uuid or /dev/disk/by-label
<samueldr> UUIDs should be unique unless you clone (e.g. via dd) a partition or disk
<samueldr> labels are not necessarily unique, but with attention to details can be reliable
<samueldr> on GPT drive,s /dev/disk/by-partlabel can also be used, which is *a different* label than the filesystem's label
`_ has joined #nixos
<fresheyeball> samueldr: ok
<fresheyeball> so how can I recover?
<fresheyeball> I am still booted of the live-cd
<samueldr> you can mount the partitions to /mnt like you did at installation, and then there are a couple of choices
<samueldr> is the installation still fresh, like a couple boots since you installed or was there heavy customizations?
<clever> also, there is a major pain point here
<clever> all of the by-label and by-uuid symlinks, point to partitions
<clever> grub requires the root device, not a partition
<fresheyeball> samueldr: HEAVY CUSTOMIZATIONS
<clever> it is basically imposible to do it right with legacy booting
<samueldr> oh, on legacy boot only though
kelleyNif has quit [Quit: Leaving.]
<fresheyeball> I am on generation 112 or something
<samueldr> clever: I use by-path
<samueldr> e.g.: /dev/disk/by-path/pci-0000:00:1f.2-ata-1
<samueldr> eeerm
<Lisanna> I've done (drv1 // drv2) and see that the result is drv2. Which attributes are being replaced which allow Nix to identify which derivation this evaluates to, such that if I didn't replace them it would continue to evaluate to drv1?
<samueldr> that's not on the actual one I use
<clever> samueldr: that only works until you move the drive to a different sata port
<Lisanna> :b (drv1 // drv2)*
<samueldr> sorry, by-id!
<samueldr> ata-WDC_WD5001AALS-00L3B2_WD-WCASY6986843
<samueldr> which has the drive's serial in it
<clever> samueldr: that should be a bit more stable, it will only break if you clone the entire drive to another one
<samueldr> which I expect to cleanup anyway :)
<fresheyeball> so what I have now is like thi
<fresheyeball> device = "/dev/sdl";
<samueldr> so, fresheyeball, you're on legacy boot? I assumed uefi, sorry
pie_ has quit [Ping timeout: 248 seconds]
<clever> fresheyeball: it should be possible to fix this without the livecd, how far into the booting does it get?
<fresheyeball> samueldr: oh yeah, not uefi I don't think
velovix has joined #nixos
<fresheyeball> err sorry wrong one
<clever> unviewable
BlessJah has joined #nixos
<Lisanna> Answer: drvPath
<fresheyeball> samueldr: that's where it hangs, on mounting
<clever> fresheyeball: the grub layer is working perfectly, and its failing to find the rootfs by uuid
vidbina has joined #nixos
<samueldr> (I love how the displays crops to hecking)
<fresheyeball> clever: that sounds right
<samueldr> yep, so grub can boot, but it's *possible* that the next installs are on the wrong drive though
<clever> fresheyeball: can i see more to the right on that last line of text?
<fresheyeball> clever: I would need to reproduce that state
<clever> fresheyeball: does it just happen when you boot the default option?
<fresheyeball> clever: yes, and I tried an old generation too
<clever> fresheyeball: can you see the same uuid its looking for, if you run `blkid /dev/sd*` from the livecd?
<fresheyeball> clever: yes, and I mounted it
<clever> fresheyeball: simplest fix i can see then, is to mount the root and boot fs under /mnt as normal, nixos-install --chroot, and then `nixos-rebuild boot` to repair /boot
ma271 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz pushed 1 new commit to staging: https://git.io/vAYi7
<NixOS_GitHub> nixpkgs/staging eb862c4 Franz Pletz: systemd: 234 -> 237...
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz deleted systemd-237 at 02dcf84: https://git.io/vAYi5
NixOS_GitHub has left #nixos [#nixos]
<fresheyeball> clever: can you be more explicit about those commands?
<clever> fresheyeball: mount the rootfs to /mnt, and the boot fs to /mnt/boot/, then just run `nixos-install --chroot` and `nixos-rebuild boot`
<fresheyeball> clever: what is the root fs vs the boot fs?
<clever> fresheyeball: the filesystem you used for / and /boot
<fresheyeball> so I did this
<samueldr> (it is possible to have only one partition with grub, so it's possible you don't have a /boot partition)
<samueldr> (with grub on legacy boot)
<clever> i prefer zfs, and i dont trust grub with zfs, so /boot has to be an older FS
<fresheyeball> clever I did this: mount /dev/disk/by-uuid/adsafsadfkl /mnt
<fresheyeball> and ls /mnt shows what I expect for /
<fresheyeball> I have no clue as to boot
<clever> fresheyeball: and did you have an fs for /boot/?
<fresheyeball> I do have /mnt/boot currently
<`_> hey that's not a valid uuid
<clever> or was it just the boot directory on the root fs?
<fresheyeball> I don't know
<samueldr> `_: some would argue that `_ isn't a valid nickname :)
`_ is now known as validnickname
<clever> fresheyeball: what does /dev/disk/by-uuid/adsafsadfkl currently point to?
<validnickname> checkmate
<fresheyeball> clever: it's the root when I boot normally
<clever> fresheyeball: what is the device path?
<chreekat> is there a way to clean up after nix-build -K? other than 'sudo rm'
<clever> chreekat: i dont think there is any way to automatically clean it up
hakujin has quit [Quit: WeeChat 2.0.1]
ma271 has quit [Ping timeout: 256 seconds]
validnickname is now known as `_
vidbina has quit [Ping timeout: 240 seconds]
zearen has joined #nixos
<clever> fresheyeball: for example, /dev/sda1 ?
<Ralith> clever: is there a way to programmatically get the build path from the shell?
halfbit has quit [Ping timeout: 260 seconds]
<clever> Ralith: from inside the builder, or after nix-build has failed?
silver_ has joined #nixos
spietz has joined #nixos
<Ralith> clever: after it failed; I'm trying to integrate nix with an external CI pipeline, and I want to extract some logfiles after the build fails
<clever> Ralith: ah, i can think of something better, one minute
ndrei has quit [Quit: WeeChat 2.0]
<Ralith> (and also clean up the failed dir after extracting the files)
zearen has quit [Ping timeout: 268 seconds]
silver has quit [Ping timeout: 268 seconds]
<clever> Ralith: this will run the failureHook "phase" upon build failures
jtojnar has joined #nixos
<clever> so you can just add a failureHook attribute to your derivations, that cat's out the right log files
<clever> then build it without -K
zearen has joined #nixos
<clever> it will read the logs, from inside the sandbox, before nix cleans it up automatically
<clever> -K isnt at play, so you never have to clean it up or find it
<Ralith> clever: I don't want to cat them to stdout, I want to copy them out to the filesystem as the user invoking the build
<clever> Ralith: another option, if you set succeedOnFailure = true;, then the nix-build will "pass" even if the build inside fails
<Ralith> digging through a single gigantic concatenation of every possibly interesting file is not a good debugging experience
<clever> and it will put the failure code into $out/nix-support/failed
<clever> you can then copy logs to $out, and then will be in the result symlink, the same as if the build had passed
<Ralith> set that where?
<clever> inside the derivation
<Ralith> hm, workable
<clever> stdenv.mkDerivation { name = "foo"; failureHook = "mkdir $out ; cp configure.log $out/"; succeedOnFailure = true; }
<clever> just be a bit more smart about which logs you copy, and dont crash in the crash handler
<clever> and be aware that nix-build returning 0 is no longer a sign of success, you must now check the outputs nix-support/failed file for pass/fail
<Ralith> check if that file exists, or parse its contents somehow?
<clever> if it exists
<clever> its only created upon failure
<Ralith> cool, thanks
<clever> hydra also checks and obeys that file
<clever> ive used that to make complex qemu based tests, that can fail, but still leave pcap files in the output
<clever> and then you can download the pcap, inspect the comms between the vm's, and know why it failed
pie_ has joined #nixos
`_ has quit [Ping timeout: 260 seconds]
zearen has quit [Quit: WeeChat 1.9.1]
<dhess> hi all, trying to just build a one-off go package in nix-shell
<dhess> so I do nix-shell -p go
<dhess> then I get this when I try to build it: https://gist.github.com/dhess/8ad32602f47ff2a7435a15f5b3699131
<dhess> eh never mind
<dhess> just had to set GOPATH, never used go before
dan_b has quit [Ping timeout: 240 seconds]
kelleyNif has joined #nixos
<Ralith> clever: what if the failing derivation is a dependency of the derivation I'm actually passing to `nix-build`?
<clever> Ralith: then the result symlink wont be made, and youll need to parse some of the nix output, to follow the dependency chain of failures, and find the one that passed and failed
<clever> Ralith: hydra doesnt have this issue, because hydra manually builds every step itself, rather then letting nix walk the tree for you
<Ralith> hm, I guess I can just build each by hand and bail out early, that'll work fine
<Ralith> clever: also, any way to get nix-build to give me symlinks for each output?
<Ralith> for a single multiple-output derivation
<clever> Ralith: only for the outputs of the final derivation you pointed to with -A
<Ralith> right, that's what I want now
<clever> [clever@amd-nixos:/tmp]$ nix-build '<nixpkgs>' -A glibc.out -A glibc.bin
<clever> [clever@amd-nixos:/tmp]$ ls -l result result-bin
<clever> Ralith: try these 2 commands
<Ralith> ahah, thanks
<clever> Ralith: and also nix-store --query --outputs $(nix-instantiate '<nixpkgs>' -A glibc)
<clever> or eval glibc.outputs in nix, via either nix-repl or nix-instantiate
<clever> also have a look at the flags in nix-store -q
<Ralith> whee, I can even combine -E and -A
<clever> [clever@amd-nixos:/tmp]$ nix-store --query --binding postConfigure $(nix-instantiate '<nixpkgs>' -A glibc)
<clever> Ralith: it can do fun things like this, which will get the value of the postConfigure env variable within the glibc derivation
<clever> ah, that can also query the outputs on a .drv file
<clever> so you can find them after you instantiate
<Ralith> @_@
<Ralith> sometimes nix is weird and obtuse and sometimes it is like here have twenty different interesting and useful solutions to your problem
k0001 has joined #nixos
<clever> heh
<Havvy> Which directory would I put a tool for generating HTML from markdown? tools/typesetting?
smichel17 has quit [Quit: smichel17]
<clever> Havvy: maybe near pandoc, if thats not inside the hackage-packages.nix blob
<Havvy> Hmm, github says that all-packages.nix has exactly 1000 contributors. I wonder if that's true or that's just the limit it counts.
<clever> probably just a limit
<Havvy> pandoc is part of HaskellPackages
Eisfreak7 has quit [Ping timeout: 252 seconds]
<Havvy> rst2html5 = callPackage ../tools/text/rst2html5 { };
<Havvy> So, /tools/text seems like it'd work?
<clever> sounds good to me
bluemonk12 has quit [Ping timeout: 268 seconds]
jtojnar has quit [Remote host closed the connection]
samae has quit [Remote host closed the connection]
helpusobi_ has quit [Read error: Connection reset by peer]
Drakonis has joined #nixos
dredozubov has quit [Ping timeout: 240 seconds]
raxius has quit [Ping timeout: 240 seconds]
laumann has quit [Ping timeout: 240 seconds]
helpusobi has joined #nixos
raxius has joined #nixos
samae has joined #nixos
laumann has joined #nixos
dredozubov has joined #nixos
uptime has quit [Quit: Quit.]
chreekat has quit [Quit: quitting]
ottidmes has quit [Ping timeout: 248 seconds]
<Ralith> the hierarchy isn't super rigorous
Eisfreak7 has joined #nixos
ditadi has quit [Ping timeout: 276 seconds]
ditadi has joined #nixos
m712 has quit [Quit: bye-nyan!]
m712 has joined #nixos
silver_ has quit [Read error: Connection reset by peer]
kelleyNif has quit [Quit: Leaving.]
justanotheruser has joined #nixos
k0001 has quit [Ping timeout: 260 seconds]
<Havvy> Is fetchFromGitHub documented somewhere?
kelleyNif has joined #nixos
contrapumpkin is now known as Whale
Whale is now known as contrapumpkin
contrapumpkin is now known as Whale
Whale is now known as contrapumpkin
pie_ has quit [Ping timeout: 248 seconds]
Xalt has joined #nixos
<Xalt> how would I go about setting up a shell.nix for c++ development?
<samueldr> Havvy: it's defined pkgs/top-level/all-packages.nix Line ~#215
<Havvy> samueldr: I find it easier on my browser than anything else.
kelleyNif has quit [Quit: Leaving.]
<Havvy> :/ Can't fetch the Rust source from Github because there's no cargo.lock
kelleyNif has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dtzWill opened pull request #34916: xz: set CONFIG_SHELL to /bin/sh, fix retained reference to bootstrap (staging...fix/xz-invalid-references) https://git.io/vAYSk
NixOS_GitHub has left #nixos [#nixos]
Xalt has left #nixos ["ERC (IRC client for Emacs 25.3.1)"]
thc202 has quit [Ping timeout: 248 seconds]
kelleyNif has quit [Quit: Leaving.]
alex`` has quit [Ping timeout: 255 seconds]
kelleyNif has joined #nixos
orivej has joined #nixos
Ralith_ has quit [Ping timeout: 248 seconds]
d4g_ has joined #nixos
<nahamu> gchristensen: you around?
<nahamu> I really think that this line 'config_evaled = import "${pkgs.path}/nixos/lib/eval-config.nix" config;' is somehow sidestepping the overlay.
Ralith_ has joined #nixos
mbrgm has quit [Ping timeout: 240 seconds]
d4g has quit [Ping timeout: 248 seconds]
<gchristensen> let me see your updated config?
<nahamu> ignore the readme
<nahamu> I should fix that.
<nahamu> the code as currently pushed works, but if I uncomment the line that tries to pull in an overlay package it bails.
<petersjt014[m]> is there any builtin function to compare config files?
<nahamu> I can repush in the broken state if that would be more helpful.
mbrgm has joined #nixos
<adisbladis> rycee: Hmm. Regarding https://github.com/NixOS/nixpkgs/pull/33836 I'm thinking that debian and gentoo probably has the same test failures as us in that PR except they dont run the test suite and hence never catch it. I'm not really familiar with debian packaging but it seems to me based on the contents of https://sources.debian.org/src/gpsbabel/1.5.4-2/debian/ that they dont run tests.
<nahamu> will try
stephenjudkins has quit [Remote host closed the connection]
<nahamu> brilliant!
<gchristensen> great!
<nahamu> thank you so much.
<nahamu> I knew I was getting very close.
<gchristensen> you're welcome :) so glad to help
<gchristensen> btw you probably want to move { nixpkgs = { overlays = [ (import ./overlay.nix) ]; }; } in to a file, and then reference the file instead
<gchristensen> otherwise the errors can be sort of nonsensical
<nahamu> will do.
<nahamu> how would you expect such a file to be named?
<gchristensen> I don't have a good suggestion :(
<gchristensen> maybe overlay-module.nix or something
<petersjt014[m]> where in the fs would I find old generations/config files?
<gchristensen> /nix/var/nix/profiles/system-*
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<gchristensen> ok nahamu I'm heading out for the night. good luck, have fun :)
notdaniel has joined #nixos
<nahamu> thanks gchristensen! have a great evening.
<gchristensen> you too
xcmw has joined #nixos
<petersjt014[m]> Hmm. This is getting tricky
<petersjt014[m]> Is there any got way to just cat out an old `configuration.nix`?
notdaniel has quit [Client Quit]
<petersjt014[m]> *(any way)
<petersjt014[m]> I broke something between configs and I'm trying to do a diff somehow to see what
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ubercow has quit [Quit: Ubercow]
Ubercow has joined #nixos
alfie is now known as {{refimprove}}
{{refimprove}} is now known as alfie
xcmw has joined #nixos
kelleyNif has quit [Quit: Leaving.]
<fpletz> petersjt014[m]: unfortunately not because it is compiled, but there is the system.copySystemConfiguration option for the future
kelleyNif has joined #nixos
<fpletz> it's no silver bullet though as it conly copies the actual configuration.nix file and nothing more (i.e. imports)
<adisbladis> It wont help you now but protip for the future: Keep your configs in git (or your revision control system of choice)
<petersjt014[m]> sounds good
pkill9 has quit [Ping timeout: 256 seconds]
<petersjt014[m]> though is there an easy way to show a config file after the imports have been imported
<petersjt014[m]> ?
<nahamu> petersjt014[m]: try "find /nix/store/ -type f -maxdepth 1 -name \*configuration.nix\*"
<nahamu> see if that finds it?
Supersonic has quit [Disconnected by services]
<nahamu> on my system, one of those matches my current /etc/nixos/configuration.nix
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
<petersjt014[m]> `find: warning: you have specified the -maxdepth option after a non-option argument -type, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it). Please specify options before other arguments.`
<petersjt014[m]> but after browsing there otherwise I did find it
<nahamu> swap the ordering.
<petersjt014[m]> I think
<nahamu> "find /nix/store/ -maxdepth 1 -type f -name \*configuration.nix\*"
<nahamu> "find /etc/nixos/configuration.nix /nix/store/ -maxdepth 1 -type f -name \*configuration.nix\* -exec md5sum {} + | sort" if you want to be fancy
<nahamu> anyway, good luck!
<petersjt014[m]> It did find it, but apparently followed a symlink to /nix/store/configuration.nix
<petersjt014[m]> hmm. well it's a start
kelleyNif has quit [Quit: Leaving.]
<petersjt014[m]> I might just switch between gens and cat out each to a file
<petersjt014[m]> and then set up a git thing later
kelleyNif has joined #nixos
markus1199 has joined #nixos
markus1189 has quit [Ping timeout: 264 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis closed pull request #34908: riot-web: 0.13.3 -> 0.13.5 (master...riot-web-0.13.5) https://git.io/vAYYl
NixOS_GitHub has left #nixos [#nixos]
<bhipple[m]> I would like to fetchurl => runCommand. Do I need to use mkDeriviation first?
<bhipple[m]> Or is there a more succinct way to do it in one shot?
<infinisil> bhipple[m]: you want to run some command with something from fetchurl?
<bhipple[m]> yes
<infinisil> bhipple[m]: if so, you can just do something like `let src = fetchurl { ... }; in runCommand "foo" {} ''cp -r ${src} $out''`
<adisbladis> bhipple[m]: Something like https://ptpb.pw/foWH/nix
<bhipple[m]> aha, I'll give that a shot, thanks
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis pushed 2 new commits to master: https://git.io/vAY7y
<NixOS_GitHub> nixpkgs/master 9f6f253 Bart Brouns: faust: 2.5.10 -> 2.5.21
<NixOS_GitHub> nixpkgs/master 40c8e9c adisbladis: Merge pull request #34909 from magnetophon/faust...
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis closed pull request #34913: smartgithg: 17_1_1 -> 17_1_4 (master...smartgithg) https://git.io/vAY0k
NixOS_GitHub has left #nixos [#nixos]
<genesis> prefix = /usr/local in a lot of makefile, i used to override to / but should i ,
<genesis> ?
Ross has joined #nixos
<genesis> and prefix=$out is not so convenient when they prepend DESTDIR to $prefix
<Lisanna> I'd like to add some derivations as "tests" to some function I've written in Nix. Meaning, when this function is used, I would like my test to be forced to be built, even though it's not listed as a dependency for any of the real derivations I'm actually trying to build (and probably shouldn't be). Is there a way to force evaluation and building of a derivation when some Nix code gets evaluated?
<adisbladis> Lisanna: You could just add a default.nix with your tests as attributes and build it?
<adisbladis> Or am I misunderstanding?
<Lisanna> err
<Lisanna> I'm trying to gate my function's usage with some tests passing
<Lisanna> I have some pure Nix tests written in the form of asserts
<adisbladis> Ahh check. Now I get it.
<Lisanna> so if someone tries to use this function and it doesn't pass the tests, the asserts will fire
<adisbladis> Hmm..
<Lisanna> one of the tests is a runCommand though, and so I would like to force that runCommand to be built if this function gets used somewhere
<Lisanna> so that an error can be printed if it exits with non-zero
<Lisanna> I keep thinking back to the trace functions, wondering if I could use those somehow
<Lisanna> since they can force evaluation
<Lisanna> not sure if they can force building though
<infinisil> Lisanna: builtins.seq maybe
<infinisil> takes 2 arguments, evaluates the first, returns the second one
<Lisanna> infinisil nope, just tested. forcing evaluation doesn't force building
<infinisil> Lisanna: Oh, how about importing the result of it
<infinisil> then it has to build it to evaluate the nix code
kelleyNif has quit [Quit: Leaving.]
<Lisanna> isn't that only in 2.0?
<infinisil> nah, that's import-from-derivation
<Lisanna> x_x
<infinisil> But you might want to put some meaningful nix in $out
kelleyNif has joined #nixos
<infinisil> or maybe just builtins.readFile actually
<Lisanna> wait, you're telling me if I do: import "${drv}/default.nix" then it will evaluate drv, build drv, and then evaluate the import?
<infinisil> Lisanna: indeed!
<Lisanna> witchcraft
<Lisanna> how did I not know about this
<infinisil> that's what IFD is all about
<Lisanna> I'd never heard of IFD before now
<Lisanna> ugh\
<Lisanna> ...now I need to go back and check over my entire stack to see if I'm doing waay more work than I need to be somewhere
<Lisanna> thank you for telling me about this ^^
<Lisanna> for some reason I thought this wasn't coming until 2.0... I guess I was confusing this with fetching nix code from the internet and then evaluating it
<infinisil> Lisanna: But, IFD is slow
<infinisil> Lisanna: and a no-go for nixpkgs
<Lisanna> I'm sure, it has to do a whole build cycle as part of the evaluation
<infinisil> exactly
<Lisanna> even if the build is cached it'll add a lot of overhead
<Lisanna> will it do the IFD every time it's encountered in a Nix expression, or does it memoize the result?
<infinisil> Lisanna: and what *is* coming with 2.0 is builtins.fetchgit, which can fetch stuff fast during evaluation (the current pkgs.fetchgit does it during build time), which means the result can be used to evaluate nix code without requiring the slow IFD
<infinisil> as far as i understand it
<infinisil> Lisanna: well if the result is built already it won't have to build it again if all the inputs are the same (meaning the result path will be the same)
<infinisil> so it does do caching
<Lisanna> yeah, not talking about the build itself, but the overhead from doing the IFD itself
<Lisanna> so if you use the import in 3 places, do only pay the build overhead penalty once, or three times?
<Lisanna> (Assuming in both cases the /nix/store path for it already exists)
<infinisil> Not sure about the IFD overhead itself
<Lisanna> I'm assuming there's some overhead of checking and retrieving the result from /nix/store, and computing the hash so it knows where to look in /nix/store
<infinisil> Lisanna: only once, the nix daemon won't start more than 1 build on the same derivation
<Lisanna> I guess my general question is does Nix do memoization
<contrapumpkin> same evaluation model as haskell
<infinisil> nix does not do memoization
<infinisil> *But*
<contrapumpkin> well, a thunk is still only evaluated once
<contrapumpkin> so you can build stuff like memocombinators
<infinisil> not sure if this new builtins.memoise is in master
<Lisanna> oh, okay, guessing that's coming in 2.0
Ubercow has quit [Quit: Ubercow]
<Lisanna> anyways, cool, this could be used to write a general-purpose "tryRunCommand" that will return true or false if the given commands succeed or fail
Ubercow has joined #nixos
<Lisanna> ...and with a bit more work, a generic "tryBuild" function
nuncanada has quit [Ping timeout: 256 seconds]
<Li[m]> so if I understand overlays correctly, that could be a way to build a system with different init, or libc. correct?
<infinisil> Li[m]: I think so yeah
slyfox has quit [Ping timeout: 256 seconds]
slyfox has joined #nixos
<contrapumpkin> libc would be tricky
<contrapumpkin> init would work differently
<contrapumpkin> this is more for replacing or tweaking dependencices, or augmenting the package set
<Li[m]> but nixpkgs defines the whole OS
<contrapumpkin> it defines the entire package set, and then nixos is built on top of that
<contrapumpkin> the part that says thou shalt use systemd is just a nixos module
<Li[m]> so we could override `services`
<contrapumpkin> admittedly a module that's super widespread
<contrapumpkin> pretty sure we have packages for other init systems
<contrapumpkin> just not modules that use them
<Li[m]> but lazily called, so a minimal system would be easier to build, right?
<Li[m]> i cant wait to build router images for those constrained cheap mips
<Li[m]> nix is so naturally fit for that
Ubercow has quit [Quit: Ubercow]
<contrapumpkin> porting to different systems can sometimes be tricky
<contrapumpkin> we're still ironing out the kinks in our ARM packages
<Li[m]> I bet
<contrapumpkin> but yeah, it's a good fit for a lot of stuff :)
<Li[m]> arm64 is a really interesting platform too, but the HW is all locked out
<Li[m]> maybe the new ios bootloader code leak can help
<Li[m]> nixos on an iphone?
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xcmw has joined #nixos
<tnks> I'm pretty sure it's possible to retrieve a binary from a Nix cache with just the /nix/store path.
<tnks> I think I did it before, but forget with which commad.
<Ralith> tnks: `nix-store --realise`?
<tnks> Ralith: just /nix/store/hashhashhash-name-whatever?
<Ralith> check the manpage
Ubercow has joined #nixos
schoppenhauer has quit [Ping timeout: 256 seconds]
schoppenhauer has joined #nixos
hamishmack has quit [Quit: hamishmack]
codygman has joined #nixos
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Lisanna> what are all the unique ways in which a derivation can fail to build? The two that I can think of right now are: the process exits with non-zero exit, and failure to produce one of the output paths
<Lisanna> are there any others?
halfbit has joined #nixos
<contrapumpkin> fixed-output derivation hash doesn't match
<contrapumpkin> no available build users :)
<Ralith> various types of resource exhaustion
<Lisanna> OK... slightly different question: if the builder has started executing, what are all the unique ways it can fail to build?
<simpson> What happens if e.g. the build phase doesn't return, but runs forever?
<Lisanna> ...I think nix has a build timeout option?
<Lisanna> that's a good one though
<simpson> What's your goal?
<Lisanna> I'm writing a function called tryRunCommand, which returns true if a given runCommand succeeds, and false if it fails
<Lisanna> so, trying to cover as many bases as feasible so that you get "false" instead of your whole Nix expression evaluation getting interrupted
<simpson> Interesting.
<Lisanna> not sure if I could handle the build timeout one without knowing what timeout value the nix config is set to though
<Lisanna> also infinisil : I tested the IFD thing and if it's already been built once (the /nix/store path exists) it seems to evaluate without any noticeable overhead, so wondering why IFD isn't allowed in nixpkgs if you only need ot pay the penalty once?
<infinisil> Lisanna: there are some comments on github explaining it, hold on I'll try to find them
Lisanna2 has joined #nixos
<Lisanna2> ok, irc might drop, but i check botbot
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bhipple opened pull request #34918: grpc: 1.8.3 -> 1.9.1 (master...grpc-upgrade) https://git.io/vAYNw
NixOS_GitHub has left #nixos [#nixos]
Lisanna has quit [Quit: Lisanna]
aarvar has quit [Ping timeout: 240 seconds]
kelleyNif has quit [Quit: Leaving.]
ditadi has quit [Ping timeout: 240 seconds]
Lisanna2 has quit [Ping timeout: 240 seconds]
Lisanna has joined #nixos
Lisanna_ has joined #nixos
halfbit has quit [Ping timeout: 256 seconds]
<infinisil> Lisanna: Well I can't find them, but the arguments are: distributed builds not possible, cross-compilation not possible, and some other things
<infinisil> or maybe cross compilation is possible
<infinisil> there are some problems with build being run by the evaluator and not the queue runner
<infinisil> Lisanna: https://github.com/NixOS/nix/issues/954 is probably the most relevant
<Lisanna_> infinisil thanks for the references
rauno has quit [Ping timeout: 240 seconds]
hamishmack has joined #nixos
vcanadi has quit [Quit: Page closed]
<petersjt014[m]> I have this nice little command that I picked up somewhere, and can't seem to make it work as a script--not sure how to the escapes work
<petersjt014[m]> ```
<petersjt014[m]> nix-build -E 'with import <nixpkgs> { }; callPackage ./file.nix { }'
<petersjt014[m]> ```
<petersjt014[m]> `file.nix` would be `$1` instead
<petersjt014[m]> at least that's what I tried
Rusty1_ has quit [Quit: Konversation terminated!]
<adisbladis> petersjt014[m]: Single quotes ;)
<adisbladis> petersjt014[m]: '$1' -> '$1', "$1" -> 'file.nix'
<adisbladis> Shells do not do any kind of interpolation in single quoted strings
<petersjt014[m]> single quote is liter and un-literalif?
<petersjt014[m]> I guess that makes sense
<petersjt014[m]> that's what quotes are i guess
<petersjt014[m]> still, the possible nesting doesn't sit well with me
Drakonis has quit [Read error: Connection reset by peer]
<petersjt014[m]> same reason lisp scares me i guess
pie_ has joined #nixos
Arcaelyx has joined #nixos
reinzelmann has joined #nixos
Arcaelyx_ has quit [Ping timeout: 260 seconds]
Guanin has quit [Ping timeout: 268 seconds]
endformationage has quit [Quit: WeeChat 1.9.1]
pie_ has quit [Ping timeout: 240 seconds]
Lisanna_ has quit [Quit: Lisanna_]
Lisanna_ has joined #nixos
dj_goku has quit [Ping timeout: 248 seconds]
lsyoyom has quit [Ping timeout: 268 seconds]
chrisbarrett has quit [Ping timeout: 264 seconds]
dj_goku has joined #nixos
dj_goku has quit [Changing host]
dj_goku has joined #nixos
Guanin has joined #nixos
Lisanna_ has quit [Ping timeout: 256 seconds]
lsyoyom has joined #nixos
Lisanna has quit [Read error: Connection reset by peer]
<infinisil> Probably the cleanest way to do that command is to use '{ file }: with import <nixpkgs>{}; callPackage file {}' and add --argstr file "$1"
rauno has joined #nixos
<infinisil> petersjt014[m]: and make $1 absolute via realpath or so
<infinisil> Which should work with any file names, however odd they might be
pie_ has joined #nixos
Mateon3 has joined #nixos
Mateon1 has quit [Ping timeout: 268 seconds]
Mateon3 is now known as Mateon1
strflw has joined #nixos
Ubercow has quit [Quit: Ubercow]
jmeredith has quit [Quit: Connection closed for inactivity]
taktoa has joined #nixos
Arcaelyx has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<cocreature> does nix 2.0 have a replacement for "nix-env -i"?
orivej has quit [Ping timeout: 240 seconds]
seanparsons has quit [Read error: Connection reset by peer]
MercurialAlchemi has joined #nixos
<infinisil> cocreature: I'd be surprised if it doesn't
<cocreature> infinisil: well nix-env is still a thing, I was wondering about the unified nix command (sorry should have been more precise)
<infinisil> cocreature: Hmm, I thought so too, but it apparently doesn't have a replacement (yet?)
<cocreature> infinisil: at least that means that I’m not just too stupid to find it, thanks :)
<infinisil> cocreature: Pretty much all of the previous commands will still be in nix 2.0 anyways though, stuff like nix-build, etc.
<cocreature> sure but I’d like to use the new shiny things where possible :)
seanparsons has joined #nixos
<infinisil> yea same
Tobba_ has joined #nixos
Tobba has quit [Ping timeout: 256 seconds]
JosW has joined #nixos
ssmike has joined #nixos
hyper_ch2 has joined #nixos
Lisanna has joined #nixos
<Lisanna> i just thought of a way to implement isos in nix
<Lisanna> step 1: use md5 hashes
<Lisanna> step 2: implement a nix drv which calculates md5 collisions
<Lisanna> step 3: modify the two drvs you want to be isomorphic according to what the collision finder says
<Lisanna> (in all seriousness, I wish nix had a feature like this. to choose between two drvs depending on if one is already available)
<Lisanna> but I guess there's no w
<Lisanna> way to test if a nix drv is already built or not
kiloreux has joined #nixos
kiloreux has quit [Remote host closed the connection]
kiloreux has joined #nixos
alex`` has joined #nixos
<infinisil> Lisanna: this is on a higher level than nix
<infinisil> Since it's stateful
<infinisil> So if you want to do something like this, use the commands nix-store, etc. to do the logic
<Lisanna> wait, couldn't I use fixed output derivations for this?
<infinisil> for what?
<Lisanna> if two fixed output drvs have the same output, but a different means of getting there, if one of them was already built, it can just use that cached product, right?
<Lisanna> since they should have the same /nix/store outpaths
<Lisanna> the sha of a fixed output drv only depends on the product, not the inputs, right?
<infinisil> Lisanna: that's not how cryptographic hashes work though, it's practically impossible to do that
boxofrox has quit [Ping timeout: 256 seconds]
Tucky has joined #nixos
<infinisil> yeah sure it would work, if you managed to get the same hash for 2 different things
<infinisil> but that defeats the whole point of fixed output derivations
<Lisanna> "touch $out" vs. echo -n "" > $out
rogue_koder has quit [Quit: Konversation terminated!]
<infinisil> Lisanna: yeah that works, but not sure how this could be useful
<Lisanna> I think I have quite a cool use case for this
<Lisanna> imagine you have a test suite
asuryawanshi has joined #nixos
<Lisanna> there are two ways to run a test from that suite against your reference model: by itself, or with other tests
<Lisanna> and you may want to do one or the other depending on your motivations
boxofrox has joined #nixos
<Lisanna> running one test by itself is faster overall for the one, but slower if you did that for each individual one
<sphalerite_> michalrus: I think you also need gc-keep-derivations
<Lisanna> brb
<infinisil> Lisanna: interesting!
<sphalerite_> michalrus: for example, for hello, hello instantiates to ...-hello.drv which depends on ...-hello.tar.bz2.drv, so ...-hello and ...-hello.tar.bz2 will be kept. Except if you run a GC which deletes the .drvs which are what are keeping the sources alive
Myrl-saki has joined #nixos
<infinisil> Lisanna: but.. you need a hash to even be able to build a fixed-output derivation, which means you'll have to run every test once anyways, and then you have the result and it won't be run again. Updating a single test will update the hash, so you have to do that over again
<infinisil> (if a test change doesn't change the hash, it will use the already built result)
<infinisil> And even if you could have the same hash for 2 ways of doing the tests, you still have to build a single derivation, there's nothing in nix that chooses either derivation
<infinisil> (you need to use nix-store level commands for that, because it's stateful)
orivej has joined #nixos
<Lisanna> infinisil if you specify what the expected result of a test is in the definition of the test, you could compute the sha
<Lisanna> but, that's not ideal
<Lisanna> ideally you run the test against the reference model and record the results, then compare those results against running it against the real thing
Ross has quit [Quit: ZNC - http://znc.in]
<sphalerite_> Li[m]: re "i cant wait to build router images for those constrained cheap mips" I got some nixpkgs-built stuff running on my old router yesterday!!
Ross has joined #nixos
<infinisil> sphalerite_: Li[m] = Lisanna btw
<Lisanna> what
<Lisanna> ...am I?
zzamboni has joined #nixos
kiloreux has quit [Remote host closed the connection]
<sphalerite_> cocreature: AFAIK a replacement for nix-env -i in 2.0 is indeed planned but still not implemented.
<adisbladis> Lisanna: Now you are.
<Lisanna> ...o...ok..
kiloreux has joined #nixos
zzamboni has quit [Client Quit]
zzamboni has joined #nixos
<sphalerite_> Lisanna: yeah your hash collision thing + using md5 as the output hash algorithm could indeed work.
<sphalerite_> In fact I seem to recall seeing some sort of abuse like that in nixpkgs :D
<Lisanna> haha
leat has quit [Ping timeout: 240 seconds]
<sphalerite_> Lisanna: pkgs/applications/networking/browsers/chromium/update.nix
<sphalerite_> I keep getting out of memory while tyring to use nix copy to get some stuff from one machine to another. I'm guessing this is actually "out of process address space" and not "out of available memory" since I've got 32GB of swap... But anyway, I do really need to get these paths across. Does anyone know an alternative solution?
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/9553ca5bb6c (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
zzamboni has quit [Ping timeout: 256 seconds]
<Lisanna> sphalerite_ omg
<Lisanna> that code
<sphalerite_> great isn't it xD
lonokhov has joined #nixos
reinzelmann has quit [Ping timeout: 255 seconds]
<sphalerite_> that only got me so far
<hyper_ch2> you've got an own domain name? oO
<sphalerite_> hyper_ch2: I've had it since before I started using nixos…
<hyper_ch2> :)
<sphalerite_> I think I bought it in 2012 or so
<hyper_ch2> btw, it says it requires more than 256mb ram :)
<sphalerite_> I have more than 256MB RAM :p
freeman42x]NixOS has joined #nixos
<hyper_ch2> that's what they want to make you think
wip_ has quit [Ping timeout: 256 seconds]
<hyper_ch2> sphalerite_: did you already test my script in a vm or real server? :)
<sphalerite_> neither
<hyper_ch2> next, you'll tell me you had better things to do :)
vaninwagen has joined #nixos
<sphalerite_> I did in fact!
<hyper_ch2> sleep? eat? check email?
<hyper_ch2> oh, I forgot, drink coffee
<sphalerite_> sleep, eat, work on my bachelor's thesis
<hyper_ch2> ieeeks
<sphalerite_> ugh no, coffee is horrible
<hyper_ch2> bachelor thesis... it's been over a decade since I had to do something like that
<sphalerite_> drink tea, have pancakes, make music
wip_ has joined #nixos
<adisbladis> Lucky bastards.. I have to do actual work.
<hyper_ch2> adisbladis: like?
asuryawanshi has quit [Remote host closed the connection]
<adisbladis> hyper_ch: Today that means writing java sadly..
<sphalerite_> is there a tool that can resize a FAT filesystem?
<sphalerite_> adisbladis: I feel your pain. No more java for me, at uni at least! :D
<sphalerite_> actually probably still got some in the exams
<hyper_ch2> sphalerite_: can't gparted just expand and shrink it?
<adisbladis> sphalerite: Android :/ So its even worse than just straight java
<sphalerite_> hyper_ch2: I don't have gparted. I want to use the underlying tools
zzamboni has joined #nixos
<hyper_ch2> fatresize?
* sphalerite_ crosses himself at the thought of android dev
<sphalerite_> hyper_ch2: that looks like what I want, thanks
<adisbladis> Its java + insane ui libs (most of which cant be easily unit tested)
<adisbladis> sphalerite: Steer clear if at all possible :)
<sphalerite_> hyper_ch2: "GNU Parted cannot resize this partition to this size. We're working on it!"
<sphalerite_> >_>
<sphalerite_> adisbladis: yeah I've done it once or twice before, was not fun
reinzelmann has joined #nixos
<sphalerite_> this program is all lies
zzamboni has quit [Ping timeout: 260 seconds]
<adisbladis> :D
<hyper_ch2> sphalerite_: fatresize
zzamboni has joined #nixos
<adisbladis> hyper_ch: Which is (iirc) a parted util
<sphalerite_> yeah. That's what I used and what gave me that error message
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] rasendubi closed pull request #34900: yokadi: init at 1.1.1 (master...master) https://git.io/vAmXX
NixOS_GitHub has left #nixos [#nixos]
zzamboni has quit [Ping timeout: 268 seconds]
adfaure has joined #nixos
adfaure has quit [Read error: Connection reset by peer]
<hyper_ch2> adisbladis: that I don't know :)
adfaure has joined #nixos
zzamboni has joined #nixos
<hyper_ch2> sphalerite_: do you have parted also installed? :)
<sphalerite_> hyper_ch2: yeah just tried that. It said "The resize command was removed in parted 3.x"
<sphalerite_> ended up copying the files over, deleting, recreating, and copying them back
roberth has joined #nixos
<hyper_ch2> sphalerite_: :)
<adfaure> Hello Nix, I have a question. I a m using nix on a grid, and I install nix on all nodes of my job. But for some reason, after the installation nix-shell is broken. I get the error: Error in tempdir() using /run/user/114/nix-shell.XXXXXX: Could not create directory /run/user/114/nix-shell.HSTMkg: Permission denied at /nix/store/gy4yv67gv3j6in0lalw37j353zdmfcwm-nix-1.11.16/lib/perl5/site_perl/5.24.3/x86_64-linux-thread-multi/Nix/Utils.
<hyper_ch2> you have so much ram, you can just copy stuff to ram, format stick and put it back :)
<adfaure> Ohh no my bad, I did not read. It is just a permission issue. Sorry for the noise
<sphalerite_> hyper_ch2: no, I copied it to /tmp which is on a HDD. Although the contents of that filesystem woudl have fit into RAM too
wip_ has quit [Ping timeout: 256 seconds]
<sphalerite_> (it's my EFI /boot)
leat has joined #nixos
zzamboni has quit [Remote host closed the connection]
spietz has quit [Ping timeout: 268 seconds]
orivej has quit [Read error: Connection reset by peer]
zzamboni has joined #nixos
<hyper_ch2> efi is just some evil witchcraft :)
<oahong> Hi, Anyone have broken .nix-profile in $HOME? it's a fresh 17.09 installation.
<sphalerite_> oahong: broken how?
Lisanna has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
<oahong> broken symlink, point to non-exists dir.
<sphalerite_> oahong: as in a broken link? It's probably because you haven't got anything in your user profile yet. If you install something using nix-env it will create the first generation of your profile and "unbreak" the link
<sphalerite_> right
<sphalerite_> but even if you don't do that, it shouldn't be a problem
spietz has joined #nixos
asuryawanshi has joined #nixos
<oahong> ok, thanks
asuryawanshi has quit [Remote host closed the connection]
zzamboni has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
zzamboni has joined #nixos
goibhniu has joined #nixos
zzamboni has quit [Remote host closed the connection]
zzamboni has joined #nixos
wip_ has joined #nixos
<hyper_ch2> if flexget could be made to work again, I could move another server to nixos :)
<adisbladis> hyper_ch2: I often do that on my laptop :) Copy files to ram that is
<adisbladis> Git clone to tmpfs <3
arjen-jonathan has joined #nixos
<sphalerite_> adisbladis: doesn't caching usually make that useless, at least for performance?
goibhniu has quit [Ping timeout: 255 seconds]
<sphalerite_> adisbladis: and I don't see why else you'd do it?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] leenaars closed pull request #34910: getdns: init -> 1.3.0 (master...getdns) https://git.io/vAYZw
NixOS_GitHub has left #nixos [#nixos]
<adisbladis> sphalerite_: Yes its not su much for performance I do it
<sphalerite_> what then?
<hyper_ch2> adisbladis: how much ram does your notebook have?
zzamboni has quit [Ping timeout: 248 seconds]
<hyper_ch2> btw, is there any nice littel powerful notebook with 2 nvme slots?
<adisbladis> sphalerite_: It's an excellent way of not having to remember to clean up temp stuff. Like checking out a source tree to make a single patch
<adisbladis> hyper_ch2: 32G
<hyper_ch2> adisbladis: your notebook has more ram than mine :)
<sphalerite_> adisbladis: I just use /tmp for that, and have boot.cleanTmpDir set
thc202 has joined #nixos
<hyper_ch2> I still wonder, all distros I've used so far to clean /tmp upon reboot (or power off... not quite sure when exactely)... only nixos doesn't clean it by default
<hyper_ch2> what was the decision for that behaviour?
<adisbladis> sphalerite_: My /tmp is on tmpfs so :>
<adisbladis> hyper_ch2: Good question.
<hyper_ch2> it just something that strikes me as odd... there's probably a good reason for that default behaviour - I just don't see it
wip_ has quit [Ping timeout: 240 seconds]
<adisbladis> hyper_ch2: It seems to be a very old default: https://github.com/NixOS/nixpkgs/commit/fbf53168f3dc640d63a67f8f7d46d86439979193
<hyper_ch2> how can you find that stuff so quickly?
<hyper_ch2> (but it answered my second question: when stuff will be cleared -> during boot)
<adisbladis> hyper_ch2: Github search?
<sphalerite_> or options search, since that also has a link to where the option is defined
<hyper_ch2> so you use very advanced git-wizzardry
<hyper_ch2> thanks for finding
<adisbladis> Very advanced. Only for level 11 git wizards
<sphalerite_> yes, web interfaces are amongst the highest levels of deep magic
<sphalerite_> s/highest/deepest/
<hyper_ch2> I'm still a level 1 user - https://xkcd.com/1597/
<sphalerite_> I'm the guy mentioned in the alt-text
<sphalerite_> (not for Randall Munroe himself, but for people I've worked with)
<Guanin> I'm trying to build my first package. How can I use slf4j as buildInput? it seems to exist here, but not as a package? Adding maven as build input does not help https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/java-modules/maven-minimal.nix#L133
<sphalerite_> :p
<sphalerite_> Guanin: java stuff in nixpkgs is nasty and hard AFAIK. Maybe not the best target for a first PR :/
<hyper_ch2> sphalerite_: what's your phone number? :)
sigmundv has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peti pushed 3 new commits to master: https://git.io/vAOmC
<NixOS_GitHub> nixpkgs/master 47adc4e Peter Simons: LTS Haskell 10.5
<NixOS_GitHub> nixpkgs/master be67670 Peter Simons: hackage-packages.nix: automatic Haskell package set update...
<NixOS_GitHub> nixpkgs/master 4b39930 Peter Simons: Update hspec family packages to 2.4.8 when building with GHC 8.4.x.
NixOS_GitHub has left #nixos [#nixos]
<Guanin> sphalerite_, I know that java is (by itself) pretty ugly to handle, but I want to use that software on my server :)
<sphalerite_> hyper_ch2: secret :p
<Havvy> sphalerite: Is it 128-230-8028?
<sphalerite_> Guanin: probably easier to just use nix-shell to get the build tools and build it without nix unfortunately. Although maybe we have some java wizards here who can help?
<sphalerite_> Havvy: 555-2368
<hyper_ch2> nox can't find slf4j
<Guanin> I am trying to build filebot ( https://github.com/filebot/filebot ) and my current default.nix looks like this: https://clbin.com/x3bJj The output I'm getting is this https://clbin.com/KCIPK
<adisbladis> Guanin: That file is a part of mavenbuild
<hyper_ch2> "Siri, what is sphalerite_'s phone number?"
<adisbladis> sphalerite's phone number: 01189998819991197253 ;)
<Havvy> (Why are we asking for peoples' phone numbers anyways?)
wip_ has joined #nixos
<adisbladis> I dont know. Phones are a thing of the past
<adisbladis> IRC is the future
<sphalerite_> adisbladis: I like it
<Havvy> The future of the 1980s.
<adisbladis> Havvy: The future used to be better.
john2 has joined #nixos
<sphalerite_> Havvy: because the xkcd comic hyper_ch2 linked contains an alt-text mentioning the phone number of a git wizards
<sphalerite_> s/s$//
john2 has quit [Client Quit]
<hyper_ch2> Havvy: https://xkcd.com/1597/
<sphalerite_> hah, I haven't caught up on xkcd in a while. The last few ones are great
<hyper_ch2> you haven't rss subscribed to xkcd?
<sphalerite_> I don't even have an rss reader :/
humanoyd has joined #nixos
i-am-the-slime has joined #nixos
<sphalerite_> any recommendations?
<hyper_ch2> do you have a browser?
<sphalerite_> yes
<hyper_ch2> I'm using quiterss currently
<hyper_ch2> (a browser can also display rss feeds)
<hyper_ch2> but I wish there was a rss readers that stores the feeds in maildir format or something and not just one big database file
<sphalerite_> I'd like something I can run in my terminal
ma271 has joined #nixos
<sphalerite_> +1 rss-to-email would be practical. Actually I think I looked into that a year ago or so
wip_ has quit [Ping timeout: 256 seconds]
<hyper_ch2> newsbeuter / newsboat
<sphalerite_> Then I could use mutt as my rss client!
<adisbladis> I was using that one for years (before that server died)
<sphalerite_> Once I've got it actually set up as my mail client >.>
<adisbladis> sphalerite: Works really well
<hyper_ch2> rss2email is also packaged for nixos
<sphalerite_> it is?? It wasn't when I was experimenting with it
aerozephyr has joined #nixos
<sphalerite_> thanks Profpatsch !
<Guanin> Okay, I found a forum post that matches my issue exactly, but I do not have any idea how to translate it to nix: https://www.filebot.net/forums/viewtopic.php?t=4052#p28932
<hyper_ch2> it's in unstable-small and possbily in different channels as well
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] samdroid-apps opened pull request #34919: WIP/requesting-comment: add plotinus and module (master...wip-plotinus) https://git.io/vAOYr
NixOS_GitHub has left #nixos [#nixos]
<sphalerite_> hyper_ch2: since it was added last APril it should be in all the maintained channels
<hyper_ch2> I'd actually might test rss2email
wip_ has joined #nixos
rauno has quit [Ping timeout: 268 seconds]
<hyper_ch2> instead of running a seperate rss reader, I can just create a new mail account and use sieve to filter things into subfolders/categories
<hyper_ch2> that's something for the weekend to do :)
<sphalerite_> let me know how that goes!
ottidmes has joined #nixos
<hyper_ch2> will do so
MP2E has quit [Remote host closed the connection]
spear2 has quit [Ping timeout: 268 seconds]
rauno has joined #nixos
oida has quit [Ping timeout: 256 seconds]
<hyper_ch2> there's one caveat though... I like for xkcd and oots and some other feeds the full url to be loaded, not just the rss entry
<sphalerite> Ooooh oots, haven't read that in ages either... That'll probably be a lot to catch up on, especially since I don't remember where I left off
<hyper_ch2> sphalerite: I'm surprised you know oots
<hyper_ch2> sphalerite: if in doubt, just start over with #1
<hyper_ch2> sphalerite: *spoiler*
Neo-- has joined #nixos
<hyper_ch2> nah, won't spoil
i-am-the-slime has quit [Ping timeout: 268 seconds]
<sphalerite> Yeah... That will take a while xD
<sphalerite> Probably best to do it when I'm done with uni
<hyper_ch2> when you're done with uni you won't have time
<hyper_ch2> because you'll have to work then
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peti pushed 1 new commit to master: https://git.io/vAO30
<NixOS_GitHub> nixpkgs/master afb83e0 Peter Simons: multi-ghc-travis: update to current Git master
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] matthiasbeyer opened pull request #34920: smenu: 0.9.10 -> 0.9.11 (master...update-smenu) https://git.io/vAO3u
NixOS_GitHub has left #nixos [#nixos]
<sphalerite> hyper_ch2: not before I start working!
<adisbladis> Ugh -.- Shitty npm (or more specific: shitty M$)
<adisbladis> Circular dependencies -.-
<sphalerite> Holy crap tinc's closure with musl for MIPS is only 4.1MB! I can probably run it on my old router :D
vidbina has joined #nixos
sud0x3 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] leenaars opened pull request #34921: getdns: init at 1.3.0 (master...getdns) https://git.io/vAO3S
NixOS_GitHub has left #nixos [#nixos]
<adisbladis> sphalerite: <3
<sphalerite> (And it builds with nix!!!)
fractal- has quit [Ping timeout: 240 seconds]
zzamboni has joined #nixos
zzamboni has quit [Client Quit]
zzamboni has joined #nixos
<{^_^}> Channel nixos-17.09 advanced to https://github.com/NixOS/nixpkgs/commit/395fe7f8bcb (from 32 hours ago, history: https://channels.nix.gsc.io/nixos-17.09)
<WilliamHamilton> hi, anyone has an idea about why the command `pdflatex somefile.tex` complains about the lack of ifxetex.sty, even if I think it's installed? I could not find anything in the nixpkgs issue tracker
<WilliamHamilton> here is the relevant part of my nixos configuration:
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] edolstra closed pull request #1859: Nix stats: flatten statistics (master...flatten) https://git.io/vAtbv
NixOS_GitHub has left #nixos [#nixos]
* WilliamHamilton sent a long message: WilliamHamilton_2018-02-13_10:12:42.txt <https://matrix.org/_matrix/media/v1/download/matrix.org/QGJdpdZCjyaJiDYoBULeVJxU>
fractal- has joined #nixos
patrl has joined #nixos
strflw has quit [Quit: WeeChat 2.0.1]
<adfaure> Hello, is someone familliar with the buildRustPackage please. The registry doest not find one of my dep, I have to use the unstable channel. It is not something that I want to do. Do you know if I have another solution please? I hope my question is clear. Thx in advance.
<michalrus> sphalerite: ooooh, thank you! I’ll check that out immediately.
mrkgnao has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #34905: kresd service: add listenTLS option (master...p/kresd-TLS) https://git.io/vAYIi
NixOS_GitHub has left #nixos [#nixos]
carter has quit []
ssmike has quit [Remote host closed the connection]
ssmike has joined #nixos
carter has joined #nixos
patrl has quit [Quit: WeeChat 1.9.1]
patrl has joined #nixos
<sphalerite_> What standard should one hold programs (particularly nix in this case!) to when they're run with stdout closed?
<sphalerite_> Because I just discovered that nix will write standard output stuff to its database lock file in that scenario.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jlesquembre opened pull request #34922: fd: install fish shell completions (master...fd) https://git.io/vAOcS
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jlesquembre opened pull request #34923: autojump: install fish shell completions (master...autojump) https://git.io/vAOc5
NixOS_GitHub has left #nixos [#nixos]
feepo has quit []
lonokhov has quit [Quit: Lost terminal]
feepo has joined #nixos
zzamboni has quit [Quit: Leaving.]
dejanr has quit [Quit: WeeChat 2.0]
adfaure has quit [Ping timeout: 260 seconds]
dfranke has quit [Ping timeout: 255 seconds]
Tucky has quit [Quit: WeeChat 2.0.1]
strflw has joined #nixos
strflw has quit [Quit: Byyyeee]
strflw has joined #nixos
strflw has left #nixos [#nixos]
<ij> Is there a a nix 1.11 → 1.12 cheat sheet?
simukis has joined #nixos
<hyper_ch2> sphalerite_: also tried wireguard?
<sphalerite_> hyper_ch: no, tinc seems to be right for my purposes
zzamboni has joined #nixos
ssmike has quit [Ping timeout: 256 seconds]
rgrinberg has quit []
rgrinberg has joined #nixos
goibhniu has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] edolstra pushed 2 new commits to master: https://git.io/vAOlE
<NixOS_GitHub> nix/master 1c10a74 Eelco Dolstra: Merge branch 'plugins' of https://github.com/shlevy/nix
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nix/master 88cd2d4 Shea Levy: Add plugins to make Nix more extensible....
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] edolstra closed pull request #1854: Add plugins support (master...plugins) https://git.io/vATaa
NixOS_GitHub has left #nixos [#nixos]
<ij> What's nix 1.12 for "nix-build -E …"?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #34833: notmuch-addrlookup: 7 -> 9 (master...notmuch-addrlookup) https://git.io/vAtDs
NixOS_GitHub has left #nixos [#nixos]
cmacrae has joined #nixos
<cmacrae> Hey guys - is 'nix-prefetch-git' available in any package in any channels? I found it in the git tree under 'fetchgit' but I can't see that package in any channels
Neo-- has quit [Ping timeout: 260 seconds]
zzamboni has quit [Quit: Leaving.]
<cmacrae> I want to be able to arbitrarily run that script to get the hash of remote repos
zzamboni has joined #nixos
cmacrae has quit [Read error: Connection reset by peer]
cmacrae has joined #nixos
<michalrus> sphalerite_: oh. :( Look:
<michalrus> gc-keep-derivations
<michalrus> If true (default), the garbage collector will keep the
<michalrus> It’s true by default…
ThatDocsLady has joined #nixos
<hyper_ch2> cmacrae: just add nix-prefetch-git to your list of installe systempackages
<hyper_ch2> or nix-env -iA nixos.nix-prefetch-git
romildo has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nix/master 081f14a Shea Levy: Allow using RegisterPrimop to define constants....
<NixOS_GitHub> [nix] edolstra pushed 2 new commits to master: https://git.io/vAO8s
<NixOS_GitHub> nix/master 7828dca Eelco Dolstra: Merge branch 'register-constant' of https://github.com/shlevy/nix
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] edolstra closed pull request #1855: Allow using RegisterPrimop to define constants. (master...register-constant) https://git.io/vATDY
NixOS_GitHub has left #nixos [#nixos]
patrl has quit [Ping timeout: 252 seconds]
<cmacrae> hyper_ch2: Oh... I thought it wasn't there because I couldn't find it when looking with 'nix-env -qaP'
<cmacrae> Thanks!
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] edolstra closed pull request #1775: installer: create 'enough' build users (master...darwin-build-users) https://git.io/vNewF
NixOS_GitHub has left #nixos [#nixos]
p_l has quit []
zzamboni has quit [Quit: Leaving.]
p_l has joined #nixos
<hyper_ch2> cmacrae: I use "nox"
chrisbarrett has joined #nixos
<Yaniel> huh, I thought I can use nix-shell -p to get a dev environment for a package in nixpkgs
__monty__ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] andir opened pull request #34924: qpdf: 7.0.0 -> 7.1.1 (master...qpdf-7.1.1) https://git.io/vAO4f
NixOS_GitHub has left #nixos [#nixos]
zzamboni has joined #nixos
TonyTheLion has joined #nixos
<TonyTheLion> hi, does anyone here know what this means: "hydra-server.service: Job hydra-server.service/start failed with result 'dependency'."?
chrisbar1 has joined #nixos
isaac__ has quit []
isaac__ has joined #nixos
<Yaniel> ah, it is -A and I don't need -I to use a custom nixpkgs
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] andir opened pull request #34925: [17.09] qpdf: 6.0.0 -> 7.1.1 (release-17.09...17.09/qpdf-7.1.1) https://git.io/vAO4Z
NixOS_GitHub has left #nixos [#nixos]
babyflakes has quit []
vidbina has quit [Ping timeout: 256 seconds]
gleber_ has quit []
gleber_ has joined #nixos
babyflakes has joined #nixos
slyfox_ has joined #nixos
slyfox has quit [Ping timeout: 240 seconds]
cmacrae has quit [Remote host closed the connection]
cmacrae has joined #nixos
cmacrae has left #nixos [#nixos]
hoverbear has quit []
hoverbear has joined #nixos
slyfox has joined #nixos
silver has joined #nixos
slyfox_ has quit [Ping timeout: 240 seconds]
kim0 has joined #nixos
zzamboni has quit [Quit: Leaving.]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] andir closed pull request #34924: qpdf: 7.0.0 -> 7.1.1 (master...qpdf-7.1.1) https://git.io/vAO4f
NixOS_GitHub has left #nixos [#nixos]
<michalrus> sphalerite_: it’s this one https://github.com/NixOS/nix/issues/719 :/
<michalrus> + import-from-derivation
zzamboni has joined #nixos
* michalrus sighs
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] andir pushed 4 new commits to release-17.09: https://git.io/vAOB2
<NixOS_GitHub> nixpkgs/release-17.09 8d9dda8 Vladimír Čunát: qpdf: nitpicks after update...
<NixOS_GitHub> nixpkgs/release-17.09 6060847 Andreas Rammhold: qpdf: 6.0.0 -> 7.0.0 (fixes several CVEs)...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/release-17.09 bc62cd9 Andreas Rammhold: qpdf: 7.0.0 -> 7.1.1...
zzamboni has quit [Client Quit]
zzamboni has joined #nixos
cbarrett has quit []
dgpratt has quit []
dgpratt has joined #nixos
cbarrett has joined #nixos
zzamboni has quit [Client Quit]
zzamboni has joined #nixos
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] andir closed pull request #34676: diffpdf: move to using qt5 (master...feature/diffpdf-qt5) https://git.io/vAvfD
kelleyNif has joined #nixos
<__monty__> Have a remote buildserver setup and it works great but transfering 100s of MBs of missing derivations to the server is quite annoying, especially since there's also a binary cache running on this server. How do I avoid this step, just having the remote buildserver get everything from the cache just like how my local machine gets all these things from the cache?
rodarmor has quit []
rodarmor has joined #nixos
znc-user has joined #nixos
humanoyd has quit [Quit: WeeChat 2.0.1]
oida has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] mdorman opened pull request #34926: Semi automated emacs package updates (master...semi-automated-emacs-package-updates) https://git.io/vAOEd
NixOS_GitHub has left #nixos [#nixos]
<sphalerite_> __monty__: if you're using nixUnstable, there's --builders-use-substitutes
<sphalerite_> __monty__: I think it will only use caches configured on the server, so you may have to add itself to its config
<__monty__> sphalerite_: Ah, good news. I run a stable nix but I assume it won't be long until this is released?
<sphalerite_> nix 2.0 should be released and default in 18.03 I believe
<__monty__> How would I configure this option in nix.conf?
<dtz> anyone running Nix 2.0 with recent NixOS-master around and have a second? Would appreciate help trying to reproduce (or not) https://github.com/NixOS/nixpkgs/pull/34916#issuecomment-365248112 in a dtzWill-less setup ;) :)
lonokhov has joined #nixos
<sphalerite_> I think builders-use-substitutes = yes
znc-user has quit [Quit: ZNC 1.6.5 - http://znc.in]
<sphalerite_> dtz: I can give it a shot
<dtz> \o/. Just rebuild 'xz' lol, nix-build '<nixos>' -A xz --check
zzamboni has quit [Quit: Leaving.]
chrisbar1 has quit [Ping timeout: 256 seconds]
<sphalerite_> dtz: so just git fetch refs/pull/34916/head && git checkout FETCH_HEAD && nix build -f . xz ?
<dtz> no PR needed, just latest nixpkgs (or w/e you're running)
<dtz> that PR should fix the problem, I'm hoping to find evidence the problem already exists
<dtz> or that it doesn't and I have some environment/config bug somehow :)
mrkgnao has quit [Ping timeout: 240 seconds]
<sphalerite_> ah ok
kelleyNif has quit [Quit: Leaving.]
<sphalerite_> uh... it just fetched it from the binary cache
dejanr has joined #nixos
<dtz> right, hence --check
<sphalerite_> oh wait I'm still on 1.12
xcmw has joined #nixos
<sphalerite_> right
dejanr has quit [Client Quit]
<dtz> haha noooo xD
<dtz> although maybe that's for the best xD
<sphalerite_> don't worry, switching right now :D
<sphalerite_> this is on a machine that I'm likely to reinstall soon anyway
Synthetica has quit [Quit: Connection closed for inactivity]
coot has joined #nixos
zzamboni has joined #nixos
Neo-- has joined #nixos
kelleyNif has joined #nixos
<TonyTheLion> > hydra-init-pre-start [28456]: createuser: creation of new role failed: ERROR: role "hydra" already exists
chrisbarrett has quit [Ping timeout: 276 seconds]
<TonyTheLion> so my hydra fails because the role 'hydra' in the db already exists???
<TonyTheLion> why doesn't it just use the existing role
asuryawanshi has quit [Ping timeout: 240 seconds]
asuryawanshi has joined #nixos
knupfer has joined #nixos
dejanr has joined #nixos
kelleyNif has quit [Quit: Leaving.]
<TonyTheLion> fixed it, .db-created was no longer in the /var/lib/hydra dir. recreating it with the right ownership let me restart all the services
pallav has joined #nixos
<sphalerite_> dtz: xz built fine with --check on nixpkgs b1ba405c3c4555f18fd22c2de0cc1ccdb4d19073 and nix 2.0pre5889_c287d731
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] lheckemann opened pull request #1861: Fix #1762 (master...write-failure-fixes) https://git.io/vAO2R
NixOS_GitHub has left #nixos [#nixos]
<dtz> sphalerite_: $#!%% okay. thank you! Dumb q maybe, but do you have sandbox enabled?
velovix has quit [Remote host closed the connection]
velovix has joined #nixos
<sphalerite_> I do not! Trying again with it
<sphalerite_> also could you have a look at the PR above? Since you're the only one who reacted to the issue it fixes :p
tmaekawa has joined #nixos
<sphalerite_> I keep forgetting that the sandbox isn't enabled by default :/
<sphalerite_> I did get error: derivation '/nix/store/1w1sqwcawm97cwpj5nfqkn9d9q5awsh7-xz-5.2.3.drv' may not be deterministic: output '/nix/store/khh0hwhrzpmjb5fijxrcm0s1iapkl9jg-xz-5.2.3-bin' differs
<sphalerite_> but it built alright
<dtz> \o/ that's progress. If you look at the log, during configurePhase, what's on the line starting with "checking for a shell that conforms to POSIX..."
<dtz> ?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz pushed 2 new commits to master: https://git.io/vAO29
<NixOS_GitHub> nixpkgs/master 9bbe112 Elis Hirwing: php: 7.1.14 -> 7.2.2
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 08d3754 Franz Pletz: Merge pull request #34705 from etu/php-upgrade...
<dtz> sphalerite_: are you lheckemann?
<sphalerite_> yep
<dtz> and yes, looking! :)
kelleyNif has joined #nixos
<sphalerite_> checking for a shell that conforms to POSIX... /bin/sh
nh2[m] is now known as nh2[m]1
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] shlevy pushed 1 new commit to master: https://git.io/vAO2p
<NixOS_GitHub> nix/master 99562cd Shea Levy: Enable specifying directories in plugin-files.
NixOS_GitHub has left #nixos [#nixos]
<shlevy> Ooops
<dtz> lol @ "catch (SysError &e) { _good = true; ...}" haha. Even if it's right it looks wrong xD. Anyway looking.
<dtz> oh darn it re:/bin/sh lol
<shlevy> force-pushing that hoping no one notices :'(
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] shlevy force-pushed master from 99562cd to f471aac: https://git.io/vAOae
NixOS_GitHub has left #nixos [#nixos]
<dtz> sphalerite_: and you're not using my PR that fixes things, right? O:) :(
nh2[m]1 is now known as nh2[m]
<sphalerite_> dtz: nixpkgs b1ba405c3c4555f18fd22c2de0cc1ccdb4d19073, which was master 20 minutes ago or so
<dtz> shlevy: teehee
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] shlevy opened pull request #1862: Enable specifying directories in plugin-files. (master...plugin-dirs) https://git.io/vAOaI
NixOS_GitHub has left #nixos [#nixos]
<Myrl-saki> make[2]: *** No rule to make target 'libclang-NOTFOUND', needed by 'clang-server-2.0.0'. Stop.
<dtz> okay. Well, what the heck. :(.
<Myrl-saki> I used `nix-shell -p cmake clang`
<sphalerite_> dtz: no, I'm pretty sure that _good = true was wrong
dejanr has quit [Quit: ZNC 1.6.5 - http://znc.in]
<sphalerite_> Myrl-saki: my first guess with things not finding deps is always "add pkgconfig"
<Myrl-saki> sphalerite_: Dammit. True.
<Myrl-saki> That was stupid of me.
<dtz> Myrl-saki: you want clang.lib probably, it's a separate output I think
<dtz> err clang.cc.lib I suppose
<sphalerite_> dtz: don't allthe outputs get used when it's in buildInputs?
dejanr has joined #nixos
<Myrl-saki> Both don't work.
<Myrl-saki> nix-shell -p cmake clang.cc.lib pkgconfig --run ./build.sh
<Myrl-saki> That's how I'm doing it.
<sphalerite_> clang-unwrapped.lib ?
ssmike has joined #nixos
<dtz> sphalerite_: oh probably sorry
<dtz> trying to sort out why I'm seeing this and you aren't. Hmm.
<Myrl-saki> error: cannot coerce a function to a string, at /etc/nixos/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:98:11
<Myrl-saki> I'm trying to look at the definition of clangUnwrapped.
<Myrl-saki> clangUnwrapped = llvm: pkg: callPackage pkg { inherit llvm; };
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] zimbatm opened pull request #34927: ruby: remove unsupported versions (master...ruby-remove-old) https://git.io/vAOa1
NixOS_GitHub has left #nixos [#nixos]
<Myrl-saki> clangUnwarpped doesn't seem to be used anywhere else.
isHavvy has joined #nixos
<dtz> 10 points to sphalerite_ for the tests in that PR. Nice!
<pallav> Can anyone here guide me with setting up a new mirror (of cache.nixos.org)?
<pallav> We want to set one up in our institute
<pallav> I looked at previous attempts, and found one issue and one mention on a mailing list
<pallav> But the `nix copy` command seems to be downloading packages one by one, which is horribly slow
dejanr has quit [Quit: ZNC 1.6.5 - http://znc.in]
vaibhavsagar_ has joined #nixos
Havvy has quit [Ping timeout: 256 seconds]
coot has quit [Quit: coot]
<Myrl-saki> buildInputs = [ boost llvmPackages.libclang ]
<Myrl-saki> Oh wait
<Myrl-saki> That's on master.
<Myrl-saki> Dammit, is .libclang only in master?
<symphorien> Myrl-saki: use nix-locate
<Myrl-saki> symphorien: It uses cmake or something. I have no idea how to do this.
zzamboni has quit [Quit: Leaving.]
<symphorien> I mean : nix-locate libclang.so
<Myrl-saki> IS there a nix-shell-like-thing that does ${} subsitition?
<Myrl-saki> OH
<dtz> pallav: do you mean nix copy only downloads packages one-by-one when using your cache, or that populating the cache is terribly slow because it does it one at a time?
zzamboni has joined #nixos
<Myrl-saki> I don't have nix-locate on my system.
<Myrl-saki> nix-shell -p cmake llvmPackages.clang-unwrapped pkgconfig --run 'export EXTRA_CMAKE_ARGS=-DPATH_TO_LLVM_ROOT=${llvmPackages.clang-unwrapped}; ./build.sh'
<pallav> dtz: Populating the cache for the mirror is slow. I am assuming its because its downloading one at a time (from cache.nixos.org)
<Myrl-saki> But ${} is being used with the shell. How do I make nix intercept that?
<symphorien> Myrl-saki: install nixpks.nix-index to unlock it
<dtz> IIRC I had similar concerns when populating a cache, ended up creating local binary cache and sync'ing it with some S3 tool I found that ran in parallel .. and crashed periodically, lol :(
<manveru> Myrl-saki: you can use ${nix-build --no-out-link -A llvmPackages.clang-unwrapped}
<Myrl-saki> manveru: True.
<Myrl-saki> Thanks.
<dtz> so it's likely cmake is just being bad at finding libclang
<dtz> llvm's cmake bits are tricky and often misused
<dtz> and our splitting into multiple outputs doesn't help much
<pallav> dtz: Even with an s3 tool, how do you know what you need to download (what urls need to be synced). Is there a way to recursively clone the s3 bucket?
oida has quit [Ping timeout: 265 seconds]
<Myrl-saki> Wtf
<Myrl-saki> Oh, -A, not -p
<Myrl-saki> echo $(nix-build --no-out-link -A hello)
<symphorien> Myrl-saki: at this point of complexité you might prefer making a shell.nix like https://github.com/symphorien/nix-du/blob/master/shell.nix
asuryawanshi has quit [Ping timeout: 255 seconds]
<symphorien> complexity* sorry
xcmw has quit [Ping timeout: 276 seconds]
reinzelmann has quit [Quit: Leaving]
<sphalerite_> pallav: what about making it a caching http proxy?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] shlevy opened pull request #1863: Allow includes from nix.conf (master...conf-includes) https://git.io/vAOw2
NixOS_GitHub has left #nixos [#nixos]
xcmw has joined #nixos
<genesis> i stuck with nix-shell, if i try : nix-shell '<nixpkgs>' -A dosbox for example, it's working , but same with my own derivation fail
<pallav> spharelite_: I am setting this up for our institute mirror server. The traditional way the rest of the mirrors are maintained is using rsync, so I hadn't thought of this. I will consider this if I am unable to find a better way.
<TonyTheLion> can you build for ARM on hydra?
<pallav> The number of users is fairly low, caching proxy would still be slow the first time a package is downloaded by a user, so this is not my primary preference
<genesis> (i've only my git nixpkgs , no channel on this profile)
vaninwagen has quit [Ping timeout: 240 seconds]
<sphalerite_> TonyTheLion: Hydra produces builds for aarch64. armv7 is a different story
<genesis> seems i've to provide a -I option :)
<sphalerite_> pallav: yeah… If you really want a complete mirror you will need a *lot* of storage since the official binary cache never gets GCd
<Myrl-saki> symphorien: Sorry, turns out that the build script I was using required patching of llvm.
<samueldr> last known estimate was 60TB
<sphalerite_> pallav: there's a project to get nix working with IPFS which seems to be everyone's ideal solution to the problem, but I'm not sure what the state of that is
raynold has quit [Quit: Connection closed for inactivity]
<TonyTheLion> sphalerite_: it appears I might have needed ArmV7. Guessing its not been implemented?
<sphalerite_> genesis: you can also just do nix-shell ~/nixpkgs -A foo, or if it's your cwd nix-shell -A foo
<sphalerite_> TonyTheLion: it does work, there's just no binary cache
<sphalerite_> TonyTheLion: well, there are actually some unofficial binary caches
<pallav> spharelite_: Can't the mirror be of the packages required by the latest stable and the latest unstable? That should cover 90% of all cases.
<TonyTheLion> oh that might not be such a big issue
<sphalerite_> Dezgeg has one (details at https://nixos.wiki/wiki/NixOS_on_ARM )
<TonyTheLion> so I can build it on a nix-os box for that architecture?
<genesis> oki notice, searshing the pb i've simplified my derivation, a bad for a good
humanoyd has joined #nixos
<sphalerite_> TonyTheLion: it's a bit fiddly. I wrote apost about how I got nixos running on my armv7 chromebook (not a lot of details on how to reproduce it, just the story) https://lugn.sphalerite.org/ghotl/posts/2017-11-10-chromebook.html
<Myrl-saki> symphorien: OTOH, Nix would actually be very helpful on this. :P
coot has joined #nixos
<sphalerite_> symphorien: oooh, nix-du looks cool!
<symphorien> There is at least a segfault I have to hunt before I release it
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] abbradar opened pull request #34928: makeModulesClosure: support firmware (master...firmware) https://git.io/vAOr2
NixOS_GitHub has left #nixos [#nixos]
yann-kaelig has joined #nixos
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/504321761a9 (from 17 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
rauno has quit [Ping timeout: 252 seconds]
<sphalerite_> pallav: in that case a caching http proxy with a service that periodically "reheats" it seems like a reasonable way to do it to me
lord| has quit [Quit: WeeChat 2.0.1]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] abbradar opened pull request #34929: Fix QML designer in Qt Creator (master...qt-creator) https://git.io/vAOr7
NixOS_GitHub has left #nixos [#nixos]
<pallav> sphalerite_: Okay, I'll try that
<sphalerite_> pallav: periodically or on channel bumps, grhmc has a service that lets you subscribe to the events
xcmw has quit [Ping timeout: 240 seconds]
xcmw has joined #nixos
Rusty1_ has joined #nixos
coot has quit [Ping timeout: 256 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] abbradar opened pull request #34930: Fixes for extra flags handling in nixos-install (master...nixos-install-caches) https://git.io/vAOoY
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FlorentBecker opened pull request #34931: Ocaml Janestreet Packages: fix installation path of stub dlls. (master...fixjanestreetstubs) https://git.io/vAOo3
NixOS_GitHub has left #nixos [#nixos]
bennofs1 has joined #nixos
xcmw has quit [Ping timeout: 268 seconds]
mrkgnao has joined #nixos
Drakonis has joined #nixos
coot has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] binarin opened pull request #34932: zsh-autoenv: init at 2017-12-16 (master...zsh-autoenv) https://git.io/vAOKP
NixOS_GitHub has left #nixos [#nixos]
oida has joined #nixos
romildo has quit [Quit: Leaving]
<lewo> grahamc: are you here?
<gchristensen> I am
<gchristensen> lewo: grahamc is my alter-ego. how can I help?
<lewo> grahamc: yes :)
<lewo> grahamc: I've tryed to call the bot, but nohting is happening
<gchristensen> hmm
<gchristensen> link?
<gchristensen> (also, please message me at gchristensen, every time grahamc is pinged it buzzes the phone in my pocket :P )
<gchristensen> lewo: can you try once more?
xcmw has joined #nixos
<lewo> gchristensen: I've tryied
<gchristensen> there you go :)
vidbina has joined #nixos
<lewo> gchristensen: ok, great! thx
<gchristensen> I forgot to deploy your addition at first D: sorry
mkoenig has quit [Remote host closed the connection]
tertleeltret has quit [Quit: Connection closed for inactivity]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 5371811 Benjamin Hipple: grpc: 1.8.3 -> 1.9.1...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] shlevy pushed 2 new commits to master: https://git.io/vAOiU
<NixOS_GitHub> nixpkgs/master d6023f0 Shea Levy: Merge branch 'grpc-upgrade' of git://github.com/bhipple/nixpkgs
Ross has quit [Ping timeout: 248 seconds]
zzamboni has quit [Quit: Leaving.]
mkoenig has joined #nixos
<joepie91> gchristensen: never publicly disclose your notification triggers! :P
zzamboni has joined #nixos
<Rovanion> So I installed xarchiver, by adding it to systemPackages, but its unable to open zip files due to it not finding zipinfo. So my question is: Is it so that packages in nixos has optional dependencies like on debian systems and I need to do something special in order to install them?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] shlevy closed pull request #34918: grpc: 1.8.3 -> 1.9.1 (master...grpc-upgrade) https://git.io/vAYNw
NixOS_GitHub has left #nixos [#nixos]
aarvar has joined #nixos
<lewo> gchristensen: no problem. To be hoonest, I tryied hard to wirte @grahamcofborg case insensitive and github renders it camelcase :/
<joepie91> Rovanion: nope, it should either include the dependency by default or let you enable it as a flag to the package, and the xarchiver package does neither, so it seems it's just a bug :)
<joepie91> Rovanion: best file a bug on nixpkgs about it
pkill9 has joined #nixos
<gchristensen> that isn't a problem, it is case-insensitive. if you manage to type it @GrAhAmCoFbOrG it'd be fine
<sphalerite_> is there an easy way to add an extra symlink to the system profile dir?
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xcmw has joined #nixos
freeman42x]NixOS has quit [Remote host closed the connection]
__Sander__ has joined #nixos
freeman42x]NixOS has joined #nixos
freeman42x]NixOS has quit [Remote host closed the connection]
aarvar has quit [Ping timeout: 252 seconds]
<gchristensen> config.system.extraSystemBuilderCmds
jensens has joined #nixos
<gchristensen> "easy"!
<sphalerite_> great thanks
freeman42x]NixOS has joined #nixos
orivej has joined #nixos
freeman42x]NixOS has quit [Remote host closed the connection]
<Rovanion> joepie91: Issue opened: https://github.com/NixOS/nixpkgs/issues/34933 Did I miss anything?
coot has quit [Quit: coot]
<joepie91> Rovanion: looks good to me
* joepie91 has to go now though
mjvoge02 has quit []
alexteves_ has joined #nixos
mjvoge02 has joined #nixos
elvishjerricco has quit []
orivej_ has joined #nixos
<Rovanion> Thank you joepie91 !
elvishjerricco has joined #nixos
orivej has quit [Ping timeout: 264 seconds]
<Rovanion> For the help.
<joepie91> np :)
oida has quit [Ping timeout: 256 seconds]
oida has joined #nixos
vidbina has quit [Ping timeout: 260 seconds]
parseval has quit []
parseval has joined #nixos
parseval has quit [Max SendQ exceeded]
ancarda has quit []
parseval has joined #nixos
humanoyd has quit [Quit: WeeChat 2.0.1]
parseval has quit [Max SendQ exceeded]
ancarda has joined #nixos
parseval has joined #nixos
Ross has joined #nixos
pallav has quit [Ping timeout: 260 seconds]
ssmike1 has joined #nixos
zzamboni has quit [Quit: Leaving.]
ssmike has quit [Ping timeout: 256 seconds]
ssmike1 is now known as ssmike
srcCoon has joined #nixos
coot has joined #nixos
zzamboni has joined #nixos
aarvar has joined #nixos
ssmike has quit [Ping timeout: 240 seconds]
<genesis> calling buildPhase in the nix-shell should have the same output than in nix-env -i ? or i've to source some makeFlags and so ?
<srcCoon> Is there a difference between 'default' and 'system' profiles? Somehow my root's '.nix-profile' is pointing at the non-existent 'default', while 'system' ones seem to be in perfect synchrony with the system.
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg pushed 1 new commit to master: https://git.io/vAO1S
<NixOS_GitHub> nixpkgs/master 68052b5 Tuomas Tynkkynen: python: Pull ensureNewerSourcesHook call to all-packages.nix...
NixOS_GitHub has left #nixos [#nixos]
codygman has quit [Ping timeout: 260 seconds]
sigmundv has quit [Ping timeout: 276 seconds]
ssmike has joined #nixos
<infinisil> srcCoon: that might be the case for users that never ran nix-env
<__monty__> Does nix-env evaluate the entire nixpkgs when you do nix-env -u?
<sphalerite_> genesis: I think you actually need to do "eval buildPhase"
<sphalerite_> __monty__: yes, in the same way that nix-env -i without -A does
<sphalerite_> !-A
<{^_^}> You'll usually want to use nix-env -i with -A. It's faster and more precise. See https://nixos.wiki/wiki/FAQ/nix-env_-iA for details.
<sphalerite_> ^ mentions -u as well
<__monty__> sphalerite_: Is there a way round this similar to -iA?
ssmike has quit [Ping timeout: 256 seconds]
<__monty__> Ah, thanks.
<__monty__> Hmm, so no simple flag as a workaround?
<genesis> sphalerite_ it seems produce different than buildPhase, that's a bit tricky
<sphalerite_> unfortunately not
<genesis> gnu/stubs-32.h : No such file or directory # include <gnu/stubs-32.h>
adfaure has joined #nixos
<genesis> i don't have that using nix-env hum
<adfaure> Hello, I want to use sed in a package to replace a bash variable formatted as ${var}. but nix try to interpret it; so I use the syntax $${var} to tell nix to escape it... hence sed does not find it anymore. Any tip please ?
<sphalerite_> adfaure: how are you quoting the nix string?
<srcCoon> infinisil: i was just wondering what's the difference between them conceptually. I'm guessing, different use-cases but the rest eludes me.
kiloreux has quit [Remote host closed the connection]
<__monty__> adfaure: Do you need sed rather than just "substituteInPlace "string" --replace "string""?
<adfaure> sphalerite_: Sorry I dont understand your question,
<sphalerite_> adfaure: if it's double quotes, like "foo", you'll want to use \$. If it's doubled single quotes you'll want to use the really ugly ''$
<adfaure> find $out -type f| xargs sed -i -e 's#.*\\$\\{SPARK_HOME\\}/sbin.*#$(echo $out)/sbin#'
<adfaure> I want to replace all ${spark_home} from the script
kiloreux has joined #nixos
sigmundv has joined #nixos
<sphalerite_> yeah you'll probably want to use substituteInPlace as __monty__ says
<adfaure> oh you mean: I use installPhse = ''
<sphalerite_> exactly
<adfaure> ok it is a nix function ?
<__monty__> Sounds like you might be able to just replace the declaration of SPARK_HOME btw.
<sphalerite_> to prevent nix from expanding ${foo} you need to use ''${foo}
<{^_^}> Channel nixpkgs-17.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/c831224528c (from 3 hours ago, history: https://channels.nix.gsc.io/nixpkgs-17.09-darwin)
<sphalerite_> or \${foo} in a string delimited by double quotes
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/staging 1a06373 Tuomas Tynkkynen: Merge remote-tracking branch 'upstream/master' into staging...
<NixOS_GitHub> [nixpkgs] dezgeg pushed 1 new commit to staging: https://git.io/vAOSv
infinisil has quit [Quit: Configuring ZNC, sorry for the join/quits!]
<adfaure> Ok it worked!
<adfaure> Thank you very much.
<__monty__> adfaure: Consider dropping the dependency on sed. Your use case sounds simple enough to do it with just nix.
infinisil has joined #nixos
Drakonis has quit [Ping timeout: 256 seconds]
<adfaure> Ok, I try with substituteInPlace
adisbladis has quit [Ping timeout: 264 seconds]
<adfaure> __monty__: Oh but I need to apply it on every files
nuncanada has joined #nixos
zzamboni has quit [Quit: Leaving.]
<__monty__> adfaure: Here's an example of how you could do this for multiple files: https://github.com/NixOS/nixpkgs/blob/68052b56195715185efed7ccb91733cb4ae5d5f2/pkgs/applications/misc/ranger/default.nix#L33
<__monty__> Not sure how you'd do the equivalent of your find.
<adfaure> Thank you.
<adfaure> It should do with an ls
<__monty__> I think you could use builtins.readDir
<LnL> dezgeg: that diff doesn’t look right
zzamboni has joined #nixos
<__monty__> I'd still consider only changing the definition of SPARK_HOME rather than changing it in place everywhere unless there's a reason. The less you patch the easier it'll be to understand later.
johs has quit []
johs has joined #nixos
<Dezgeg> yeah I may have messed up the conflict resolution
<Dezgeg> but it did build
tmaekawa has quit [Quit: tmaekawa]
<Dezgeg> note that there was a package upgrade in master that presumably made it build with LLVM 5 now
<Dezgeg> i.e. f036df0321e729f4bc7351f15e9c330ff7c83af6
<LnL> oh, libclc was updated?
<LnL> never mind then :D
alunduil has quit [Ping timeout: 255 seconds]
<adfaure> __monty__ : from this file https://github.com/apache/spark/blob/master/sbin/start-master.sh, spark_home is a folder that handles mutable files, and execution script.
<__monty__> Page not found on my end.
jensens has quit [Ping timeout: 256 seconds]
<adfaure> __monty__ : I need to patch only ${spark_home}/sbin otherwise it wont work (however I am not sure it will anyway)
ssmike has joined #nixos
<__monty__> Oh ok, so you do have a reason, then nvm my comments.
<gchristensen> omg mrkgnao
<hyper_ch2> anyone knows of a nice small notebook for linux iwth 2x nvme slots?
<adfaure> Ok, thank you for the help :)
<mrkgnao> gchristensen: o/
pietranera has joined #nixos
<gchristensen> I can't top that
<mrkgnao> so Konsole gives me notifications for IRC pings *and* renders ligatures? sweet
<mrkgnao> well, if you say so
<mrkgnao> :)
<mrkgnao> say, I have a NixOS problem, you free?
<gchristensen> sure
<pietranera> Hello, I am on NixOS and have the unstable channel installed on my normal user, how can I ensure that that channel is picked up by nix-shell? (it seems that the root channel is used instead).
<mrkgnao> so a bunch of operations are failing with "imported archive of /nix/store/$LONG_PATH lacks a signature"
<pietranera> (specifically I am trying to use Python with pandas 0.22 but I end up with pandas 0.20)
<mrkgnao> I'm on unstable
<mrkgnao> likely relevant: when I switched to unstable, I also added a local channel for home-manager purposes
<gchristensen> do you have any extra binary caches or remote builders defined?
<mrkgnao> and there's a name collision there
<mrkgnao> no
<mrkgnao> just the cache.nixos.org one
<mrkgnao> so, e.g. if I do `home-manager switch` the "lacks a..." problem comes up
<mrkgnao> and doing nix-env -iA foo gives me "warning: name collision in input Nix expressions..."
<gchristensen> the collision is probably not relevant to the unsigned path one. is the $LONG_PATH constant or variable?
<mrkgnao> I tried renaming the local channel, but IIRC it broke nix-env, nix-shell etc and I had to revert
<LnL> that means you have both a system and user nixpkgs channel, but that's not related to the signature problem
ssmike has quit [Ping timeout: 256 seconds]
<srhb> pietranera: nix-shell uses whichever nixpkgs is on the NIX_PATH, so you'll need to feed in a different version explicitly when using -p
<mrkgnao> gchristensen: it's the path to the nixpkgs version that home-manager uses
<mrkgnao> sorry, that's wrong
<mrkgnao> it's the path to the home-manager .tar.gz, which is fixed in ~/.config/nixpkgs/home.nix
<pietranera> srhb I tried to override nix-shell with "-I nixpkgs=/path/to/unstable-channel", shouldn't that work too? I have the package definition in a shell.nix file because I need to access the environment.
<LnL> do the paths it's complaining about exist or not?
<srhb> pietranera: Yes, that should work
<pietranera> OK, I am clearly doing something wrong then because I end up with the wrong version of pandas :(
<mrkgnao> they don't
<pietranera> I'm going to give it another go.
<srhb> pietranera: Perhaps you can tell us exactly what you did. :)
<LnL> then nix is trying to substitute them from somewhere
<LnL> do you have any caches / builders or special NIX_PATH configured?
<mrkgnao> no
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] lheckemann opened pull request #34935: ipxe: enable parallel building; allow embed script (master...ipxe-embed) https://git.io/vAOHV
NixOS_GitHub has left #nixos [#nixos]
<LnL> try --option build-use-substitutes false
<gchristensen> mrkgnao: do you have a channel defined for home-manager?
<mrkgnao> LnL: I ran `home-manager switch --option ..." and there's no change, not sure if it's picking up the switch
<mrkgnao> gchristensen: as far as I understand, no
erasmas has joined #nixos
<mrkgnao> LnL: I edited the home-manager source to always add that switch to nix-build, but it didn't change anything
<LnL> I don't think that would be applied until the next switch
<mrkgnao> I installed it with nix-shell /path/to/hm -A install
<mrkgnao> and then tried rerunning `home-manager switch`
<srhb> pietranera: You can test that it works easily with something like: nix-shell -I nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz -p 'python.withPackages (ps: [ ps.pandas ])'
<adfaure> re __monty__ I am sorry, but somehow I dont understand the behaviour of substituteInPlace, I do : substituteInPlace $out/sbin/start-master.sh --replace "''${SPARK_HOME}/sbin" "$out/sbin"
<adfaure> And as a result I get: "${SPARK_HOME}/nix/store/6a65wkiaipfldff5kpss80pyj58pycfm-sparkSt/sbin/spark-config.sh"
mgttlinger has quit []
mgttlinger has joined #nixos
mgttlinger has quit [Max SendQ exceeded]
<infinisil> gchristensen: you motivated me to get irc push notifications, got it working \o/
mgttlinger has joined #nixos
mgttlinger has quit [Max SendQ exceeded]
<gchristensen> nice!
mgttlinger has joined #nixos
<__monty__> adfaure: I think your escape's just wrong "\${..." or drop the quotes entirely and use '' instead of \
<adfaure> __monty__ I already use '' :)
<srhb> It just needs _more_ escaping.
<__monty__> adfaure: '' only works in a ''string''.
<srhb> once for nix, once for bash.
<srhb> :-)
<__monty__> At least that's what I thought. Listen to srhb over me though.
<srhb> No, it's fine
<adfaure> I use this: --replace "''${SPARK_HOME}/sbin" "$out/sbin"
<srhb> I was just thinking that if it's a multiline string that's interpreted by a shell, and you want the literal string ${foo}, you need to not have nix interpret it, so that's ''${foo}, and then you need to have bash not interpret it, so that's \''${foo} -- right?
<srhb> (I may be wrong, escaping always trips me up)
<srhb> Better yet, use single quotes. :-)
<gchristensen> mrkgnao: I have no idea ... it sounds like LnL has a better idea? :$
<adfaure> srhb: And just like that ... it worked. I still magic to me, but I'll take it.
<mrkgnao> is there any way I can trace this?
<mrkgnao> more verbosity, as it were?
<adfaure> srhb: __monty__ : thanks
pie__ has joined #nixos
<gchristensen> rycee: you around?
eacameron has quit []
<LnL> yeah, can you run the nix-build command that home-manager would run with -vvvvvv
pie_ has quit [Remote host closed the connection]
<LnL> mrkgnao: ^
<mrkgnao> one moment
eacameron has joined #nixos
<infinisil> mrkgnao: your problem is that home-manager isn't picking up changes to home.nix?
<mrkgnao> infinisil: it is, but it's failing saying that the .tar.gz doesn't have a signature
<LnL> oh!
<LnL> the tar.gz not other paths?
<mrkgnao> yes, just that tar.gz, afaict
<__monty__> srhb: Wait, where does the shell come into it? Aren't the phases just evaluated by nix?
<srhb> __monty__: No, that'll be bash :)
<mrkgnao> okay, so with -vvvvvv I didn't get anything interesting, just a bunch of extra curl logging
<mrkgnao> LnL: ^
<srhb> __monty__: substituteInPlace is just a shell function
<__monty__> : o TIL
<srhb> __monty__: pkgs/stdenv/generic/setup.sh
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bkchr opened pull request #34936: kde_frameworks: 5.42 -> 5.43 (master...kde_frameworks_5_43) https://git.io/vAO7h
NixOS_GitHub has left #nixos [#nixos]
chreekat has joined #nixos
<srhb> __monty__: You have be gifted with a "how the hell does this work so well?!" feeling.
<srhb> been*
szicari has joined #nixos
ssmike has joined #nixos
betaboon has joined #nixos
<mrkgnao> srhb: alternatively, "I'm terrified it'll suddenly stop working one day and I'll be none the wiser"
<srhb> :-)
cement has joined #nixos
<srhb> It's pretty impressive.
leat has quit [Ping timeout: 256 seconds]
<mrkgnao> trve
<mrkgnao> true*
<mrkgnao> god, those black metal influences never leave do they
<srhb> <3
betaboon has quit [Read error: Connection reset by peer]
<srhb> Okay, the single quote idea was terrible though.
<srhb> It _should_ be '''${foo}' for the literal string '${foo} I think, but...
<srhb> literal '${foo}' even
<srhb> Is there a bug in the parser or am I misunderstanding?
ssmike has quit [Ping timeout: 260 seconds]
<samueldr> ''', the first two escapes to ' since it's not followed by $ afaik
<srhb> Glorious
<__monty__> Are single quoted strings even allowed?
<mrkgnao> can anyone help me with the channel name collision? I have a workaround for home-manager now, but the other one's worrying
<samueldr> there may be a better suited escape than '' ${"'"}''${foo}' ''
<srhb> __monty__: That was to avoid bash interpreting it.
<mrkgnao> just go full zalgo
<srhb> samueldr: Ow :D
<samueldr> (I'd like someone that actually knows nix to answer you though)
<srhb> I think the answer is "what the hell are you doing the rules weren't designed for this"
<samueldr> (I looked at the output results in nix-repl to see what was going on)
<__monty__> mrkgnao: How about specifying NIX_PATH?
<samueldr> yeah, escaping is hell in most situations :)
<mrkgnao> while that would probably work, I'd just like to rename the channels so that they aren't ambiguous any more
<srhb> samueldr: It's easy to produce a string with two single quotes in front though
<__monty__> mrkgnao: And why not do that through NIX_PATH?
<srhb> '''''''${foo}' ''
<srhb> Glorious
<srhb> Can't get one though. :-)
<__monty__> srhb: I'm lost are we talking in the context of a multiline string?
<mrkgnao> LnL: gchristensen: I also get "lacks a signature" failures on doing nix-channel --update
<Myrl-saki> What day is 18.03?
<srhb> __monty__: that and bash. The whole point was to avoid 1) nix interpretation and 2) bash interpretation. bash will interpret "${foo}" but no '${foo}'
<Myrl-saki> Or are stable releases always on the first day of the month?
<srhb> __monty__: But how do you produce '${foo}' in a multiline nix string?
<gchristensen> Myrl-saki: probably at the very very end of March
<Myrl-saki> gchristensen: Oh.
<Myrl-saki> gchristensen: Thanks.
<gchristensen> yeah
<__monty__> Is it not '''${foo}'''?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] andir pushed 5 new commits to master: https://git.io/vAOdV
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master f80b233 Andreas Rammhold: libyaml-cpp: 0.5.3 -> 0.6.1
<NixOS_GitHub> nixpkgs/master 85d0eb7 Andreas Rammhold: interception-tools: removed custom libyamlcppWithoutBoost...
<NixOS_GitHub> nixpkgs/master 77dba48 Andreas Rammhold: openxcom: 1.0.0 -> 1.0.0.2018.01.28...
<infinisil> I should make a guide on escaping strings in nix
<infinisil> or how about a wiki page
<srhb> __monty__: Nope! Two quotes to escape ${
<__monty__> Is it not '''''${foo}'''?
<srhb> __monty__: Nope, that's a syntax error!
<srhb> Oh wait
<srhb> I miscounted.
<srhb> That's, uh...
<clever> !tofu
<{^_^}> 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.
<srhb> That's a syntax error!
<srhb> >_>
<srhb> (I had to try that one)
<samueldr> sequences of single-quotes are... weird... in how they're interpreted by nix
<samueldr> though, it all makes sense in a parser POV
<__monty__> How does this make sense from the parser's pov?
<gchristensen> clever: tofu-ing to get the 0s? :)
<clever> gchristensen: yeah, lol
<LnL> rofl
<gchristensen> I PM {^_^} all the time to get the 0's haha
<Myrl-saki> clever: That doesn't work for a huge download, right?
<srhb> clever: If you practice hard you can hold the zero key for exactly the right amount of time.
<clever> wasnt sure it accepted it in a PM
<clever> Myrl-saki: it would result it in downloading twice
<srhb> Bonus: It works for other keys too!
<Myrl-saki> clever: RIght.
<clever> srhb: i have done that when holding backspace to delete large blocks, lol
<srhb> :D
<Myrl-saki> I use nix-prefetch-url, but I have no idea what the other prefetches are caled.
<srhb> nix-prefetch-git
<LnL> I just remember it's 52 characters and use vim
<srhb> There are no others...
<srhb> :-)
<srhb> LnL: Well, that's just not very creative.
<clever> srhb: and i have messed with the repeat rate to cheat at some web-games, and the shell is practically unusable if you set the repeat rate to max, lol
<Myrl-saki> srhb: I don't know what package has that though. ; n ;
<srhb> clever: This is true :-P
<clever> srhb: let me see...
<Myrl-saki> Oh, it's literally called nix-prefetch-git
<Myrl-saki> I'm stupid.
<srhb> Myrl-saki: nix-prefetch-git conveniently :D
<samueldr> depending on the amount of single quotes, it can treat them as escapes for double-quotes, or escapes for double-quotes with a finished string, starting next an unfinished string
pie__ has quit [Ping timeout: 260 seconds]
<samueldr> escapes for double-singlequotes ** (confusing myself here)
<srhb> samueldr: I think this means we cannot possibly do it.
<clever> srhb: defaults: auto repeat delay: 500 repeat rate: 20
xcmw has joined #nixos
<samueldr> yeah, why ${"''''"} for single quotes lenghts :(
<srhb> samueldr: We can get n*2 single quotes before a ${ for any n though.
JosW has quit [Quit: Konversation terminated!]
<srhb> :-)
<clever> aanndd tthhiiss iiss wwiitthh tthhee mmaaxx rreeppeeaatt ddeellaayy
<clever> wwhheenn ttyyppiinngg nnoorrmmaallyy
<srhb> LOL
<clever> ii ccaanntt eevveenn ttaabb--ccoommpplleettee yyoouurr uusseerrnnaammee,, llooll
<srhb> It's funny because it's probably really fast but it looks like an impression of going REALLY slow.
<clever> iittss wweeiirrdd tthhaatt iittss ddoouubblliinngg uupp,, llooll
<clever> and i had to pre-type the undo command to even have a chance of escaping :P
<samueldr> ag "\\\${\"'"
<srhb> clever, clever.
<samueldr> returns a couple instances of using ${"'"} to escape runs of single quotes
<p_l> Hello. Does anyone use OPAL2 with NixOS, especially with recent patches to enable S3 resume while using it?
<clever> normal: `xset r rate 500 20`, and insane-fast: `xset r rate 1 1`
<srhb> gchristensen: Glorious. :-)
<infinisil> tthhaatt jjuusstt ddoouubblleess mmyy cchhaarrss
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] andir closed pull request #34794: move texstudio from qt4 to qt5 (master...update/texmaker_and_studio) https://git.io/vALzp
NixOS_GitHub has left #nixos [#nixos]
<gchristensen> that original prePatch phase broke my brain AND old versions of Nix :P
<clever> gchristensen: also, you cant .overrideAttrs nix, because the perl-bindings got slapped on with //, rather then .passthru
<gchristensen> I couldn't grok it...
<clever> and .override wipes all of the // junk
<__monty__> srhb, samueldr: How does '''''${ get interpreted? Surely the first three are interpreted as ' and the next two just escape ${?
<clever> nix-repl> ''foo''$bar''
<clever> "foo$bar"
<clever> __monty__: the escape code is actually ''$, not ''${
<clever> gchristensen: oh, fun, ....., perl-bindings is in a let block on the nix/default.nix
<clever> gchristensen: it is imposible to reference it, lol
<__monty__> clever: Ok, but my question still holds. Is it interpreted as ending a '' string then starting a '' string that begins with '$?
<gchristensen> lol
<srhb> __monty__: The first single quote escapes the next two single quotes
<clever> nix-repl> ''foo'''bar''
<clever> "foo''bar"
<srhb> __monty__: And then you're just left with ${
<srhb> brb
<clever> srhb: oh, weird
<clever> that is not what i would have expected from nix
<srhb> That's how I remember the rules at least. I may be mistaken.
<__monty__> Yeah, makes sense.
<__monty__> TIL Multiline strings in nix are evil.
hyper_ch2 has quit [Quit: Page closed]
<samueldr> yeah, had a play in nix-repl and it's... not what you'd generally expect, but probably not something that needs fixing
<gchristensen> multi-line strings are evil?
<clever> __monty__: also, multi-line strings can stip off the common spaces, but not tabs
<samueldr> escaping long runs of single quotes in multi-line strings isn't your usual use-case for multi-line strings :)
<clever> __monty__: if you indent a multi-line string with tabs, the tabs persist
Myrl-saki has quit [Read error: Connection reset by peer]
MercurialAlchemi has quit [Ping timeout: 265 seconds]
coot has quit [Ping timeout: 240 seconds]
xcmw has quit [Ping timeout: 264 seconds]
<__monty__> gchristensen: Anything I don't understand is evil black magic.
oida has quit [Ping timeout: 265 seconds]
zzamboni has quit [Quit: Leaving.]
coot has joined #nixos
<dtz> gchristensen: did borg successfully eval my musl PR?! (!!!!)
<dtz> did I get lucky, or did you fix/improve the memory things?
<gchristensen> link?
velovix has quit [Ping timeout: 268 seconds]
arjen-jonathan has quit [Ping timeout: 248 seconds]
zzamboni has joined #nixos
<dtz> (it appears "yes", I meant to ask it somewhat rhetorically, but regardless hooray! :))
<gchristensen> :o cool!
zzamboni has quit [Client Quit]
ssmike has joined #nixos
zzamboni has joined #nixos
<dtz> maybe after the PR merges borg could eval test w/musl too :3 :3
<dtz> one day :D
<gchristensen> can you fill in some details here?
JosW has joined #nixos
* dtz takes a look
<dtz> fwiw x86 builders can do musl-native too :)
zzamboni has quit [Ping timeout: 260 seconds]
Arcaelyx has joined #nixos
Myrl-saki has joined #nixos
ericsagnes has quit [Ping timeout: 240 seconds]
<gchristensen> aye
<gchristensen> well, maybe you can open an issue and describe what you're looking for :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 9ef5d9c Shea Levy: nix-plugins: Bump for new nix plugin mechanism
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] shlevy pushed 1 new commit to master: https://git.io/vAOhL
kakuzade has joined #nixos
<dtz> yessir and can probably help flesh out the cross thing too
<dtz> although idk what's in "scope" for borg
<dtz> but at least we can narrow down what we're discussing :)
<gchristensen> my goal for borg is to prevent rot
<gchristensen> and to help people who can merge merge things faster, with more knowledge about what a PR is doing to nixpkgs
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] shlevy closed pull request #1844: Add user-defined extra builtins. (master...extra-builtins) https://git.io/vNjVh
NixOS_GitHub has left #nixos [#nixos]
<tnks> I'm having a hard time finding with Google the difference between trusted-binary-caches and extra-binary-caches.
ssmike has quit [Ping timeout: 276 seconds]
asuryawanshi has joined #nixos
<kakuzade> Hi. I need to place a script.sh in the /etc/profile.d folder. How do I do this in NixOS? Can it be done with an expression in /etc/nixos/configuration.nix?
kim0 has quit [Quit: Connection closed for inactivity]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] qknight closed pull request #34906: buildRustCrate: add a postInstall hook (master...rust_build_crate_postinstall) https://git.io/vAYLw
NixOS_GitHub has left #nixos [#nixos]
coot has quit [Quit: coot]
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/9553ca5bb6c (from 13 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] edolstra pushed 2 new commits to master: https://git.io/vA3eC
<NixOS_GitHub> nix/master 7253113 Eelco Dolstra: Merge pull request #1862 from shlevy/plugin-dirs...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nix/master b8739f2 Shea Levy: Enable specifying directories in plugin-files.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] nlewo opened pull request #34939: dockerTools.buildImage: do not add /nix/store in the tar stream (master...fix-34137) https://git.io/vA3eR
NixOS_GitHub has left #nixos [#nixos]
ericsagnes has joined #nixos
lsyoyom has quit [Ping timeout: 256 seconds]
kiloreux has quit [Ping timeout: 260 seconds]
warbo has joined #nixos
<kakuzade> srhb: thanks!
raynold has joined #nixos
roberth has quit [Ping timeout: 256 seconds]
<clever> gchristensen: any ETA on nix 1.13 in nixpkgs?, i'm looking to use builtins.fetchTarball with a sha256
<LnL> 1.13?
<gchristensen> 2.0?
<clever> wait, i think i misread something, let me test some more...
Itkovian has joined #nixos
<clever> gchristensen: ah, i think i see the problem
Arcaelyx has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<clever> gchristensen: builtins.compareVersions says that 1.12pre5873_b76e282d is older then "1.12", so this nix expression doesnt try to use builtins.fetchTarball with a sha256
<dtz> clever: IIRC Nix 2 is slated for 18.03, at least optimistically
<clever> gchristensen: and if i just comment out the check, the 1.11 nix-shell fails, before the 1.12pre nix is ran
<clever> and that led to my confusion
<dtz> haha d'oh
<gchristensen> oops
<clever> and its the host nix 1.11 that has to eval the expressions to provide nixUnstable
<clever> so there is no way to hard-code around compareVersions being dumb
<LnL> clever: I used that in nix-darwin
<LnL> if you add pre the check will work
<clever> LnL: ah, nice
<clever> LnL: and it keeps working for the final 1.12 as well
<clever> error: access to URI 'https://github.com/NixOS/nixpkgs/archive/5c09cdc187b014143302551e62d4973b5bf52814.tar.gz' is forbidden in restricted mode
<clever> and it still fails, lol
lsyoyom has joined #nixos
FRidh has joined #nixos
<clever> its a fixed-output fetch, but restricted mode wont allow it
FRidh has quit [Remote host closed the connection]
<LnL> clever: with <nix/config.nix>?
<clever> LnL: <nix/config.nix> fails hard, because nix and its closure are dis-allowed as of https://github.com/NixOS/nix/commit/43f8ef73c6aeb23aee40d485556004d6262d4e3b ish
<clever> LnL: builtins.fetchTarball with a sha256 fails hard, because its not allowed in restricted mode
<clever> https://github.com/NixOS/nix/commit/920f5fd4dda16374a6c25ae91c5f17ed749c067c is why <nix/config.nix> previously worked, it was just blindly allowing any valid storepath, rather then ones you just produced via IFD
<chreekat> Looks like I can't pass a 'dontPatchELF' attr to the haskell-specific mkDerivation (haskell-modules/generic-builder complains "unexpected argument"). Is that intended? What if I really *want* dontPatchELF?
<LnL> yeah, but only if your client matches the daemon exactly
<clever> chreekat: use .overrideAttrs to insert it after the haskell wrapper has finished its job
<clever> LnL: i dont think that counts when using hydra-eval-jobs, which sets restricted mode
<chreekat> clever: thx. I assume I add that to the result of the mkDerivation call?
<clever> LnL: the builtins.storePath is rejecting paths that you just pulled out of nowhere, because you didnt purely define how they got made
adfaure has quit [Ping timeout: 260 seconds]
ambro718 has joined #nixos
<clever> chreekat: the entire mkDerivation call returns something that is both an attrset, and a derivation, and you can index into the .overrideAttrs attribute to override things
<clever> chreekat: (mkDerivation { ... }).overrideAttrs (drv: { dontPatchELF = true; })
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] timokau opened pull request #34940: sage: Don't build docs by default (master...sage-no-docs) https://git.io/vA3Jh
NixOS_GitHub has left #nixos [#nixos]
<chreekat> clever: thx again. I found the docs for overrideAttrs, too, so I should be set. :)
<ambro718> I am having a problem with Chromium with nixos-unstable: moving the mouse and scrolling within Chromium causes interminnent hangs (tens of milliseconds long), seemingly system-wide as the hangs cause: mouse to stop moving then jump, sound from video in another tab to skip, and also sound from video playing in Firefox to skip.
<clever> chreekat: the problem, is that the haskell mkDerivation passes everything thru this function: https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/haskell-modules/generic-builder.nix#L13-L66
ssmike has joined #nixos
<clever> chreekat: which then calls the real mkDerivation, after mangling your arguments, and inserting the right ghc
<chreekat> Hm
<ambro718> I am not having the same issue when using Firefox...
<clever> LnL: the source implies that it allows fixed-output mode in pure mode
<clever> but that also doesnt match the error i'm getting
the_real_plumps has quit [Remote host closed the connection]
<clever> error: imported archive of ‘/nix/store/jcmcikcs1f69aj6d8415blcjpdlz6f4d-5c09cdc187b014143302551e62d4973b5bf52814.tar.gz’ lacks a signature
<clever> ah, this one again, been a while since ive seen that
mekeor has joined #nixos
<clever> LnL, gchristensen: either of you remember whats up with this one, when using builtins.fetchTarball?
the_real_plumps has joined #nixos
<LnL> clever: I think builtins.fetchTarball might be special
asuryawanshi has quit [Remote host closed the connection]
<clever> the only real difference between fetchurl and fetchTarball, is the boolean unpack
asuryawanshi has joined #nixos
stephenjudkins has joined #nixos
leat has joined #nixos
<{^_^}> Channel nixos-unstable advanced to https://github.com/NixOS/nixpkgs/commit/6acfa356ddc (from 19 hours ago, history: https://channels.nix.gsc.io/nixos-unstable)
lonokhov has quit [Quit: Lost terminal]
kakuzade has quit [Ping timeout: 260 seconds]
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] Ericson2314 pushed 1 new commit to master: https://git.io/vA3k6
<NixOS_GitHub> nixpkgs/master a26b46b John Ericson: offrss: Fix for cross
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] 7c6f434c closed pull request #34940: sage: Don't build docs by default (master...sage-no-docs) https://git.io/vA3Jh
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] matthewbauer closed pull request #1664: Setup nix_path correctly in nix-profile-daemon (master...patch-4) https://git.io/vFCx5
NixOS_GitHub has left #nixos [#nixos]
<clever> LnL: ok, so builtins.fetchurl { url=; sha256=; } fails with error: imported archive of ‘/nix/store/jcmcikcs1f69aj6d8415blcjpdlz6f4d-5c09cdc187b014143302551e62d4973b5bf52814.tar.gz’ lacks a signature
<clever> but import <nix/fetchurl.nix> under 1.11 can pass, and produce the exact same storepath
<clever> and if that path exists, builtins.fetchurl { url=; sha256=; } doesnt fail!
teej has joined #nixos
ssmike has quit [Remote host closed the connection]
ssmike has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] shlevy pushed 1 new commit to master: https://git.io/vA3I0
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master f73b358 Shea Levy: nixUnstable: Bump
pietranera has quit [Quit: Leaving.]
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sigmundv has quit [Ping timeout: 255 seconds]
__Sander__ has quit [Quit: Konversation terminated!]
ma271 has quit [Ping timeout: 256 seconds]
_rvl has quit [Quit: ZNC 1.6.5 - http://znc.in]
_rvl has joined #nixos
warbo has quit [Ping timeout: 256 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 1 new commit to master: https://git.io/vA3qg
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 3b9f687 Tim Steinbach: linux: 4.14.18 -> 4.14.19
max3raza_ has quit [Quit: ZNC 1.6.3+deb1 - http://znc.in]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/release-17.09 d074c84 Tim Steinbach: linux: 4.14.18 -> 4.14.19...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 1 new commit to release-17.09: https://git.io/vA3qN
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 1 new commit to master: https://git.io/vA3mn
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 45e9b7b Tim Steinbach: linux: 4.9.80 -> 4.9.81
<{^_^}> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/c831224528c (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 1 new commit to release-17.09: https://git.io/vA3m8
<NixOS_GitHub> nixpkgs/release-17.09 c33c523 Tim Steinbach: linux: 4.9.80 -> 4.9.81...
NixOS_GitHub has left #nixos [#nixos]
__monty__ has left #nixos [#nixos]
<hodapp> "Exception in thread "main" java.lang.Error: Probable fatal error:No fonts found." oh go die in a fire
<srhb> hodapp: Whatcha packaging?
<hodapp> nothing, just trying to make Sikuli run
<srhb> Ah
<hodapp> their bloody JAR file already packages most of the universe, you'd think they could at least package some fonts or something
niklob has joined #nixos
aerozephyr has quit [Quit: WeeChat 2.0]
<clever> hodapp: that reminds me of fun problems ive had with KSP
<clever> hodapp: mods under KSP just plain cant render text, and it computes the witch of any string as 0 pixels, causing all buttons to shrink
xcmw has joined #nixos
<clever> hodapp: this happens with a patchelf'd KSP, the unpatched KSP under the steam sandbox, and even the bloody windows KSP under wine!!!
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] shlevy pushed 1 new commit to master: https://git.io/vA3Yf
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nix/master 3fe9767 Shea Levy: Fix plugin tests on darwin
alex`` has quit [Quit: WeeChat 2.0.1]
<clever> how the heck did they manage to break all 3 versions so uniformly?
alex`` has joined #nixos
<hodapp> blehhhhhh
ambro718 has quit [Ping timeout: 240 seconds]
bennofs1 has quit [Quit: WeeChat 2.0]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/08d3754a898 (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
JosW has quit [Quit: Konversation terminated!]
orivej_ has quit [Ping timeout: 256 seconds]
mrkgnao has quit [Ping timeout: 260 seconds]
mkoenig has quit [Ping timeout: 260 seconds]
kiloreux has joined #nixos
ssmike has quit [Ping timeout: 255 seconds]
<zimbatm> argh, I need more nix devs for work
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] nlewo pushed 2 new commits to master: https://git.io/vA33X
<NixOS_GitHub> nixpkgs/master 7f454c0 Vincent Demeester: gomodifytags: init at 2017-12-14...
<NixOS_GitHub> nixpkgs/master 596a03e lewo: Merge pull request #33429 from vdemeester/init-gomodifytags...
NixOS_GitHub has left #nixos [#nixos]
kelleyNif has quit [Quit: Leaving.]
mkoenig has joined #nixos
<eacameron> On my new install of nixos for some reason vim doesn't accept the `End` key or the `Delete` key. It either does nothing or does something else.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] nlewo closed pull request #33429: gomodifytags: init at 2017-12-14 (master...init-gomodifytags) https://git.io/vNfCX
NixOS_GitHub has left #nixos [#nixos]
<eacameron> I know very little about terminal config
<eacameron> Any ideas?
<clever> eacameron: i recently heard about zsh having the same problem, and it had to be re-bound in .zshrc
bennofs1 has joined #nixos
<clever> eacameron: it sounds like the terminal emulator is generating the wrong codes for the keys, and that has broken a wide range of things
<eacameron> clever: Re-bound to what?
romildo has joined #nixos
reinzelmann has joined #nixos
<clever> bindkey "\e[H" beginning-of-line
<clever> bindkey "\e[F" end-of-line
sud0x3 has quit [Ping timeout: 248 seconds]
<clever> eacameron: thats the context from the convo i saw about zsh not working right
sud0x3 has joined #nixos
<romildo> Is there a function in nixpkgs to get the major version of a version string? Something like getMajorVersion "1.20.4" would give "1.20" ?
<clever> romildo: might builtins.compareVersions also handle what you want?
Drakonis has joined #nixos
kelleyNif has joined #nixos
<eacameron> romildo: Not awesome but you can use `lib.splitString "." "1.20.4"`
kiloreux_ has joined #nixos
kiloreux has quit [Ping timeout: 256 seconds]
<romildo> clever, eacameron, I want to try to automate updating the mate packages using update-source-version. See for instance the nix expression for atril: https://github.com/NixOS/nixpkgs/blob/0880ec7033c258a73185a2d3382bffb64371d2d6/pkgs/desktops/mate/atril/default.nix#L5
<romildo> clever, eacameron, the version is explicitly split in major version and minor version, and the major version alone is used as a subdirectory in the url.
<eacameron> romildo: I see. As long as the versions don't do anything wonky you can use `lib.concatStringsSep "." (lib.take 2 (lib.splitString "." ver))`
<romildo> clever, eacameron, update-source-version does not seem to support that style of setting the version. So I am thinking about defining only version, without a explicit split and major and minor version, and determine the major version with a nix subexpression in the url.
<Dezgeg> maybe " builtins.match '^([0-9]+)\.([0-9]+)' ver " would also work
Lisanna has joined #nixos
ma271 has joined #nixos
<romildo> Would it be a nice idea to have builtin functions for splitting version strings in major and minor? That would make the nix expression for the derivations less clutter.
<eacameron> romildo: Trouble is the definition of "major" and "minor" is not the same for all versioning schemes
<Dezgeg> well I guess a problem is that I don't think there is a good convention whether 'major' means in say, 1.2.3; is it '1' or '1.2'
stephenjudkins has quit [Remote host closed the connection]
<rycee> gchristensen: I am now :-)
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<clever> Dezgeg: i generally think of 1.2.3 as major version 1, minor version 2, patch version 3
<Dezgeg> yeah that's the most common I think
<clever> where 1 is incremented for massive changes, 2 more for abi level changes, and 3 for minor things where you can mix the binaries between versions
<Dezgeg> that's semver actually, I think
<clever> not that nix allows such mixing, lol
<Dezgeg> or not quite
<rycee> adisbladis: Yeah, it does seem likely that they aren't running tests. Perhaps nobody except we are? :-)
xcmw has joined #nixos
<romildo> My second option would be to define this function locally. Would it be better to define it in pkgs/desktop/mate/default.nix, and inherit it in every derivation underneath mate, or to define it in each derivation. Or even not defining it and calculating the major version directly in the url in each derivation. What do you think?
<michalrus> Hey, so… when I do `nixos-rebuild vm` and in that QEMU try to run `nix-shell -p htop`, it fails with EACCES. Is this expected? :o
<mpickering> Are there any tools which will generate "shell.nix" files with the current version of nixpkgs pinned?
<mpickering> I feel like there should be a very convenient way to pin nixpkgs as your build breaking because you update nixpkgs is one of the worst things about nix imo
<mpickering> it should also be way more convenient to "re-pin" a project if you want to upgrade
<michalrus> s/EACCES/EPERM huh
roberth has joined #nixos
<srhb> mpickering: fwiw I find pkgs ? import (fetchTarball ...) {} to be pretty ergonomic.
<rycee> mrkgnao: Hmm, I've never seen the "imported archive of …" error before. For Home Manager you can use `-I nixpkgs=…` to point out a nixpkgs that you'd like to use. I've never actually used a per-user channel for Home Manager.
<mpickering> srhb: I'm sorry but I don't think it is at all. You have to know the special "magic" to use fetchTarball or import <nixpkgs> and use fetchGithub and so on. Then you have to find the right commit hash you want or the correct source location and then you need to nix-prefetch xxx to get the right sha
<LnL> pretty sure I know what's going on now, but he's not here anymore
<mpickering> This is in the realm as "undefined variable" if you type the wrong thing for "nix-shell -p adasd"
<clever> mpickering: there is also https://nixos.wiki/wiki/How_to_fetch_Nixpkgs_with_an_empty_NIX_PATH but ive just now identified a bug with it, the sha256 is only valid on one version of nix
<srhb> mpickering: OK. :)
<rycee> mrkgnao: Actually, I don't think I use any channel anywhere. Just local checkouts or NIX_PATH having nixpkgs=http://… in it.
<clever> mpickering: and if fetchTarball complains about signatures, its because your nix-daemon is 1.11
<clever> rycee: matrix is doing weird things again, i dont see a mrkgnao on irc
<clever> from my view point, your talking to somebody that doesnt exist :P
Neo-- has quit [Ping timeout: 265 seconds]
smichel17 has joined #nixos
<rycee> clever: Hmm, maybe so. Riot is tab expanding his name so I assumed he was online. In any case, I'm online at the moment so hopefully it'll show up on botbot :-D
<srhb> mpickering: I'm assuming your complaint isn't pinning at a specific revision (url, hash...) but rather that you'd have those incantations created for you at some arbitrary point in time when you type in the command?
<clever> rycee: if 2 matrix users are in the same irc channel, it can show their matrix username, which differs from the irc nickname
<clever> rycee: which then heavily confuses everybody on irc, because irc doesnt show the matrix names
humanoyd has joined #nixos
stephenjudkins has joined #nixos
pie__ has joined #nixos
<srhb> mpickering: (I guess I'm asking what would you *like* to do)
stephenjudkins has quit [Remote host closed the connection]
<mpickering> srhb: Yes essentially but I feel like it is such an important thing to do in projects that it should be a very very easy thing to do. With special syntax or support via config files or something to make it specifying a point in time you knew your environment worked as painless as possible.
stephenjudkins has joined #nixos
<rycee> clever: Ya, I can imagine. He's showing up as @freenode_mrkgnao:matrix.org for me so I guess not a Matrix user, though. Maybe matrix just remembers users for some time?
<srhb> mpickering: Right. Agreed.
<clever> rycee: what has he said most recently?, that should persist
<mpickering> I was hoping someone would have pointed me to the relevant issue ;) but it seems this isn't a burning issue for other users
<srhb> Personally I like 1) not shelling out to non-nix configgy things and 2) just using nix to do the nix things. I would like autogeneration over special support though, which could be easily implemented into cabal2nix etc.
<srhb> I also tend to just carry a nixpkgs.nix around which Does The Thing, so that's what I import instead of <nixpkgs>
<srhb> I personally don't find it very clunky, but I totally get your viewpoint.
<srhb> mpickering: If only dir env hooks were standardized and reliable, we could just set NIX_PATH... :-)
<rycee> Btw, mrkgnao's config looks fine to me but I'm not sure how well Home Manager works with nixUnstable. I've never tried it…
<srhb> rycee: It works fine.
<rycee> srhb: Cool, good to know! :-)
<srhb> wait what, home manager has a nixos module now :o
<mpickering> A tool which generated your "nixpkgs.nix" thing by looking at what your "<nixpkgs>" variable referred to might be good?
<srhb> mpickering: Yeah, that sounds like an excellent approach!
<srhb> It's not always possible to determine the source of <nixpkgs> though
<clever> rycee: aha, he last spoke 3-ish hours ago, and ping timeout'd about an hour ago
<rycee> srhb: Yeah, and it even sort of works!
<srhb> But something can probably be hacked out
<mpickering> right...
<clever> rycee: thats why i dont see him having spoken recently, and cant tab-complete him
<rycee> srhb: I'm using it for declarative containers and nixops deploys.
<srhb> rycee: Exciting. I'll have to convert mine... Soonish. Any day now.
<srhb> Right behind the "swap out all gpg and ssh keys" project.
<srhb> Probably.
<srhb> :-)
<rycee> clever: Ya, I guess matrix is slow in dropping people from the tab completion.
<mpickering> <nixpkgs> just points to a directory right? Is this always a git repo or is it sometimes just a normal directory?
<mpickering> how do channels work?
<srhb> mpickering: It can be many things, including an url to a tarball.
<clever> mpickering: nix-channel manages unpacked tarballs in /nix/store/
<srhb> mpickering: Mine points at a normal git checkout that I manage, usually.
ssmike has joined #nixos
<rycee> srhb: It's a bit beta at the moment and I hope to change the way packages are installed to support `nixos-rebuild build-vm`. This doesn't work right now because HM wants to change the Nix store when it does the activation.
<clever> mpickering: it will download the latest tar over http, unpack it within /nix/store/, and your set of active channels is managed with nix-env, the same as your profile
<srhb> rycee: Ah, right. Okay :)
jtojnar has joined #nixos
<infinisil> srhb: the gpg + ssh keys stuff is on my list too..
<infinisil> I should really make security higher priority
<{^_^}> Channel nixpkgs-17.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/c33c5239f62 (from 80 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-17.09-darwin)
isidore has joined #nixos
reinzelmann has quit [Quit: Leaving]
<infinisil> Hey does anybody know what's up with this: Every time i do suspend, the screen turns off, as it should, but then after a couple seconds it turns on again, as if i pressed a key, but I didn't
fendor has joined #nixos
rihards has joined #nixos
asuryawa_ has joined #nixos
asuryawanshi has quit [Read error: Connection reset by peer]
kwork has quit [Ping timeout: 268 seconds]
<srhb> infinisil: I've had this happen with faulty usb stuff
<srhb> infinisil: Check dmesg
sigmundv has joined #nixos
<srhb> infinisil: I remember having to forcibly unload some usb module to get rid of it, but it wasn't on this laptop so it's not in my config.
vidbina has joined #nixos
<srhb> s/forcibly/manually
<infinisil> srhb: it was because of some usb device connected or just the internal usb driver/hub thing?
<srhb> Internal thing.
<srhb> You can try disabling all of the ones in /proc/acpi/wakeup (make sure you have a way to input things or make the test unattended) to see if that's it
<infinisil> i have nothing plugged in, so it's probably the same problem
<clever> one of my older laptops has a USB smart-card reader, directly under the pcmcia slot, but it never had working linux drivers
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<clever> ive also heard that the mouse in apple laptops is partially usb based
<infinisil> srhb: thanks for the tips, will take a look
<infinisil> I can't really make a whole lot of sense of the dmesg output though
<srhb> infinisil: Sure thing, hope it works out :)
<srhb> OK, just try disabling the wakeups
<srhb> Easier to test that way
<srhb> I think you just echo EHC1 > /proc/acpi/wakeup to toggle the EHC1 wakeup, etc.
* infinisil tries
<infinisil> disabling each one one-by-one and trying
fendor has quit [Read error: Connection reset by peer]
<infinisil> Aha!
<infinisil> It's the lid!
<srhb> Well, that's rather annoying :P
<infinisil> I've actually had problems with the lid before
<infinisil> But that's perfect now, I don't want it to un-suspend anyways when opening the lid
<srhb> Two birds... :)
<infinisil> well okay maybe I do, but it's not important
ssmike has quit [Remote host closed the connection]
<infinisil> This is the first time I'm trying out hibernation, which might be essential, because when suspended my battery seems to be drained
<infinisil> And it works!
isidore has quit [Quit: WeeChat 2.0.1]
<srhb> Great!
<srhb> I don't have swap, so I guess I can't hibernate. :P
<infinisil> I didn't really need swap before, but now I'm glad I have it
<infinisil> Btw, there's something similar to hibernation, but on a per-application basis: https://criu.org/Main_Page
hamishmack has quit [Quit: hamishmack]
<infinisil> I've tried to compile a kernel with the required options for it to work once, but couldn't be bothered to wait for it to finish
<clever> srhb: when i was setting up my new laptop with 32gig of ram, i configured my justdoit.nix script to make a 40gig swap partition, just for hibernation
<clever> srhb: i forgot, that my script works in mb
arjen-jonathan has joined #nixos
<srhb> It's fine, you can still hibernate if you just shut down most applications! :D
<infinisil> lol
<clever> srhb: i'm not sure if the unpacked kernel would even fit inside 40mb
<srhb> Indeed.
<infinisil> needs more types
<clever> infinisil: heh, but how do you deal with mb and gig both being int based?
<infinisil> i swear, eventually I'll abandon bash and use a nice haskell interface for everything
<clever> infinisil: it would need to support 40G as a valid number
<srhb> Plenty of newtypes :)
<clever> infinisil: i dont think even haskell can do that, enless you just do `Gig 40`
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] shlevy opened pull request #1867: Allow plugins to define new settings. (master...register-settings) https://git.io/vA30D
NixOS_GitHub has left #nixos [#nixos]
<infinisil> clever: yeah newtypes can do that
<srhb> clever: Usually you plumb it with some operator to do the logic you need
<srhb> clever: So you end up with 40 # someunitmagic
spietz has quit [Ping timeout: 248 seconds]
<srhb> See for instance the units package.
<infinisil> they wrap a type (e.g. int) with zero cost, but can't be combined with normal int, a totally separate type
Myrl-saki has quit [Ping timeout: 276 seconds]
<clever> infinisil: but what if i want to accept both mb and gig?, and just convert it all down to bytes
<srhb> That's fine.
<srhb> The internal representation can be whatever you like.
spietz has joined #nixos
<srhb> 40 # GiB would just be some sort of smart constructor that is the only way to construct a Bytes value.
<srhb> (For instance)
<clever> ah
<infinisil> I actually wrote a unit library for Swift! There to get 40MB, you'd do `40 * MB` (just a multiplication), while MB is defined as 1000000 bytes, so you'll end up with 40000000 bytes
<clever> infinisil: but what if i want 1024 based units? :D
<isHavvy> MiB
<clever> i can never keep those 2 straight, lol
<infinisil> It's very flexible :)
<infinisil> same
<clever> i just always work in 1024, and always call it mb or MB
<srhb> I remember it like this: Gibi sounds cooler than Giga. 1024 is righter than 1000.
* srhb is very smarts
kiloreux_ has quit [Remote host closed the connection]
<srhb> >_>
Myrl-saki has joined #nixos
kiloreux_ has joined #nixos
<Lisanna> I thought Nix scanned output paths to compute runtime dependencies... but I just did a test where I echo'd a /nix/store path to the output file, and nix-store -qR isn't showing that path as a runtime dependency
<clever> Lisanna: nix only checks for your inputs
<johnw> srhb: or just: bi(inary) is a power of 2
<infinisil> clever: what do you mean by "1024"? What are these last two symbols "2" and "4"?
<clever> Lisanna: so if you hard-code a storepath into your derivation, its not an input, so nix doesnt know to look for it
<Lisanna> clever Ok, that actually makes things a lot clearer
<srhb> johnw: Oh I like that one!
<Lisanna> I was wondering how nix scanned for paths since they can be different lengths...
<srhb> johnw: ... That's why they're named like that. TIL.
<infinisil> heh
orivej has joined #nixos
<hodapp> are there still articles being published about how ternary/trinary is gonna take over and it's better because 3 is closer to e?
<infinisil> srhb: follow-up question: You said you solved your suspend problem by unloading some module, would that work for me too now that i found out it's this lid thing in wakeup?
<Dezgeg> I think nix actually just looks for the hash followed by a dash, i.e.: zzy8hrky147hdp9x994kpp8jg49mg2ad-
<srhb> infinisil: Presumably, but I'm not sure if it's fine grained enough to not take something else with it. The righter approach would be to ensure that that wakeup is disabled.
<infinisil> sooo, how do they get there anyways?
<srhb> mumblemumble kernel mumble driver.
<infinisil> if you happen to know
<srhb> (so no, I don't) :-)
<infinisil> heh
<infinisil> I shall take a google
<clever> infinisil: oh, that reminds me, my laptop goes into standby if i close the lid, and wakes up when i open the lid
<srhb> I'd probably just throw it in a unit.
<infinisil> srhb: I'm inclined to, but it feels so wrong
<clever> infinisil: i fixed discovered that, when i was trying to get behind a desktop, while using a voice chat on the laptop, and the lcd panel was in the way, so i just closed it
<infinisil> srhb: Or just activationScripts probably
<clever> infinisil: then the voice chat went silent, lol
<srhb> Woops :P
<infinisil> clever: i think something is preventing mine from going to sleep when closing the lid when an external screen is plugged it
<infinisil> in*
<clever> infinisil: one sec
<clever> [root@system76:~]# cat /proc/acpi/wakeup | grep -i lid
<clever> LID0 S3*enabled platform:PNP0C0D:00
<clever> infinisil: i can see that LID0 is an enabled wakeup source on my system
<clever> there should be a way to disable that
Ross has quit [Ping timeout: 276 seconds]
<infinisil> There is, srhb just showed me, LID0 > wakeup
<infinisil> but I'd like a permanent solution
<clever> infinisil: and that echo appears to toggle the option!
<clever> so you cant just jam it into an activation script
<clever> it will toggle every time you `nixos-rebuild switch`
<infinisil> clever: oh damn
<clever> so you need to grep, and then conditionally echo
<infinisil> ugh
<srhb> Isn't this sort of thing configurable via sysctl anyway?
<clever> [root@system76:~]# cat /proc/acpi/wakeup | grep -i lid | grep enabled && echo LID0 > /proc/acpi/wakeup
<srhb> Maybe not...
<infinisil> clever: I'll do that if nothing else works
<infinisil> srhb: taking a look at sysctl -a..
<clever> infinisil: also, id use a systemd one-shot service, rather then an activation script
Ubercow has joined #nixos
<clever> infinisil: its far too easy to brick the entire machine with activation scripts
Ross has joined #nixos
<clever> infinisil: a couple months ago, i was helping somebody that tried to do network in his activation script, and it intially worked, via nixos-rebuild switch
<clever> infinisil: and then months after putting it in, he rebooted
<clever> infinisil: the failure to reach the network, causes stage-2 to abort in a weird place, and then $PATH isnt configured properly
<clever> infinisil: and that leads to nixos being unable to find systemd, lol
<infinisil> whew
<Myrl-saki> How do I have a clang which supports these flags but still have it wrapped? -cc1 -fsyntax-only -x c -code-completion-at
<infinisil> Well I wouldn't put *networking* stuff in activationScripts, since that's very fragile
<infinisil> But I think acpi stuff would probably be fine
<Myrl-saki> clang-4.0: error: unknown argument: '-cc1'
<clever> infinisil: just make sure to test it with a full reboot before you let garbage collection eat your rollbacks
<Myrl-saki> clang-unwrapped is fine with it.
<lejonet> Hmm, what is the proper way of ensuring stuff from linux headers being present in a build-env? I'm having troubles with a package that wants asm-generic/errno.h which seems to belong to the kernel headers (nixos.linuxHeaders ? )
<{^_^}> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/c33c5239f62 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
<clever> lejonet: have you tried adding linuxHeaders to the buildInputs?
<Dezgeg> I'd think glibc already provides enough of the headers to have asm-generic/errno.h
<srhb> infinisil: Oh, here. It outputs the sysfs on the far right side
<srhb> infinisil: For instance, platform:PNP0C0D:00
<srhb> infinisil: So.. echo disabled > /sys/devices/platform/PNP0C0D:00/power/wakeup should work I think
<srhb> infinisil: Which makes it at least idempotent :)
<lejonet> clever: that is what I'm thinking about doing, I tried doing a nix-shell '<nixpkgs>' -A linuxHeaders, and didn't get anything in /usr/include, but I probably just don't know how to use nix-shell
<clever> lejonet: first, that gives you a shell suitable for building the linuxHeaders, not using them
<infinisil> srhb: Nice!
<srhb> I haven't tested though!
<clever> lejonet: second, it never puts them in /usr/include, it sets up some env variables so gcc will just find them
<clever> lejonet: instead, try nix-shell -p linuxHeaders
<lejonet> clever: ah, that explains a lot
andrewrk has quit [Quit: ZNC - http://znc.in]
<lejonet> clever: awesome, thanks
sigmundv has quit [Ping timeout: 240 seconds]
<clever> srhb: writing to the wakeup "file" in the right /sys path doesnt have an effect on the /proc/acpi/wakeup output, but it might be several layers of filtering
<srhb> Hm, darn...
<srhb> Too naive :-)
<clever> srhb: would need to actually suspend to confirm if it has any impact
<clever> srhb: and my system also has a glitch, where it sometimes locks up while going into suspend
<clever> it just freezes solid, while leaving the keyboard and lcd backlights on
<clever> so it didnt finish going into suspend
<infinisil> srhb: clever: Actually the entries in /sys/devices and /proc/acpi have different values right now (disabled and enabled), so that's probably not it
<clever> infinisil: same
<srhb> It does not work, indeed. Sorry.
mekeor has quit [Ping timeout: 265 seconds]
<Myrl-saki> Is there a clang wrapper flag that says pass all these to the underlying binary?
<Myrl-saki> clang -cc1 -fsyntax-only -x c -code-completion-at -:62:48 -
<Myrl-saki> Gives me unknown argument
<Myrl-saki> While using unwrapped gives me standard header errors.
adisbladis has joined #nixos
<infinisil> srhb: I have an idea, get the contents of every file in /proc and snapshot this, toggle the option, and snapshot again, then do a diff -r :D
<srhb> yikes :P
<clever> infinisil: several of the files in /proc are magic and do fun things when read
<infinisil> oh no
ssmike has joined #nixos
<infinisil> just when read though??
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 1f18a7c Robert Helgesson: perl-Parallel-ForkManager: init at 1.19
<NixOS_GitHub> [nixpkgs] rycee pushed 2 new commits to master: https://git.io/vA3gE
<NixOS_GitHub> nixpkgs/master 49a24af Robert Helgesson: cloc: 1.74 -> 1.76
NixOS_GitHub has left #nixos [#nixos]
<clever> infinisil: for example, /proc/kmsg removes bytes from a buffer as you read it
<clever> infinisil: so next time you read it, you only get new messages
<infinisil> oh
<infinisil> eh it's gonna be fine, here i go
Ross has quit [Ping timeout: 248 seconds]
<clever> and if you write to /proc/kmsg, it appears in the main dmesg buffer
<infinisil> so it's like a queue
<clever> so you can insert helpfull markers into the real dmesg logs
<infinisil> or named pipe
<clever> i think /proc/kmsg has its own read-pointer within the dmesg loop
<clever> and that persists between opens of the handle
<clever> infinisil: also, /proc/self is a symlink to the pid that is trying to read the symlink
<clever> infinisil: and all of the numbered "directories" exist for every pid, and will vary
<infinisil> didn't work indeed, cpu spinning and doesn't seem to progress
<clever> infinisil: there is also a root symlink under every one of those, that points to /
<infinisil> yeah it got stuck on the very first one even
<infinisil> well it was worth a try
<clever> infinisil: while its hung, find the pid of the process that is hung
<clever> infinisil: then do ls -l /proc/PID/fd/
<clever> what files does it have open?
Ross has joined #nixos
<infinisil> /proc/1/task/1/pagemap
<clever> infinisil: thats a binary file, a bitmap of pages and some state
<clever> and the task directory contains symlinks for every thread in the process
<clever> i suspect its generating a list with the state of every single page in the entire 64bit address space
hamishmack has joined #nixos
rauno has joined #nixos
<lejonet> clever: hmm, odd, it seems like the package has linuxHeaders in its buildInputs, behind a optionals stdev.isLinux, so linuxHeaders should be added to buildInputs, weird
dan_b has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] catern opened pull request #1869: fix the nix-profile scripts to error on bad profile ownership (master...master) https://git.io/vA32d
NixOS_GitHub has left #nixos [#nixos]
<Myrl-saki> I think I know how to do it now.
tmaekawa has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Ericson2314 closed pull request #34645: musl-cross, native-musl, cross fixes, oh my! (staging...feature/musl) https://git.io/vNj1J
NixOS_GitHub has left #nixos [#nixos]
<romildo> When writing a derivation that depends on some packages from a group of packages like gnome3.eog and gnome3.evince, is there any difference between naming them individually (like {pkgs, eog, evince}) or naming just the group (like {pkgs, gnome3}) and then referring to them as attributes in the group (like gnome3.eog) in the derivation?
<clever> romildo: you can only do { eog, evince }: if your file is loaded via something like gnome3.callPackage
<romildo> Is one of these two styles preferable?
<romildo> clever, suppose it is loaded like that.
<clever> romildo: if your going to be using a lot of gnome3 packages, and/or your thing is part of gnome3, then using gnome3.callPackage is usually better
<Myrl-saki> What the hell
<Myrl-saki> I have no idea how the clang wrapper works.
<lejonet> clever: meeh, it seems like the actual include is #include "/usr/include/asm-generic/errno.h" -.- someone was stoopid when they coded that
<clever> Myrl-saki: have you done `which clang` and then just read the bash script it points to?
<Myrl-saki> clever: Yep.
<Myrl-saki> clever: Not extensively, ofc.
tmaekawa has quit [Client Quit]
<Myrl-saki> I'm just doing greps rn.
<clever> lejonet: heh, yeah, nix cant deal with that, all nix does is slap on a ton of -I's
<lejonet> clever: yeah, I would argue that its bad practice to do that, includes _should_ be relative, so that you don't have this stupid problem
<Myrl-saki> Okay. I understand what's happening now.
<Myrl-saki> This is going to be a stupid question.
<Myrl-saki> Is there a way to make a constant variable in bash? lol
<sphalerite> Myrl-saki: readonly foo=bar iirc
<Myrl-saki> sphalerite: Yeah, that's what I tried, but I guess it doesn't work on exec?
<Myrl-saki> readonly dontLink=1; NIX_DEBUG=1 clang -cc1 -fsyntax-only -- slidebuilder.c
<lejonet> clever: hmm, how would I use nix-shell to step, by step, build a package, so that I can modify some stuff in between phases to see if a workaround works before making a patch?
<clever> Myrl-saki: lol, the man page for bash uses both read-only and readonly to refer to read only variables
Ubercow has quit [Quit: Ubercow]
freeman42x]NixOS has joined #nixos
<Myrl-saki> Basically, what happens is that the clang wrapper wants to link if it finds a filename.
<infinisil> clever: How dare they
<sphalerite> Myrl-saki: oh yeah at that point they're just environment variables and the child process can do what it wants
<sphalerite> Wait
<sphalerite> No... I don't get it
<sphalerite> What's the problem?
<Myrl-saki> sphalerite: It mangles the flags.
<clever> lejonet: oh, do you already know what you want to edit?, it might be simpler to use another trick i use
<Myrl-saki> [nix-shell:~/Development/ASCIIVN]$ cat slidebuilder.c | clang -cc1 -fsyntax-only -x c -code-completion-at -:62:48 -
<clever> lejonet: nix-shell '<nixpkgs>' -A hello, then run unpackPhase, and then duplicate the entire source tree with `cp -r`, so you have a new and -orig copy
<clever> lejonet: then edit the new one, and use `diff -ru` to make a patch
<Myrl-saki> That doesn't work, because it passes `-Wl...`, which instructs the linker, which breaks the successive flags.
<lejonet> clever: that is kindof what I wanted to do
<Myrl-saki> Actually, maybe the clang wrapper itself should be patched.
<Myrl-saki> Nah.
<Myrl-saki> I'll just use libclang.
<infinisil> clever: nice!
<Myrl-saki> llvmPackages.libcxxClang
<Myrl-saki> That's not libclang, I believe?
freeman42x]NixOS has quit [Ping timeout: 248 seconds]
Ross has quit [Ping timeout: 255 seconds]
Ross has joined #nixos
<Myrl-saki> TIL
<Myrl-saki> clang-unwrapped seemed to work.
andrewrk has joined #nixos
MP2E has joined #nixos
<sphalerite_> Myrl-saki: my guess is that's libc++
<Myrl-saki> How do I register a root without having it in my user directory?
<Myrl-saki> Maybe I should RTFM first lol
<Lisanna> >wrote a string find/replace function in Nix
<Lisanna> > find builtins.replaceStrings after I get it working
chrisbar1 has joined #nixos
asuryawa_ has quit [Remote host closed the connection]
<Myrl-saki> I just made a .roots directory, so that I can manage it in userspace. This is funnily becoming somewhat imperative.
asuryawanshi has joined #nixos
smichel17 has quit [Remote host closed the connection]
goibhniu has quit [Ping timeout: 248 seconds]
<Myrl-saki> Okay, I need another help now.
<Lisanna> Myrl-saki IMO there should be a NixOS module which lets you give a list of drvs to register as roots or something
<Myrl-saki> If I use `[ clang llvmPackages.clang-unwrapped ]`, which is first in PATH?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bachp opened pull request #34942: Update minio client and server (master...feat/minio-update) https://git.io/vA3XZ
NixOS_GitHub has left #nixos [#nixos]
<symphorien> Lisanna, Myrl-saki : this option exists: https://nixos.org/nixos/options.html#extradepend
<Lisanna> symphorien oh yeah, forgot about that
<mog> cool the musl stuff got merged in
obadz- has joined #nixos
hotfuzz has quit [Ping timeout: 256 seconds]
obadz has quit [Ping timeout: 276 seconds]
obadz- is now known as obadz
knupfer has quit [Ping timeout: 255 seconds]
duckwho has joined #nixos
<Myrl-saki> I swear
<Myrl-saki> One of my biggest gripe about NixOS is probably that configuration.nix doesn't do some things that nix-shell does.
<gchristensen> like what?
<pie__> dtz, i hear musl stuff merged, nice \o/
<Myrl-saki> gchristensen: Libraries for one.
<gchristensen> ah
<Myrl-saki> It's not so much a problem, really. It's pretty pebcaky.
<Myrl-saki> Who here uses Emacs and actually uses emacsWithPackages? I need advice.
ssmike has quit [Ping timeout: 256 seconds]
<Myrl-saki> There's actually an irony-server package. That's surprising.
<Myrl-saki> Actually, I'm all-in for that. For Emacs packages that require a binary, use Nix for the binary, while emacs donwloads the .el, I can see desync of the API/ABI though.
romildo has quit [Quit: Leaving]
<Myrl-saki> The irony. Double irony even. I'm installing a package called irony, and I got jinxed by what I said earlier.
ambro718 has joined #nixos
<infinisil> Myrl-saki: i am using emacswithpackages
<sphalerite_> So it seems I can work around the `nix copy` out-of-memory issue by using nix-store --export | ssh root@foo nix-store --import … it's not pretty but it doesn't seem to be running out of memory. This seems like a serious deficiency in nix copy though
<Myrl-saki> infinisil: Can you send me your .emacs and your configuration.nix?
<infinisil> Am no emacs pro though
<infinisil> And the haskell stuff is just trying out stuff, not sure what's really needed
<Myrl-saki> infinisil: How about the emacsWithPackages?
<Myrl-saki> Err, is that the programs.emacs thing?
<Myrl-saki> Is that a feature of home-manager, or is that actually in NixOS?
<infinisil> Myrl-saki: ah heh, yeah, it's the home-manager module that actually calls emacsWithPackages
<Myrl-saki> Oh okay.
<Myrl-saki> infinisil: Thanks.
<Myrl-saki> I should get around to using home-manager.
<infinisil> I've added some stuff that's not upstream (yet)
<Myrl-saki> infinisil: From what I can see, home-manager seems to be hand-rolling its own NixOS?
<infinisil> Myrl-saki: modules are often very similar
<Myrl-saki> Thanks.
<Myrl-saki> infinisil: How did you install home-manager?
sud0x3 has quit [Ping timeout: 264 seconds]
<Myrl-saki> infinisil: And how do you run it?
<infinisil> But the system and your $HOME have some fundamental differences
* Myrl-saki is half too asleep right now.
<lejonet> srhb: with a small patch, it seems like adevress's ceph package compiles wonderfully
sud0x3 has joined #nixos
sud0x3 has quit [Client Quit]
<lejonet> with sandbox, on nixos
mahalel_ has joined #nixos
<infinisil> So it's integrated with my system config into one rebuild
<infinisil> And I'm using nixops so it's a nixops deploy, but I've wrapped that into a script called "rb" :P
<sphalerite_> lejonet: where is björnen though
<lejonet> sphalerite_: huh?
<Myrl-saki> infinisil: Thanks.
<sphalerite_> lejonet: http://www.lejonetochbjornen.se/ :p
<lejonet> Are you thinking about Lilla Björn och Lilla Tiger? :P
<lejonet> sphalerite_: hahaha, I guess I ate him or something? ;)
<Myrl-saki> infinisil: Really really really appreciated.
<sphalerite_> :o
<infinisil> Myrl-saki: :D
duckwho has quit [Ping timeout: 248 seconds]
<infinisil> The nixops build is rather slow though
<infinisil> I've been meaning to look into making it faster/less necessary
arjen-jonathan has quit [Ping timeout: 264 seconds]
duckwho has joined #nixos
alex`` has quit [Quit: WeeChat 2.0.1]
alex`` has joined #nixos
<infinisil> Ohhhhh, how about this:
<infinisil> Nix-LSP
<infinisil> That would be awesome, and I'm interested in trying this as my bachelors thesis
<cement> bosses are gonna require me to use ubuntu.. problem is that my editor is set up through configuration.nix
yann-kaelig has quit []
<infinisil> For those who don't know: https://microsoft.github.io/language-server-protocol/
<infinisil> cement: what's your editor?
<cement> vim
<infinisil> You using cim_configurable?
<cement> I think so
<infinisil> Because if so, it should also work on ubuntu (will have to extract it from configuration.nix though)
etu has quit [Read error: Connection reset by peer]
<cement> I've got the vimrc
<cement> I'm not confident in the packages that go with that
etu has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dtzWill opened pull request #34943: nginx/modules: use eustas' brotli module, google one is abandoned (staging...feature/ngx_brotli-eustas) https://git.io/vA3Sy
NixOS_GitHub has left #nixos [#nixos]
<sphalerite_> cement: are your bosses going to require you to use ubuntu without installing nix on it?
humanoyd has quit [Quit: WeeChat 2.0.1]
<cement> no, that's only on the NPMs I have to deploy to
<cement> this laptop I can install nix on just fine
<wavewave> how can i check if a directory exists inside a package in /nix/store?
<infinisil> wavewave: huh? I don't understand
<cement> extra, possibly relevant info: I'm using nix itself to manage the vim packages I have installed
<wavewave> I am trying to use 'pathExists' but it complained '/nix/store...' cannot refer to other paths
<wavewave> infinisil: in nix expression.
<wavewave> if I have a nix variable for the package.
<wavewave> to explain further, I am making a function that takes pkg as an argument and check whether "${pkg}/lib" exist.
<sphalerite_> that's a form of import-from-derivation
<lejonet> lol, always fun when nixops deploy stops the network, the small heartattack you get :P
kiloreux_ has quit [Remote host closed the connection]
hiratara has quit [Ping timeout: 276 seconds]
hiratara has joined #nixos
<wavewave> sphalerite_ : i think your message is for me? :-)
<infinisil> wavewave: it would be better to keep that at the build pha
<infinisil> se and not for nix evaluation
<wavewave> infinisil: actually I am now using the function.. "${getLib pkg}/lib"
<wavewave> but getLib pkg does not guarantee it has lib directory.
<infinisil> yeah, what are you using this for?
<wavewave> to suppress warning messages.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jonafato opened pull request #34944: gnome-shell-extension-remove-dropdown-arrows: init at v9 (master...gnome-shell-extension-remove-dropdown-arrows-9) https://git.io/vA3HX
NixOS_GitHub has left #nixos [#nixos]
<wavewave> since it indiscriminately add flags regardless of existence of the lib directory.
alex`` has quit [Quit: WeeChat 2.0.1]
<wavewave> this gives warning messages when building and it effectively breaks a build.
<Profpatsch> lewo: https://github.com/containers/image/pull/370 would be kind of solved if we could use skopeo directly to build layers, instead of ad-hoc shell scripts.
<infinisil> wavewave: Ah, in that case you can check for the existence by doing it at build time instead: use bash to iterate over the build inputs and set this env var according to the result
<infinisil> But it won't be nice
<Profpatsch> lewo: But from what I saw skopeo needs root?
<infinisil> wavewave: what does "effectively" break a build mean? Because warning messages shouldn't really break anything
<Profpatsch> Not sure why tbh
<Profpatsch> Let me merge the PR3
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Profpatsch pushed 1 new commit to master: https://git.io/vA3Qc
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master eef9d36 Profpatsch: buildah: init at 0.11
<wavewave> infinisil: it's just our internal thing. disallow any warnings :-P
<Profpatsch> Ah, of course I meant buildah.
knupfer has joined #nixos
<infinisil> wavewave: well then you're not gonna like nixpkgs, there's loads of warnings alllll over the place..
chreekat has quit [Quit: quitting]
<wavewave> infinisil: it's not that bad. only Haskell built by stack. anyway thank you for your suggestion!
<wavewave> at least, i confirm that using pathExists is a dead end.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/staging 193ebca Vladimír Čunát: libmpc: 1.0.3 -> 1.1.0...
<NixOS_GitHub> nixpkgs/staging f8865b1 Vladimír Čunát: mpfr: 3.1.3 -> 3.1.6 (bugfix)...
<NixOS_GitHub> [nixpkgs] vcunat pushed 2 new commits to staging: https://git.io/vA37I
NixOS_GitHub has left #nixos [#nixos]
wip_ has quit [Quit: brb]
rihards has quit [Quit: rihards]
chreekat has joined #nixos
alexteves_ has quit [Ping timeout: 240 seconds]
pkill9 has quit [Ping timeout: 264 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Lassulus opened pull request #34945: gnunet service: set private TMPDIR (master...gnunet-tmpdir) https://git.io/vA3d3
NixOS_GitHub has left #nixos [#nixos]
wip_ has joined #nixos
Sonarpulse has quit [Ping timeout: 260 seconds]
tippenein has quit [Ping timeout: 240 seconds]
szicari has quit [Quit: szicari]
hiratara has quit [Quit: ZNC - http://znc.in]
tippenein has joined #nixos
ambro718 has quit [Ping timeout: 248 seconds]
hiratara has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] shlevy pushed 1 new commit to master: https://git.io/vA3F3
<NixOS_GitHub> nixpkgs/master 6bc24a2 Shea Levy: nix-plugins: Make cross-compilation friendly....
NixOS_GitHub has left #nixos [#nixos]
<troydm> is it possible to switch to newer kernel while still using stable 17.09 channel?
<troydm> like I have 4.9.8 one and I want 4.13.x
<troydm> infinisil: ahh thx, and where do I find available linuxPackages variants?
<troydm> infinisil: on nixos.org Packages page?
pkill9 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm closed pull request #34926: Semi automated emacs package updates (master...semi-automated-emacs-package-updates) https://git.io/vAOEd
NixOS_GitHub has left #nixos [#nixos]
<wavewave> infinisil: resolved the issue as you suggest. thanks!
<infinisil> troydm: yeah apparently
<infinisil> wavewave: :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master a0883f8 José Romildo Malaquias: vivaldi: 1.13.1008.34-1 -> 1.14.1077.45-1
<NixOS_GitHub> nixpkgs/master cf6c861 Joachim F: Merge pull request #34897 from romildo/upd.vivaldi...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] joachifm pushed 2 new commits to master: https://git.io/vA3bh
asuryawanshi has quit [Ping timeout: 256 seconds]
the-kenny has quit [Ping timeout: 240 seconds]
eisbaer has quit [Ping timeout: 264 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm closed pull request #34815: ghostwriter: init at 1.5.0 (master...ghostwriter) https://git.io/vAtLn
NixOS_GitHub has left #nixos [#nixos]
infinisil has quit [Quit: Configuring ZNC, sorry for the join/quits!]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm closed pull request #34942: Update minio client and server (master...feat/minio-update) https://git.io/vA3XZ
NixOS_GitHub has left #nixos [#nixos]
infinisil has joined #nixos
fresheyeball has quit [Quit: WeeChat 1.9.1]
mmlb has quit [Ping timeout: 252 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl opened pull request #34946: compcert: 3.1 -> 3.2 (master...compcert-3.2) https://git.io/vA3Np
NixOS_GitHub has left #nixos [#nixos]
ThatDocsLady has quit [Ping timeout: 256 seconds]
alex`` has joined #nixos
<infinisil> srhb: clever: Settled for this regarding the lid thing: https://github.com/Infinisil/system/commit/b5ac9288f238a3734680fea2237e0b6c614afd28
<clever> infinisil: look up -q in the grep man page
<infinisil> ohh, right, don't need >/dev/null like this
<clever> yep
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] puffnfresh opened pull request #34947: stride: init at 1.8.18 (master...package/stride) https://git.io/vA3AQ
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm pushed 2 new commits to master: https://git.io/vA3A7
<NixOS_GitHub> nixpkgs/master a4621c0 Joachim F: Merge pull request #34921 from leenaars/getdns...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 2b68e99 Michiel Leenaars: getdns: init at 1.3.0
Leon[m] has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm closed pull request #34921: getdns: init at 1.3.0 (master...getdns) https://git.io/vAO3S
NixOS_GitHub has left #nixos [#nixos]
lord| has joined #nixos
duckwho has quit [Quit: WeeChat 2.0.1]
Lisanna has quit [Quit: Lisanna]
acarrico has quit [Read error: Connection reset by peer]
Lisanna has joined #nixos
chreekat has quit [Ping timeout: 240 seconds]
Lisanna has quit [Client Quit]
oida has joined #nixos
<troydm> guys a question here, I see a lot of of kernel specific patches in here https://github.com/NixOS/nixpkgs/blob/release-17.09/pkgs/os-specific/linux/broadcom-sta/default.nix
xcmw has joined #nixos
<troydm> like linux-4.8.patch and others, how are those patches applied?
<troydm> are they applied all or are they applied one by one?
<clever> troydm: i believe all of those are applied
michalrus has left #nixos ["WeeChat 1.7.1"]
<troydm> and does those patches apply based on what kernel I'm currently running?
<clever> troydm: i think it just applied all of them, always
<clever> troydm: and the patches themselves, add #if statements, that check the versions
<troydm> clever: because I'm on 4.9 kernel and my wl driver connection is not stable and I have tons of TX errors, apparently some of those patches fix this problem but I'm still experiencing unstable connection on 4.9 kernel
<clever> so the compiler will conditionally apply things at compile time, based on the version of the kernel source
<troydm> I'm currently trying to switch to 4.13 to see if it will help or not
<troydm> but I think I should have gone for 4.12 instead
kelleyNif has quit [Quit: Leaving.]
<troydm> also how do I enable parallel compilation because currently kernel is compiled using only 1 processor
<clever> troydm: https://nixos.org/nixos/options.html#nix.buildcores
<infinisil> troydm: you can adhoc just add the -j4 argument to the rebuild
<clever> infinisil: that does derivation parallism, not make parallism
<infinisil> Ahh, --cores i think then
<troydm> infinisil: clever: ahh, thx a lot guys
<clever> --option build-cores 8
<troydm> will try
<troydm> I think I have i5 with 4 cores so I should set it more than 4
<troydm> *to*
<clever> around 4 or 5 should do
<infinisil> Oh, and you can set --cores 0 (or --option build-cores 0) for it to use all available ones
Ubercow has joined #nixos
<clever> yeah, if its set to 0, it will run nproc to bump it up to the right number
<infinisil> neat, didn't know about nproc
<samueldr> troydm: IIRC 4.14 is the currently new LTS, unless a too recent kernel isn't wanted, it may be better than [4.10...4.13]
<samueldr> and 4.14 is packaged for 17.09
<troydm> samueldr: I'm afraid those broadcom_sta related patches are only kernel version specific so I'm not sure if I should set 4.14
<infinisil> Oh nice, nproc has the --ignore=N argument that allows you to keep N number of processors free if possible
<samueldr> and built, etc
vidbina has quit [Ping timeout: 252 seconds]
<samueldr> they use >= conditionals, it looks like
<troydm> samueldr: ahh, yeah you are right
<troydm> samueldr: so 4.14 is LTS right?
* samueldr verifies
<samueldr> yes
<troydm> samueldr: cool, will try it out, I hope my wifi hell will be fixed with this
<samueldr> my 17.09 computers all run on 4.14
<infinisil> troydm: wifi hell?
orivej has quit [Ping timeout: 248 seconds]
* samueldr unhelpfully thinks .o( broadcom is hell )
<troydm> infinisil: yeah it works fine for few mins, then it starts dropping connections, and I have high TX errors count
<troydm> infinisil: driver is wl, chip is Broadcom 4360 on Macbook Pro 11,1
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] shlevy opened pull request #1870: Add splitVersion primop. (master...split-version) https://git.io/vA3h0
NixOS_GitHub has left #nixos [#nixos]
<samueldr> well, out goes the suggestion of switching hardware
freeman42x]NixOS has joined #nixos
<samueldr> troydm: from debian's wiki → Frequent disconnections can be experienced. This may be resolved by disabling power management via:
<samueldr> iwconfig(8) (e.g. iwconfig wlan0 power off)
<samueldr> (but I'm half-expecting you already tried that)
<troydm> samueldr: yeah I've tried it already, didn't fixed the problem
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] LnL7 pushed 1 new commit to staging: https://git.io/vA3jT
<NixOS_GitHub> nixpkgs/staging 4c07aea Daiderd Jordan: qt48: fix darwin build with clang-5
NixOS_GitHub has left #nixos [#nixos]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/49a24afaa91 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<samueldr> :S, I'm half-lucky in that even when I didn't look for it, I always bought mainline-supported wireless hardware
davidak has joined #nixos
<troydm> samueldr: I have this errors in dmesg when I run iwconfig
<troydm> [ 4820.602972] ERROR @wl_dev_intvar_get :
<troydm> [ 4820.602975] error (-1)
<troydm> [ 4820.602976] ERROR @wl_cfg80211_get_tx_power :
<troydm> [ 4820.602976] error (-1)
freeman42x]NixOS has quit [Ping timeout: 248 seconds]
<samueldr> (next time please use a pasting service for anything bigger than two lines (though at this time there wasn't any other conversation going on) messages get throttled)
<gchristensen> can Nix tell me the cryptographic sum of a store path? ie: sha256 of the $out, not the hash used to calculate the $out
<samueldr> sorry, no experience with wl/broadcom hardware, though I would have loved to say I did, only to know how to help
<troydm> so I'm assuming those are related to TX errors and some ppl suggest cfg patches
Leon[m] is now known as Leon[m]1
goibhniu has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dtzWill closed pull request #34916: xz: set CONFIG_SHELL to /bin/sh, fix retained reference to bootstrap (staging...fix/xz-invalid-references) https://git.io/vAYSk
NixOS_GitHub has left #nixos [#nixos]
coot has joined #nixos
leons is now known as leons_legacy
Leon[m]1 is now known as leons
<samueldr> though, if you have good suggestions for your macbook hardware from other distros, and don't know how it maps to nixos, pretty sure everyone here is glad to help :)
<troydm> apparently 4.12 related patch among those is cfg related
<samueldr> you're on 4.14 yet or haven't finished rebuilding/booting?
<troydm> samueldr: it's still building 4.13, just want it to finish to check if it'll work with 4.13 or not, will rebuild for 4.14 anyway
<Profpatsch> gchristensen: Can ofborg also run VM tests?
<samueldr> ah, 4.14 should already be built though (iirc)
<leons> @sam
<gchristensen> Profpatsch: you bet it can! with a special command, `test`: https://github.com/nixos/ofborg#test-added-2017-11-24
<Profpatsch> Awesomesauce.
<gchristensen> =)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/staging 8e64332 Tuomas Tynkkynen: linuxHeaders: Drop usage of kernelHeadersBaseConfig...
<NixOS_GitHub> nixpkgs/staging b882387 Tuomas Tynkkynen: gnupatch: 2.7.5 -> 2.7.6
<NixOS_GitHub> nixpkgs/staging 0ea1c45 Tuomas Tynkkynen: gnumake: Drop pkgconfig if not building with guileSupport...
<NixOS_GitHub> [nixpkgs] dezgeg pushed 4 new commits to staging: https://git.io/vAseW
NixOS_GitHub has left #nixos [#nixos]
<leons> samueldr: I'm actually having the exact same wifi issues under every linux distro with my Macbook. NixOS actually has the best support out of the box apart from that :)
<Profpatsch> gchristensen: Hm, some tests are not in the release.nix, e.g. the rabbitmq.nix
<gchristensen> hmm why not?
<Profpatsch> Probably forgot them.
<gchristensen> duh, they're not release blockers...
<Profpatsch> You can run tests directly with nix-build, nix-build nixos/tests/rabbitmq
<Profpatsch> .nix
<gchristensen> hmm no
<gchristensen> Profpatsch: I won't do that. they should be added to release.nix
<gchristensen> release.nix doesn't make it a release blocker
<Profpatsch> Can’t ofborg execute arbitrary nix files in the repo?
<gchristensen> absolutely, most certain, no, it can't execute arbitrary Nix. it can only call ./default.nix and ./nixos/releas.nix
<troydm> leons: do u have them fixed on NixOS? which kernel are u running?
<Profpatsch> Well, if it can call default.nix it practically can execute arbitrary nix, right? :)
<gchristensen> nope
<gchristensen> because ./default.nix can't import ../default.nix and arbitrary nix could allow bugs for referencing ../default.nix
<Profpatsch> Of course it should only be able to execute files in the repo.
kelleyNif has joined #nixos
<gchristensen> I depend on Nix's purity checks to enforce it
<Profpatsch> Do you containerize the checkout path?
<gchristensen> no
<Profpatsch> Oh, okay.
ma271 has quit [Ping timeout: 276 seconds]
<leons> troydm: Sorry, I haven't fixed them. I tried various driver and kernel versions, it was always horrible. I've now switched to another notebook entirely tough checking regularly if the macbook has better support. I remember that using connman somehow worked pretty reliably under arch
<gchristensen> it really depends on Nix's security being good
ditadi has joined #nixos
<Profpatsch> But nix sandboxing is enabled, yes?
<gchristensen> yeah :)
<infinisil> troydm: leons: Well I'm using a MacBook Air 2012 and don't have any problems fwiw
<troydm> on a side note I have xterm/urxvt related cursor theme issue, I've set default cursor theme in Xresources but apparently nor xterm nor rxvt don't want to use it, tried every possible thing, problem is that screen on this Macbook is Retina HiDPI so default xterm cursor is very tiny
<troydm> Xresouces fixes this issue for other apps
<leons> infinisil: I've got a friend who, if I remember correctly, has that exact macbook model. Works perfectly for him under Arch too, must have a different wifi chip...
<troydm> I have Macbook Pro Mid-2014 Retina