<catern>
so I could create that /run directory with root, but I don't really want to do that
<nh2>
catern: some graphics driver discovery library might also do really ugly stuff, like do a directory scan to search for files of a given name (which won't be open()); nvidia binary driver does that IIRC
<catern>
^ that's just strace -f misc/wave.webm
<catern>
er, strace -f mpv misc/wave.webm
<nh2>
catern: you need also libGL.so.1
<nh2>
that is the most important I think
lvernschrock has quit [(Ping timeout: 248 seconds)]
<nh2>
(I have to go unfortunately)
<catern>
okay
<catern>
thanks for the help
<catern>
it will lead me to a solution, so much appreciated :)
lvernschrock has joined #nixos
eacameron has joined #nixos
k0001 has quit [(Ping timeout: 240 seconds)]
vaibhavsagar has joined #nixos
mudri has quit [(Ping timeout: 246 seconds)]
<hodapp>
siiiiigh. ROS has its own package manager
hellrazo1 has quit [(Ping timeout: 240 seconds)]
<hodapp>
though I see acowley did make an attempt to integrate this with Nix somehow
mudri has joined #nixos
hellrazo1 has joined #nixos
<Infinisil>
hodapp: Time to convince them to use nix instead :D
<jluttine>
hmm.. i have nixos on my print server and on my laptop. trying to print from my laptop but i get an error "Backend returned status 2 (authentication required). Job held for authentication." any ideas how i should change my server configuration?
indi_ has quit [(Remote host closed the connection)]
indi_ has joined #nixos
<jluttine>
i have browsing=true and listenAddresses=["*:631"]
<jophish>
Is it possible to examine the time taken for a deivation to build?
indi_ has joined #nixos
phinxy has joined #nixos
indi_ has quit [(Ping timeout: 248 seconds)]
magnetophon has joined #nixos
<magnetophon>
I have HW that doesn't detect the right screen resolution. I used to be able to work around that with "xrandr newmode/addmode/output", but after an upgrade from 17.03 to unstable the image is missing the right half and it's too high up the screen, IOW the bottom and the right of my screen are black.
<magnetophon>
any ideas?
ebzzry has joined #nixos
magnetophon has quit [(Remote host closed the connection)]
<qknight>
so how can i override debugBuild=true in ./pkgs/applications/networking/mailreaders/thunderbird/default.nix again?
<qknight>
it is so depressing to work with this stupid manual
fabian_a has joined #nixos
<qknight>
and i would like to put that code into configuration.nix rather than ~/.config/nixpkgs/config.nix
<qknight>
i'm sure this is possible but i don't remember how
<qknight>
oh just found it somewhere
<qknight>
in an configuration.nix
mpcsh has quit [(Quit: THE NUMERICONS! THEY'RE ATTACKING!)]
Guest88414 has quit [(Ping timeout: 255 seconds)]
<magnetophon1>
I just rebooted the PC with the resolution problem, and in the 17.03 config the problem is indeed not there... Any ideas how to further troubleshoot?
mpcsh has joined #nixos
<magnetophon1>
Is anyone else doing "xrandr --newmode" on every boot?
<qknight>
magnetophon1: never heard of
<ikwildrpepper>
copumpkin1: alive?
<magnetophon1>
qknight: ok, thanks
fabian_a has quit [(Ping timeout: 240 seconds)]
johann__ has joined #nixos
tsmeets has joined #nixos
<tsmeets>
Hello, is it possible to declaratively install a package (like systemPackages) but just for one spesific user on nixos?
<tsmeets>
I could use 'nix-env -i' but that won't get updated together with the system.
<tsmeets>
What I am trying to do is have a speperate user for browsing the web, and create wrappers that use 'sudo -u browser' for the current user.
<tsmeets>
I could use containers, but that would be a little overkill. I think.
<Svarog>
has nixos 17.03 switched to kernel 4.12? and is anyone else unable to update 17.03 with an error saying unused option PSS_MIXER while configuring the kernel?
<tsmeets>
tv: that was exactly what i need
<gchristensen>
Svarog: afaik it has not
<Svarog>
hmm
<Svarog>
ah
<Svarog>
had linux_latest listed under system.extraDependencies
<Svarog>
and it appears to be broken currently
<Svarog>
commenting it out makes everything work again
elninja44 has quit [(Remote host closed the connection)]
freusque has quit [(Ping timeout: 240 seconds)]
fnlkj has joined #nixos
vaibhavsagar has quit [(Ping timeout: 260 seconds)]
koserge has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] rbvermaa pushed 1 new commit to release-17.03: https://git.io/vQ2g9
<NixOS_GitHub>
nixpkgs/release-17.03 cbfb35a Rob Vermaas: Fix hologram server with go versions > 1.4, no fix yet upstream.
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] rbvermaa pushed 1 new commit to master: https://git.io/vQ2g7
<NixOS_GitHub>
nixpkgs/master 730a394 Rob Vermaas: Fix hologram server with go versions > 1.4, no fix yet upstream....
NixOS_GitHub has left #nixos []
indi_ has joined #nixos
indi_ has quit [(Remote host closed the connection)]
indi_ has joined #nixos
indi_ has quit [(Remote host closed the connection)]
indi_ has joined #nixos
<ij>
Can I use nix-shell to request dependencies that differ from the ones in $PATH, even if I'm not making a derivation?
<srhb>
ij: Like with -p ?
<ij>
Cool! \o/
indi_ has quit [(Remote host closed the connection)]
indi_ has joined #nixos
<dalaing>
if nixops was going to have some changes to the way state files were stored, what would folks prefer: dumping the state info to a json file, storing the info in a proper db, or having the option to do either?
<dalaing>
been thinking about how to make nixops easier to use in teams
<ikwildrpepper>
dalaing: there is a PR already that will allow you to choose your store
<ikwildrpepper>
once 1.5.1 is released we'll merge that
<ij>
Do the one-click installs all have its dependencies baked in? I've been trying to download one to test it, but the five ones I tried clicking on in hydra were 404.
<srhb>
That's awesome news! :)
<dalaing>
ikwildrpepper: Sweet!
pie__ has joined #nixos
indi_ has quit [(Ping timeout: 248 seconds)]
ixxie has joined #nixos
<dalaing>
do you have a link to that PR anywhere?
<dalaing>
my google / github skills are failing me
<ikwildrpepper>
dalaing: Moretea is working and interested in this feature, so he'll know specifics about the plans for it
<dalaing>
wow, that looks great
<LnL>
ikwildrpepper: do you know what happened to the new macs?
<ikwildrpepper>
LnL: will check
<LnL>
thanks
<dalaing>
man, doing something with the NixOps statefile and doing something for managing per-user config in NixOS were on the top of my list for things to do to get my hands dirty / dirtier with Nix contributions
<dalaing>
I think a type system was also in that list :)
<dalaing>
all these good things coming down the line
johann__ has joined #nixos
<ixxie>
hmmm, how does one exit the nix-shell xD
<ij>
exit or control-d, like any other shell?
<ixxie>
thanks ij
* ixxie
mumbles the mantra to himself: there are no stupid questions, there are no stupid questions.....
<unlmtd>
are there some ppl using dwm here who configured it on nixos?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] nonsequitur opened pull request #27141: Release notes: Fix syntax in code sample (master...patch-1) https://git.io/vQ2oC
NixOS_GitHub has left #nixos []
<ixxie>
is there a convenience function for finding the nix store address of a given program?
<Gravious>
nix-store -q ? maybe
orivej has joined #nixos
arjen-jonathan has quit [(Ping timeout: 276 seconds)]
seppellll has joined #nixos
__Sander__ has joined #nixos
MercurialAlchemi has joined #nixos
<ixxie>
Gravious, if thats it I am not sure how to use it
mkoenig has joined #nixos
<ixxie>
something like nix-store -q bash (or "bash") doesn't work
<srhb>
ixxie: readlink -f (
<srhb>
$(which bash) ?
<srhb>
ixxie: iow follow the symlink :)
<Gravious>
ixxie, i thought nix-store -q $(which bash) ?
<ixxie>
readlink works but nix-store -q $(which bash) yields error: reading from file: Is a directory
<ixxie>
thanks to you both ^^
<qknight>
puffnfresh: hey
<qknight>
puffnfresh: i'm trying to get your hyperkit builder to work ATM
ilyaigpetrov has joined #nixos
<ij>
manveru, Hi. You told me about direnv once. What do you put in it for ruby?
<manveru>
i don't use it that way, since i use nix instead, but i think it should still work
<qknight>
puffnfresh: i've created a script from the output with the NIX_BUILD_HOOK and chown -r "$USER" stuff and now i try nixops deploy -d test and it still prints the error with: a 'x86_64-linux' is required to build '....', but I am a 'x86_64-darwin'
<manveru>
ij: oh, i read that wrong
<manveru>
ij: it's more like `use rbenv` or `use rvm`
iyzsong has joined #nixos
simukis has joined #nixos
xadi has joined #nixos
Gravious has quit [(Ping timeout: 276 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] florianjacob opened pull request #27142: networkd: Allow new MulticastDNS setting (master...resolved-multicastdns-support) https://git.io/vQ2PF
NixOS_GitHub has left #nixos []
<LnL>
manveru: do you have any experience with building multi layer images?
<manveru>
LnL: yeah
johann__ has joined #nixos
marantz has joined #nixos
marantz has left #nixos []
<LnL>
can you used mkPureLayer directly, using buildImage is kind of akward
<puffnfresh>
qknight: let pkgs = forceSystem "x86_64-linux" "x86_64"; in ...
<puffnfresh>
you have to ensure that the derivations are for x86_64-linux
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] florianjacob opened pull request #27143: networkmanager service: use resolved if enabled (master...networkmanager-support-resolved) https://git.io/vQ2Xm
NixOS_GitHub has left #nixos []
<manveru>
LnL: well, you can, it's faster and nicer, but you can't do much in pure layers
<manveru>
afaicr you can't inherit from images in pure, nor can you have runAsRoot
<gchristensen>
is there a builtin tool that imports a file and preserves its name? ie: ${./my.file} -> /nix/store/hash-my.file, but I want /nix/store/hash-my.file/my.file
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] florianjacob opened pull request #27144: resolved: use resolved's static resolv.conf (master...resolvconf-resolved-static) https://git.io/vQ2Xz
NixOS_GitHub has left #nixos []
<gchristensen>
an alternative to that would be a way to strip the hash portion from the name so I can cp ${strippedHash ./my.file} ./ # results in ./my.file
<hodapp>
surprised to see only one reference to NIX_PATH in the NixOS manual
indi_ has quit [(Ping timeout: 240 seconds)]
<gchristensen>
you may find more in the nix manual or nixpkgs manual
cpennington has joined #nixos
<gchristensen>
some people say they wish the manuals were split up more, I wish the manuals were _combined_ -- looking at nix manual showed just nix, looking at nixpkgs showed the nix manual, and looking at nixos showed the nixpkgs and nix manuals
<copumpkin1>
ikwildrpepper: hologram!
<srhb>
gchristensen: Clearly the solution is to abstract the notion of "manual" and be able to combine it however you see fit.
<chominist[m]>
gchristensen (IRC): is there a man for options of a package?
<chominist[m]>
manual*
<gchristensen>
packages? no, modules? yes: man configuration.nix
<hodapp>
gchristensen: I guess my natural first place to look would be the NixOS manual because it's /etc/nixos/configuration.nix that I'm trying to figure out some details of, and things pertaining to nixos-rebuild
<gchristensen>
I agree
<gchristensen>
imo the nixpkgs docs are pretty well inextricable when using nixos
jedahu has quit [(Client Quit)]
eacameron has joined #nixos
eacameron has quit [(Ping timeout: 248 seconds)]
<hodapp>
though, of course, my use case is a bit of an uncommon one
<hodapp>
is configuration.nix the only place I can define a service thus?
<gchristensen>
how is it uncommon?
<hodapp>
how often must a user be able to apply a patched version of nixpkgs to nixos-rebuild and the like?
<gchristensen>
no idea :) I do it from time to time
<gchristensen>
I know many people always operate like this
<roblabla>
I often have a patched version of nixpkgs while waiting for my PRs to get merged
<roblabla>
I'm pretty sure a lot of people using nixos are also occasional contributor (adding a missing option, a new package, etc...) which would cause them to occasionally have a patched nixpkgs
wak-work has quit [(Ping timeout: 276 seconds)]
bkchr has joined #nixos
<disasm>
hodapp: for testing patches, I'm more likely to use nixos-rebuild build-vm -I nixpkgs=/home/sam/nixpkgs -I nixos-config=./configuration.nix
<bkchr>
Hi, does anyone know what I need to do, do make a dbus service visible for dbus?
<ikwildrpepper>
qknight: only if you explicitly enable it, and only for the nixos config, not for the infrastructure
sary has joined #nixos
<qknight>
ikwildrpepper: ok
<Eisfreak7>
Is there something special I have to do when updating to a newer NixOs version?
<Eisfreak7>
I'm trying to switch an old vm from 16.03 to unstable
<Eisfreak7>
But rebuilding doesn't work (error parsing derivation ...stdenv.drv: expected string 'Derive([')
<qknight>
can anyone here support me with a mac os x build host problem? i want to be able to use nixops to deploy to x86_64-linux and the arch is x86_64-darwin so i need a working build-host compiler setup
<qknight>
but i can't get that working properly
wak-work has joined #nixos
<qknight>
Eisfreak7: the best advice is to always stay close to the current actively maintained release
<LnL>
qknight: what's the problem?
<qknight>
LnL: i can't get it to work
<qknight>
LnL: it tells me that target is -linux and this is -darwin
<qknight>
and if i apply the 3 environment variables to make it use an external host via ssh it will always error out with stuff i don't understand to track down
pie__ has quit [(Ping timeout: 276 seconds)]
Ivanych has joined #nixos
<qknight>
LnL: like: unexpected end of file or similar
<qknight>
LnL: that said, i never managed to use an external builder
<qknight>
LnL: and i don't find much useful documentation about it
hellrazo1 has quit [(Ping timeout: 255 seconds)]
<manveru>
qknight: LnL actually made a docker container for that
<NixOS_GitHub>
[nixpkgs] phile314-fh opened pull request #27152: PostGIS/GDAL/hdf4: Make unfree szip dependency optional. (master...szip-optional) https://git.io/vQafD
NixOS_GitHub has left #nixos []
tmaekawa has joined #nixos
<disasm>
Eisfreak7: I'm assuming this showed up when you bisected your config, right? ou must set the option ‘boot.loader.grub.devices’ or 'boot.loader.grub.mirroredBoots' to make the system bootable.
<Eisfreak7>
disasm: Yes, this is because the config is empty (besides the hardware configuration). The important part is the error before that.
<Eisfreak7>
disasm: That error also shows up when I `nix-env -iA <some-package>`
<disasm>
Eisfreak7: I'd say maybe try nix-store --delete /nix/store/3is253sa1kj5bll2crrz43bh7n319h4p-pcre-8.40.tar.bz2.drv but I don't know what ramifications that may have.
johann__ has joined #nixos
<ij>
Can I see all the files a package provides somehow?
Itkovian has quit [(Read error: Connection reset by peer)]
mudri has joined #nixos
johann__ has quit [(Ping timeout: 240 seconds)]
<qknight>
LnL: i don't get it. should i run the docker container as normal user or as root on mac os x?
<disasm>
qknight: normal user
ison111 has quit [(Quit: WeeChat 1.7.1)]
ennui has joined #nixos
ebzzry has quit [(Ping timeout: 260 seconds)]
<Eisfreak7>
disasm: I had to delete two packages (with --ignore-liveness) and now it works. Apparently the packages were corrupted somehow? Weired.
<Eisfreak7>
disasm: (Mabye it's a bit early to say "it works", but its currently building)
mudri has quit [(Ping timeout: 260 seconds)]
<ennui>
The stdenv of newer Nixpkgs versions fails to set the CFLAGS/LDFLAGS for the package 'libav'. See here for a reproducible demo: https://www.pastiebin.com/595cfdc3ec84d. What am I doing wong?
seppellll has quit [(Quit: Leaving)]
<disasm>
ij: I could be wrong, but I don't think you can without installing the package. A package is just a recipe for how to install something, so it doesn't contain a file list of what's installed. Once it's installed though, you could do a find /nix/store/<hash>-<package>.
<ennui>
I spent a few hours debugging this issue, but I'm left completely clueless. It must be a user error, since libav is widely used.
mudri has joined #nixos
iyzsong has quit [(Quit: bye.)]
nh2 has joined #nixos
justelex_ has joined #nixos
mudri has quit [(Ping timeout: 268 seconds)]
indi_ has joined #nixos
tmaekawa has quit [(Quit: tmaekawa)]
pie_ has joined #nixos
indi_ has quit [(Ping timeout: 276 seconds)]
johann__ has joined #nixos
ryanartecona has joined #nixos
<qknight>
disasm: i'm getting: warning: the group 'nixbld' specified in 'build=users-group' does not exist
bkchr has quit [(Ping timeout: 240 seconds)]
<disasm>
qknight: this is in a docker nixos container?
<disasm>
Eisfreak7: build successful?
nh2 has quit [(Read error: Connection reset by peer)]
<qknight>
disasm: yes!
<Eisfreak7>
disasm: Yes! Just finished. Now I'll try to get from 16.09 to unstable, but hopefully that'll be less of a problem.
pxc1 has joined #nixos
<Eisfreak7>
disasm: The problem was probably caused by the vm crashing during an update. But shouldn't nix's atomic updates prevent just that?
<qknight>
Eisfreak7: crashing during an update is not covered by nixos purity
<qknight>
Eisfreak7: since we are talking about simple linux tools which just leave state if crashed
johann__ has quit [(Quit: Leaving.)]
<Eisfreak7>
Okay I had to remove a few more store packages, but now the unstable build is running.
<Eisfreak7>
qknight: But aren't new packages "installed" in a tmp dir and then atomically copied/linked where they belong?
<disasm>
qknight: hmmm, I ran lnl7/nix:ssh and ran cat /etc/group and it exists: nixbld:x:30000:nixbld1,nixbld2,nixbld3,nixbld4
<gchristensen>
"# If you need to apply patches, make sure to set `dontBuild = false`;" ... "things that should be an assert" for $500 please
<qknight>
disasm: i can't see nixbld only nixbld1 to 4
<disasm>
qknight: nixbld is the group, not the user
<Eisfreak7>
Anyway, thanks for the help disasm
<disasm>
Eisfreak7: if it crashes while doing the copy parts, you could end up with broken stuff in the store.
<Eisfreak7>
Btw. (not nix specific, but I just came to the idea thinking about nix user-installs): Can't malicious software easily excalate its privileges by modifying PATH and wrapping some software that is commonly run with sudo?
<qknight>
Eisfreak7: what nix is better at, compared to other linux distributions, it reduced the time a crash can seriously cripple a system during updates
<Eisfreak7>
disasm: That makes sense, but its weired that so many packages (>5) broke
<qknight>
Eisfreak7: no
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat pushed 2 new commits to master: https://git.io/vQamk
<Eisfreak7>
qknight: That executes my sudo wrapper
orivej has joined #nixos
<Dezgeg>
but it didn't run as root
<qknight>
disasm: maybe this setup just won't work with nixops for some reason
elehack has joined #nixos
<Eisfreak7>
No, but that wrapper could then behave exactly as sudo does: Ask for a password. Then it forwards to the real sudo.
<qknight>
disasm: i see that it uses the build host for everything correctly except for the: /nix/store/somehash-nixops-machines.drv
endformationage has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to master: https://git.io/vQaYn
<NixOS_GitHub>
nixpkgs/master 322582d Vladimír Čunát: libav: maintenance 11.9 -> 11.10
NixOS_GitHub has left #nixos []
<disasm>
Eisfreak7: on a system where I'm not the only user, I always run sudo with full paths. e.g. sudo /run/current-system/sw/bin/nvim
<disasm>
Eisfreak7: or if you want to be really paranoid, /run/wrappers/bin/sudo /run/current-system/sw/bin/nvim
<Eisfreak7>
disasm: That's a good precaution. But in principle, there's nothing preventing maleware running under my (not privileged) user to wrap any other software, right?
jmeredith has joined #nixos
<Eisfreak7>
disasm: Even with that precaution, my shell could have been replaced. Every time I start thinking about security it seems a little bit more like a battle that can only be lost
<disasm>
Eisfreak7:
<disasm>
Eisfreak7: unless the shell is compromised, if you specify a / before a path, $PATH isn't consulted.
<disasm>
Eisfreak7: also, on multi-user systems, don't give sudo to anyone that doesn't need it.
<Eisfreak7>
disasm: Yes, my scenario was more in the lines of "security at depth". Assuming my system is already compromised, how hard would it be to get root access. Apparently not hard.
seppellll has joined #nixos
phreedom has quit [(Ping timeout: 248 seconds)]
vaibhavsagar has joined #nixos
fnlkj has quit [(Quit: ?)]
<spinus>
do you know how to build haskell/cabal package with specific flags by any chance?
<ennui>
The stdenv of newer Nixpkgs versions fails to set the CFLAGS/LDFLAGS for the package 'libav'. See here for a reproducible demo: https://www.pastiebin.com/595cfdc3ec84d. What am I doing wong?
<disasm>
Eisfreak7: yeah, I convinced about 75% of the people in my CompSci lab in college years ago to run a bash script that used osd_cat to display things to the screen at a regular interval using their crontab. In general, users are dumb, dumb users with sudo are a liability to the system, so only give sudo to people you trust and need the access and if possible, limit the commands they can run via sudo.
<jophish>
What's the procedure from cross compilation now?
<Eisfreak7>
disasm: Yeah but its not just the dumb users. Its impossible to vet all software you use (most of the time its "it has many stars on github / is well-known, hopefully somebody else vetted it), so you can't ever be sure what you're executing.
<Eisfreak7>
disassm: I think the best part-solution would be true sandboxing
<disasm>
Eisfreak7: for example, if all they can run in /run/current-system/sw/bin/cat and /run/current-system/sw/bin/tail as sudo, even if their path is poisoned sudo will refuse to execute the poisoned binary. But this isn't a technical problem to solve, it's a user trust issue.
<jophish>
I should probably wait for SonarPulse to arrive
<disasm>
Eisfreak7: that's where you lean on the community to find the bugs/intentional security issues introduced. One of the benefits to open source over a closed source solution.
<jophish>
for examples, this fails: nix-build . --arg crossSystem '(import ./lib).systems.examples.armv7l-hf-multiplatform' -A pkgs.hello
<Eisfreak7>
How reliable are the security patches in the stable repos? Security wise, would it be better to use unstable or to use the latest stable and cherry-pick packages from unstable?
pie_ has quit [(Ping timeout: 260 seconds)]
<Eisfreak7>
disasm: Yes, but I'd prefer a technical solution. Also, that mindset basically forbids running any project that has more than a few thousend LOC and is not very popoular
<disasm>
if it requires sudo, I'm not going to run it unless I've vetted it or the community has as a whole :)
moet has joined #nixos
indi_ has joined #nixos
<Eisfreak7>
disasm: But with my earlier point its basically irrelevant if it requires sudo or not. It could easily get sudo privileges (by wrapping sudo or logging my keys).
<Eisfreak7>
disasm: Anyawy, I guess this is a little off-topic :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] 7c6f434c pushed 2 new commits to master: https://git.io/vQaGo
<NixOS_GitHub>
nixpkgs/master a1ec03a Philipp Hausmann: hdf4: Make szip dependency optional.
<NixOS_GitHub>
nixpkgs/master 958a757 Michael Raskin: Merge pull request #27152 from phile314-fh/szip-optional...
NixOS_GitHub has left #nixos []
<disasm>
Eisfreak7: if an app requests my password to run, I'm going to press 2 keys, ctrl-c :)
indi_ has quit [(Ping timeout: 260 seconds)]
seppellll has quit [(Ping timeout: 276 seconds)]
mdekstrand has joined #nixos
xadi has quit [(Ping timeout: 240 seconds)]
elehack has quit [(Read error: Connection reset by peer)]
<Infinisil>
Especially on NixOS
freusque has joined #nixos
marsel has quit [(Ping timeout: 248 seconds)]
<gchristensen>
manveru ping?
<manveru>
what's up
__Sander__ has quit [(Quit: Konversation terminated!)]
<srhb>
cinimod: Nix pills are nice (but not Haskell specific) - ocharles has a wiki with useful nix things too, perhaps try to package up something simple, use cabal2nix on one of your own projects :)
<srhb>
Should all be googleable.
arjen-jonathan has quit [(Ping timeout: 276 seconds)]
<cinimod>
Ok I am using cabal2nix atm but in a very cookbook way
<cinimod>
I will look at ocharles' stuff
<srhb>
cinimod: That's how I started too. :)
<srhb>
cinimod: Once more needs arose, I learned whatever I needed to move on.
<srhb>
(This channel is an excellent resource)
leat has joined #nixos
pietranera has quit [(Quit: Leaving.)]
acarrico has quit [(Ping timeout: 255 seconds)]
<Infinisil>
Can confirm, have learned a lot here
freusque has quit [(Ping timeout: 268 seconds)]
phreedom has quit [(Ping timeout: 240 seconds)]
nh2 has joined #nixos
<guillaum1>
I can use NIX_LDFLAGS to add flags for the linker of a package, but is there a way to remove flags ? Example, I'm packaging a library where the makefiles try to link with static libraries, and I want to change that, if possible without manually patching the makefile.
<Unode>
hi all. I'm trying to compile a static binary using nix-shell --pure. I keep getting "cannot find -lc" and "cannot find -lm". I found that these live in glibc-*-static.
<Unode>
I already added glibc to the shell with -p glibc but ld still fails to find these two libs.
<Unode>
Am I missing something else?
HappyEnte has quit [(Ping timeout: 260 seconds)]
cinimod has quit [(Ping timeout: 248 seconds)]
moet has quit [(Ping timeout: 248 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] NeQuissimus pushed 3 new commits to master: https://git.io/vQalm
<NixOS_GitHub>
nixpkgs/master 00f0f7e Tim Steinbach: linux: 4.11.8 -> 4.11.9
<NixOS_GitHub>
nixpkgs/master 05bd289 Tim Steinbach: linux: 4.9.35 -> 4.9.36
<NixOS_GitHub>
nixpkgs/master a04afd1 Tim Steinbach: linux: 4.4.75 -> 4.4.76
NixOS_GitHub has left #nixos []
orivej has quit [(Ping timeout: 246 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] NeQuissimus pushed 3 new commits to release-17.03: https://git.io/vQalZ
<NixOS_GitHub>
nixpkgs/release-17.03 0cc792c Tim Steinbach: linux: 4.11.8 -> 4.11.9...
<NixOS_GitHub>
nixpkgs/release-17.03 c9cf9ce Tim Steinbach: linux: 4.9.35 -> 4.9.36...
<NixOS_GitHub>
nixpkgs/release-17.03 29546eb Tim Steinbach: linux: 4.4.75 -> 4.4.76...
NixOS_GitHub has left #nixos []
nh2 has joined #nixos
Ivanych has joined #nixos
<clever>
Unode: nixpkgs doesnt include the static versions of glibc by default
sibi has quit [(Quit: Connection closed for inactivity)]
<clever>
Unode: you need to add glibc.static to the -p flag
vaibhavsagar has quit [(Ping timeout: 240 seconds)]
ryanartecona has quit [(Quit: ryanartecona)]
<Unode>
clever: ok that helped but stumbled on another one: ncurses . And there doesn't seem to be an ncurses.static. Any clues?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz pushed 2 new commits to master: https://git.io/vQa8y
<NixOS_GitHub>
nixpkgs/master e1b29dd Franz Pletz: firmwareLinuxNonfree: 2017-04-16 -> 2017-07-05...
<NixOS_GitHub>
nixpkgs/master c719890 Franz Pletz: nginxMainline: 1.13.1 -> 1.13.2
NixOS_GitHub has left #nixos []
<gchristensen>
is there a way to test doing an import, and return something else if it fails?
<gchristensen>
tryEval seems to not work for this
indi_ has joined #nixos
<guillaum1>
Unode: from my experience, a lot of library does not comes with static version. I'm still wondering if it is a bug (and hence we should fill a bug / give a patch for them) or if there is a smarter way to bundle executable and libraries together
<Infinisil>
gchristensen: You could just check if the file exists first
nh2 has quit [(Ping timeout: 260 seconds)]
<gchristensen>
true
<guillaum1>
Unode: I suppose that your use case is because you want to build / package on nix and deploy somewhere else. Have a look at nix-bundle.
<Infinisil>
gchristensen: if builtins.pathExists ./foo then import ./foo else throw "No foo!"
k0001 has quit [(Remote host closed the connection)]
indi_ has quit [(Ping timeout: 248 seconds)]
<Infinisil>
gchristensen: Oh but add a `default.nix` too
k0001 has joined #nixos
<exarkun>
garbas: unittest2 bdist_wheel works okay if setuptools 7.0 is installed. I tried to tell pypi2nix to install setuptools 7.0 (I made it a buildInput for unittest2) but it seems to have ignored me.
k0001 has quit [(Remote host closed the connection)]
ris has quit [(Ping timeout: 240 seconds)]
<clever>
Unode: does it have to be static?, dynamic builds just work better on nix
FRidh has quit [(Quit: Konversation terminated!)]
[0x4A6F] has joined #nixos
FRidh has joined #nixos
FRidh has quit [(Client Quit)]
arianvp2 has joined #nixos
ryanartecona has joined #nixos
nh2 has joined #nixos
danl1240 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dbrock opened pull request #27156: hsevm: init at 0.3.2 (master...hsevm) https://git.io/vQaRP
NixOS_GitHub has left #nixos []
seppellll has joined #nixos
smw has quit [(Remote host closed the connection)]
Sonarpulse has joined #nixos
pop has quit [(Disconnected by services)]
eli1 has joined #nixos
ryantrinkle has joined #nixos
marsel has joined #nixos
ertes has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vbgl pushed 2 new commits to master: https://git.io/vQau6
<NixOS_GitHub>
nixpkgs/master f9a2866 Vincent Laporte: maude: set available on all Unix platforms
<johnw>
peti: a feature idea: for the ghc-head expression, allow me to provide a feature branch that I'd like to use (I want to build a GHC environment to play with the upcoming support for linear-types)
<Gravious_>
how is it possible that a shared object for a dependency cannot be found when i've clearly included the dependency and i can see the shared object exists on the correct path :/
eacameron has joined #nixos
<Gravious_>
oh, i think it's cause the CPATH is set to look for things matching *.so but the shared object ends in .so.0
<NixOS_GitHub>
[nixpkgs] bkchr opened pull request #27157: Fixes bug that dbus could not find the kwallet service (master...kwallet_dbus_fix) https://git.io/vQa6T
NixOS_GitHub has left #nixos []
globin__ has joined #nixos
orivej has joined #nixos
<Sonarpulse>
jophish: do you have dontStrip and dontCross string in ghc?
<Sonarpulse>
you should, but just sanity check
globin_ has quit [(Ping timeout: 268 seconds)]
andreas303 has quit [(Ping timeout: 240 seconds)]
<jophish>
I do
<jophish>
exactly body124_ <~peabody12@c-73-75-162-187.hsd1.il.comcast.net> has joined #dronin
<jophish>
12:55 -!- droney <ade1ecac@gateway/web/cgi-irc/kiwiirc.com/ip.173.225.236.172> has joined #dronin
<jophish>
13:26 -!- yamahabest <d943e529@gateway/web/cgi-irc/kiwiirc.com/ip.217.67.229.41> has joined #dronin
<jophish>
oops
sary has quit [(Ping timeout: 255 seconds)]
<Sonarpulse>
jophish: oh
<jophish>
exactly that rev I mentioned earlier (clearly not still in the paste buffer)
<Sonarpulse>
I wonder if this is a static vs dynamic linking thing
<jophish>
I get the same result without those two extra flags to ghc
<Sonarpulse>
try making a statically compileed hello haskell?
<johnw>
i notice because the pager then complains that my terminal environment isn't good enough
eacameron has joined #nixos
indi_ has quit [(Ping timeout: 248 seconds)]
leat has joined #nixos
alx741 has joined #nixos
<LnL>
it also segfaults if you don't have a pager IIRC :)
<qknight>
LnL: hey. got nixops from mac os x working now but i had to mix between the toolchains, was a bit weird
<qknight>
LnL: anyway, very good work!
<LnL>
howso?
Itkovian has quit [(Read error: Connection reset by peer)]
Itkovian has joined #nixos
<Gravious_>
ah, erm, stupid question how does the runtime linker know to search the nixstore for shared objects when running a program installed with nix on a non-nixos os?
jensens has joined #nixos
<edofic>
Gravious_: paths to search are stored in the executable. those paths point into the nix store
simukis has quit [(Ping timeout: 260 seconds)]
<Gravious_>
hrm, i think i don't understand the operation of this too well then, since ordinarily when you installed a shared library you must update ldconfig to ensure the new lib is added to the cache. what is the equivalent of that for nix installed stuff?
<Gravious_>
s/update/run/
simukis has joined #nixos
<edofic>
you can't update the shared objects without rebuilding the executable
nh2 has quit [(Ping timeout: 240 seconds)]
<edofic>
linker uses RPATH to load the search path from the executable itself
<edofic>
and does not search other locations
<Gravious_>
right
<disasm>
mingo: unstable trails behind master sometimes. You can do a local nixpkgs clone and run export NIX_PATH="nixpkgs=/path/to/nixpkgs"; nix-shell -p terraform
Ivanych has quit [(Ping timeout: 248 seconds)]
<Gravious_>
edofic, is it not incorrect then that these libs are not absolute store paths? http://sprunge.us/JNZL
<Gravious_>
that's the result of running nix@salo:~$ readelf -d /nix/store/zcn2y8lavji97g9143naa4hpqmhp7p2k-lua5.1-luascrypt-1.1.2/lib/lua/5.1/scrypt.so
DutchWolfie has quit [(Quit: Konversation terminated!)]
<Gravious_>
oh yes look
<Gravious_>
there is no RUNPATH set
<edofic>
I tried running this for some executables and I also get a "Library runpath" entry
<Gravious_>
ok i guess that explains why it's not finding liblua
[0x4A6F] has joined #nixos
<disasm>
Gravious_: libraries aren't ran so they don't have a RUNPATH.
[0x4A6F] has quit [(Remote host closed the connection)]
Gravious1 has joined #nixos
Gravious_ has quit [(Ping timeout: 260 seconds)]
Gravious1 is now known as Gravious_
katyucha has quit [(Killed (orwell.freenode.net (Nickname regained by services)))]
katyucha_ is now known as katyucha
jensens has quit [(Ping timeout: 255 seconds)]
katyucha_ has joined #nixos
ryanartecona has quit [(Quit: ryanartecona)]
ennui has joined #nixos
avorobi has left #nixos ["Killed buffer"]
<manveru>
hm, found another game not working in steam :(
<manveru>
"/steamrt/i386/usr/lib/i386-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /host/mnt/big/Steam/steamapps/common/Silver/silver32)"
<manveru>
any ideas how to fix that?
grumble has quit [(Quit: n)]
grumble has joined #nixos
nh2 has joined #nixos
leexius has joined #nixos
<manveru>
ldd says silver32 isn't a dynamic executable... but file says it's linked
neonfuz has joined #nixos
<neonfuz>
Hey
<neonfuz>
my friend just instaled nixos on his macbook air, and upon rebooting he can't use his trackpad
<neonfuz>
he did the default x11 + plasma5
<neonfuz>
the trackpad worked on the live usb
<johnw>
does anyone have hdevtools working with current Nix?
<johnw>
it's not locating any of my dependencies
<manveru>
neonfuz: is services.xserver.synaptics.enabled = true?
exarkun has quit [(Read error: Connection reset by peer)]
<ennui>
The stdenv of newer Nixpkgs versions fails to set the CFLAGS/LDFLAGS for the package 'libav'. See here for a reproducible demo: https://www.pastiebin.com/595cfdc3ec84d. What am I doing wong?
avorobi has left #nixos ["Killed buffer"]
alex-v has joined #nixos
Filystyn has quit [(Quit: Konversation terminated!)]
<Infinisil>
neonfuz: manveru: i'm only using xserver.multitouch.enable = true; in my config and the Mac's touchpad works
exarkun has joined #nixos
<neonfuz>
services.xserver.multitouch.enable?
sigmundv_ has quit [(Read error: Connection reset by peer)]
riclima has quit [(Ping timeout: 248 seconds)]
<mingo>
disasm: thanks! I do see that it's pointing to an older sha. Do you know how to create a channel that points to a specific path? I will install it via your method as well. Thanks for your help again!
nh2 has joined #nixos
indi_ has joined #nixos
romildo has joined #nixos
romildo has quit [(Client Quit)]
romildo has joined #nixos
danl1240 has quit [(Quit: My iMac has gone to sleep. ZZZzzz…)]
indi_ has quit [(Ping timeout: 276 seconds)]
lambdael has joined #nixos
nh2 has quit [(Ping timeout: 248 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] ryantrinkle pushed 5 new commits to staging: https://git.io/vQa7M
<Unode>
clever, guillaum1 for this particular case static is what I was trying to get out. I'm simply using nix to handle dependencies. The aim is to have a binary that works in somewhat heterogeneous systems on which nix is not available.
<kugelblitz>
i've noticed when installing a package by suffixing ".dev" I also get the header files. How can I put them and the according libs in my include paths? Like when I do nix-shell -p libopus.dev I want to be able to compile with gcc -libopus
<Unode>
kugelblitz: nix-shell -p libopus should work.
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<manveru>
though i guess that example is a bit old school already :)
tmaekawa has quit [(Client Quit)]
hellrazor has joined #nixos
mingo has quit [(Ping timeout: 260 seconds)]
<Unode>
kugelblitz: I'm not familiar with that particular library, but that's how I usually use nix-shell and it works for me.
<kugelblitz>
Unode, so then you have the according libraries in your load path and can include their headers?
<neonfuz>
wow that looks easy
<Unode>
neonfuz: I'm also a gentoo user and have nixos. I have both running. Nixos mostly works but every now and then I encounter some software that expects things in specific locations and it doesn't behave well on nixos. Don't know about android studio but the android tools work fine.
<Unode>
kugelblitz: usually the ./configure step finds them.
<neonfuz>
alright cool, thats what I thought
<Unode>
kugelblitz: if you have that kind of setup
cpennington has quit [(Remote host closed the connection)]
<Unode>
neonfuz: there are ways to go about it and have it running. I haven't dedicated enough time to learn it all.
<Unode>
neonfuz: there's some people here that know all about it and are usually quite helpful, so if you ask specific questions you usually get decent answers.
<kugelblitz>
Unode, awh no I just wanted to do a opus example. So i created one main.c and included opus.h
<Infinisil>
I've been running NixOS for a couple months now, I'm still not done configuring :D
<Unode>
Infinisil: I've been running Gentoo for over 10 years. I don't think I'm done configuring either.
indi_ has joined #nixos
<Unode>
but I know what you mean :)
<manveru>
gchristensen: so... i guess the culprit is the fetchurl { downloadToTemp = true; }
<gchristensen>
interesting
<manveru>
i wonder where mkDerivation passes that attr to
nh2 has quit [(Quit: Leaving.)]
<manveru>
since fetchurl just passes it to mkDerivation, but there's no trace of it later
sphalerite[m] has joined #nixos
<manveru>
ah... think i found it
<manveru>
so it depends on TMPDIR
indi_ has quit [(Ping timeout: 240 seconds)]
freusque has quit [(Ping timeout: 240 seconds)]
<manveru>
in theory that should be /tmp... or /build inside the drv
<manveru>
anyway, this thing will only work on single user nix, so i'll probably have to rip it out
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] 7c6f434c pushed 2 new commits to master: https://git.io/vQapA
<NixOS_GitHub>
nixpkgs/master 32b2aa4 Kranium Gikos Mendoza: zabbix-cli: init at 1.6.1
<NixOS_GitHub>
nixpkgs/master c089080 Michael Raskin: Merge pull request #26121 from womfoo/init/zabbix-cli-1.6.1...
NixOS_GitHub has left #nixos []
<Gravious_>
hrm
<Gravious_>
does nixos stdenv really not set RUNPATH by default?
ryanartecona has joined #nixos
danl1240 has joined #nixos
<sphalerite[m]>
I'm pretty sure it does
<sphalerite[m]>
In the cc wrapper
faffolter has quit [(Ping timeout: 260 seconds)]
<Gravious_>
weird i just wrote a derivation of a really simple set of programs i wrote that depend on another shared lib and the RUNPATH isn't set. I'll poke around...
<sphalerite[m]>
Do they link against it at build time?
<sphalerite[m]>
Or load them dynamically using libdl? Because in that case yeah it won't get detected and you'll typically need to use patchelf to add the paths manually
<Gravious_>
sphalerite[m], linked at build time yes
nh2 has joined #nixos
<cheshircat>
bundix is giving errors for me when I follow the procedure in the manual, is it still the recommended way to install ruby packages?
<NixOS_GitHub>
nixpkgs/master bb8759f Volth: no need to patch if old wxWebView is used
<NixOS_GitHub>
nixpkgs/master a720bd4 volth: Merge branch 'master' into wxwidgets-3.0.3.1
NixOS_GitHub has left #nixos []
<Gravious_>
sphalerite[m], indeed, i just want to try a couple of things first
<slabity>
How do you decide whether to install something with `environment.systemPackages` or as just `nix-env -i`
<sphalerite[m]>
slabity: it's a matter of personal preference. I personally manage my software declaratively but install it only for my user apart from systemwide services and keep the system config to a minimum
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] 7c6f434c pushed 2 new commits to master: https://git.io/vQVeB
<NixOS_GitHub>
nixpkgs/master e33c7fa Peter Jones: blackmagic init at 1.6.1
<NixOS_GitHub>
nixpkgs/master 8dee8d5 Michael Raskin: Merge pull request #26584 from pjones/pjones/blackmagic...
NixOS_GitHub has left #nixos []
eacameron has quit [(Quit: Leaving...)]
<sphalerite[m]>
slabity: so I keep an expression which I install using nix-env -ir whenever I've modified it or updated nixpkgs
<Infinisil>
sphalerite[m]: To be exact, using nix-env -i is also declaratively (I'm pretty sure)
<Infinisil>
Well, it just builds an expression
<sphalerite[m]>
Infinisil: sure it does, but it's hard to get that expression back in a usable form
<Infinisil>
sphalerite[m]: Yeah
<Infinisil>
I'd still really like a per-user configuration.nix
<sphalerite[m]>
That's basically what you get with nix-env -ir...
arianvp2 has quit [(Quit: arianvp2)]
<sphalerite[m]>
If you need more advanced config features use rycee's home-manager
<sphalerite[m]>
But I don't (yet), and there's very little user config I don't manage with nix
mellowmaroon has joined #nixos
pie_ has quit [(Read error: Connection reset by peer)]
pie__ has joined #nixos
<Infinisil>
sphalerite[m]: I don't mean only packages, but also services, package configs and whatever else should be manageable on a per-user basis
<Infinisil>
I'll have a look at rycee's home-manager
<sphalerite[m]>
I manage my configs using nix too
<sphalerite[m]>
It's a bit ad-hoc using wrappers, but it works
<Infinisil>
sphalerite[m]: I've played around with something like this too, how did you do it?
koserge has quit [(Ping timeout: 248 seconds)]
<Infinisil>
sphalerite[m]: And what were you *not* able to use nix for?
<sphalerite[m]>
Infinisil: I had to manually link .nix-profile/bin/xsession to ~/.xsession and I haven't worked out a way to manage user systemd services yet, but I don't think I will. Home-manager seems like a more elegant way
<Sonarpulse>
just tagged you in that
<Infinisil>
sphalerite[m]: Interesting, I'll have a closer look at your dotfiles
<sphalerite[m]>
What with being based on the modules system from nixos
zeus_ has quit [(Read error: Connection reset by peer)]
MercurialAlchemi has quit [(Ping timeout: 248 seconds)]
<Infinisil>
sphalerite[m]: Yeah that's what I'm thinking about, there's nothing inheritently limiting modules to nixos
zeus_ has joined #nixos
<Infinisil>
Well except for the fact that modules can modify arbitrary stuff in configuration.nix
<sphalerite[m]>
Gravious_: oh, linking against libraries that are built in the same derivation? Yeah I think that might not be handled correctly rpath-wise
<sphalerite[m]>
Infinisil: the module system != the modules ;) I don't think many, if any nixos modules can be reused as Home-manager modules
kugelblitz has quit [(Quit: Leaving)]
justbeingglad has joined #nixos
<sphalerite[m]>
But the whole merging logic, the includes, the type checking and so on
<Infinisil>
Ahh right
nh2 has quit [(Quit: Leaving.)]
justbeingglad has left #nixos []
hiratara has quit [(Ping timeout: 246 seconds)]
<Infinisil>
sphalerite[m]: But most in nixos/modules/programs I'd think
<Infinisil>
A great example is tmux.nix in that directory
<kriztw>
mellowmaroon: I do, it works for me with intero
<sphalerite[m]>
I don't think so. Usually if they're in the systemwide config there's a reason for taking that approach rather than just providing an override for the package itself (which would allow it to be used unprivileged and on OSX too for instance)
<sphalerite[m]>
Yes, tmux is an odd case and I don't see why it has a module
<mellowmaroon>
kriztw: Could you maybe pastebin your .spacemacs?
<kriztw>
mellowmaroon: yeah, sec
<sphalerite[m]>
Where modules are actually useful to have is for shells for instance, as the user shell setting is systemwide
<sphalerite[m]>
And for programs that need setuid (sudo, firejail)
<mellowmaroon>
kriztw: When I tried intero, it kept not finding run-ghc and stack
nh2 has joined #nixos
hiratara has joined #nixos
<Infinisil>
sphalerite[m]: I'd just really like to be able to configure all programs with nix (and not files)
<sphalerite[m]>
Yes, me too. But modules are usually not the right approach IMHO
<kriztw>
mellowmaroon: well, you need to have stack installed either as a system package or in your user environment
<sphalerite[m]>
Instead preferring packages which can be overridden, reason being that they're more versatile — they're more compatible across platforms, they can be used with nix-shell, etc
<mellowmaroon>
kriztw: ...right. I kept using stack in a nix-shell, forgot it wasn't globally installed....thanks :)
<Sonarpulse>
but hopefully angerman and I can clean up some of it before elegant is merged
<Sonarpulse>
as "elegant" is quite the undertaking
romildo has quit [(Read error: Connection reset by peer)]
<jophish>
gotcha, I'll start a build with that and see if it works
<jophish>
I've also started a build with STRIP_CMD in mk/build.mk instead of in configureflags
<jophish>
just in case
arjen-jonathan has quit [(Ping timeout: 240 seconds)]
<sphalerite[m]>
Infinisil: sorry, didn't hl you on the past few messages. Just started using matrix on my phone and it's quite a different experience from irssi on the laptop :)
civodul has quit [(Quit: ERC (IRC client for Emacs 25.2.1))]
<Infinisil>
sphalerite[m]: See ya!
<mellowmaroon>
Yep, good night sphalerite[m]!
<mellowmaroon>
Is there a way I can use all of hakyll's dependencies from Nix? When I try to build a project with it using `stack build`, I run into some errors building its deps
Gravious_ has quit [(Remote host closed the connection)]
<mellowmaroon>
Plus, I figure it might be better to have a lot of common dependencies installed through Nix vs stack
mudri has joined #nixos
<mellowmaroon>
and I included hakyll in its stack.yaml, which is odd. I figured it wouldn't have to build anything
<dalaing>
mellowmaroon: I've got hakyll running with Nix
<dalaing>
Also have latex packages folded in etc....
<dalaing>
Can prepare a paste when I get into work
<mellowmaroon>
dalaing: Awesome :D I really appreciate it
Gravious_ has joined #nixos
danl1240 has quit [(Quit: My iMac has gone to sleep. ZZZzzz…)]
<dalaing>
Do you have a cabal file? Pretty sure I started with whatever cabal2nix gave me
<mellowmaroon>
dalaing: Just the standard one from `hakyll-init project-name`
<dalaing>
Yeah, that was what I had as well
<mellowmaroon>
dalaing: afterwards, I ran `stack init`, which gives me stack.yaml from cabal config
<dalaing>
Ah, I haven't been using stack
<dalaing>
I just went straight to nix
<Infinisil>
mellowmaroon: That's not very nixy though
<dalaing>
Had some cabal / hakyll issues a while back, led me to try stack, that didn't work but then Nix did the trick
<mellowmaroon>
Infinisil: I'm afraid I don't really know how else to do it
<Infinisil>
I'd like to know how it works too as I intend to use hakyll at some point
<mellowmaroon>
dalaing: cool :) I'm used to the stack workflow, so that's what I tried
hellrazor has quit [(Ping timeout: 248 seconds)]
<mellowmaroon>
when I got the stack.yaml, I enabled nix and figured that was all I needed to do
hellrazo1 has joined #nixos
<Infinisil>
Right now I'm just sitting here, waiting for firefox to finish compiling, having a super-slow machine while it's doing that. I'd love to set up nixos on my powerful machine that's right next to me and use it for building everything
danl1240 has joined #nixos
<mellowmaroon>
dalaing: So I only need to do `hakyll-init xyz` -> `cabal2nix`, right?
<mellowmaroon>
dalaing: no stack things necessary?
<mellowmaroon>
Anyway, I'll try that. Maybe I can get in touch with you again later, I need to leave now.
<Sonarpulse>
jophish: I assume you figured out by now
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<mellowmaroon>
Thanks again for the help everyone!
<Sonarpulse>
but that "elegant" PR is very very broken
<Sonarpulse>
*native* bintuils won't build
<Sonarpulse>
for some reason
mellowmaroon has quit [(Quit: Leaving)]
phreedom has joined #nixos
<LnL>
is threre a nice way to get the outPath of a drv?
<LnL>
nix-store -q --binding out $@ is exactly what I was looking for
koserge has joined #nixos
hiratara has joined #nixos
simukis has quit [(Quit: simukis)]
<Infinisil>
Ahh, I forgot a -q
<Infinisil>
LnL: :)
<Infinisil>
And out instead of outPath
xadi has joined #nixos
<LnL>
well, looks like therre's a bug in my script
ilyaigpetrov has quit [(Quit: Connection closed for inactivity)]
koserge has quit [(Ping timeout: 260 seconds)]
<Infinisil>
LnL: What kind of bug?
* Gravious_
has finally established that if things are done right the RUNPATH gets patched by default >.>
indi_ has joined #nixos
jsgrant has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] bkchr opened pull request #27160: make-autostartitem: Use the right path for storing the desktop files (master...makeautostartitem_fix) https://git.io/vQVt8
<LnL>
that tries to find all the attributes of dependencies
ennui has quit [(Ping timeout: 255 seconds)]
justelex_ has quit [(Ping timeout: 240 seconds)]
ryanartecona has joined #nixos
<Infinisil>
LnL: Hmm, alright. I don't really get what /tmp/nix-nixpkgs-cache does though
<LnL>
it contains a list of all toplevel packages
<LnL>
so you have lines like nixpkgs.hello /nix/store/...
<Infinisil>
LnL: Ahh
<LnL>
so the result is a list of attributes you can use in a nix expression
<gchristensen>
clever: I did a clever thing with my netboot/pxe installer
mudri has quit [(Ping timeout: 248 seconds)]
<gchristensen>
clever: it embeds a fully built version of what is going to be installed on the system, so it can work without internet. gosh I love nixos. this was trivial.
<Infinisil>
LnL: You could use `mktemp -d` instead of /tmp/nix-nixpkgs-cache
<Infinisil>
Oh but you want it to not run again next time, right
<LnL>
it would be more correct, but slower
<Infinisil>
LnL: I believe the XDG directory ~/.cache/<name> is actually thought for such things (if you wanna be really pedantic)
pie__ has quit [(Remote host closed the connection)]
nil has joined #nixos
pie_ has joined #nixos
danl1240 has quit [(Quit: My iMac has gone to sleep. ZZZzzz…)]
danl1240 has joined #nixos
pie_ has quit [(Read error: Connection reset by peer)]
pie_ has joined #nixos
sigmundv_ has quit [(Ping timeout: 240 seconds)]
Gravious_ has quit [(Remote host closed the connection)]
digitus has quit [(Quit: digitus)]
endformationage has quit [(Quit: WeeChat 1.7)]
Isorkin has quit [(Ping timeout: 260 seconds)]
danl1240 has quit [(Read error: Connection timed out)]
Zer000 has joined #nixos
<Zer000>
gents I can't find the manual for nixos 15.0X - there was a section in the installation about chrooting - I want to boot a nixos livecd and chroot into my current setup
scottviteri has joined #nixos
<Zer000>
I flashed a new bios and now my disk UUID's are not the same
<Drakonis[m]>
a new bios
<Drakonis[m]>
hmm
<Drakonis[m]>
obviously not the same uuid because different bios
<Drakonis[m]>
perhaps you should obtain the new uuids and regenerate your installation
<Drakonis[m]>
by going to the hardware-configuration.nix file
<Drakonis[m]>
but don't take my word on it
<Drakonis[m]>
never dealt with this before
<Zer000>
that's the plan, I need to boot the live usb, chroot, change the uuids, then do a nixos-rebuild switch
<Zer000>
but I cannot figure out how to chroot properly
erasmas has quit [(Quit: leaving)]
<Zer000>
ah the manual is on github, just not where I was looking
<Zer000>
I hope this works though
<spinus>
Zer000: nixos-install --chroot
<joepie91>
I only just realized that Nix doesn't have decimals or floats
spinus has quit [(Read error: Connection reset by peer)]
<joepie91>
I feel like this should have been obvious to me sooner :P
markus1199 has joined #nixos
pie_ has quit [(Ping timeout: 276 seconds)]
spinus has joined #nixos
Rotaerk has joined #nixos
markus1189 has quit [(Ping timeout: 248 seconds)]
scottviteri has left #nixos []
earldouglas has quit [(Quit: leaving)]
sviteri has joined #nixos
jsgrant has quit [(Ping timeout: 248 seconds)]
<Zer000>
guys I ran nixos-install with my drive mounted as /mnt (btw the root device was just /dev/sda not a uuid) and it failed to build saying error: unused option PSS_MIXER