<dhess>
elvishjerricco: right, I've been watching that space :)
<elvishjerricco>
Might help, considering how many languages depend on C at some level
ssmike has joined #nixos
<elvishjerricco>
Still need to get more syscalls implemented in JS though....
<dhess>
elvishjerricco: I think for my purposes I am going to target a VM designed for the browser environment, rather than translating POSIX to JS/browser.
dan_b has joined #nixos
<dhess>
I'm not worried about porting existing programs
<elvishjerricco>
Fair. I just think it'd be good for wasm to have a POSIX environment, for the sake of porting existing programs.
<elvishjerricco>
or I guess libraries are more importat
<dhess>
oh yeah, agreed completely.
<dhess>
I would love to run Haskell programs in the browser :)
<dhess>
without ghcjs that is
<dhess>
it'll be interesting to see how that plays out
<dhess>
I am rooting for you and wasm ;)
<elvishjerricco>
Thanks :)
ma27 has quit [(Ping timeout: 255 seconds)]
ipj[m] has joined #nixos
ssmike has quit [(Ping timeout: 252 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nix] edolstra pushed 3 new commits to master: https://git.io/vbC4j
<NixOS_GitHub>
nix/master 338f29d Eelco Dolstra: nix ls-{nar,store}: Return offset of files in the NAR if known...
<NixOS_GitHub>
nix/master 2df9cbe Eelco Dolstra: Provide random access to cached NARs...
<NixOS_GitHub>
nix/master e301354 Eelco Dolstra: Fix test
NixOS_GitHub has left #nixos []
sigmundv has quit [(Quit: Leaving)]
sigmundv has joined #nixos
ma27 has joined #nixos
<stphrolland>
there's something I don't understand. I cd into a project. I type nix-shell -p nodejs-6_x. Do some little stuff. Then exit. Write nix-collect-garbage, there are some things that are deleted, but none with a nodejs name. What is holding the dependencies so as nodejs is not deleted ?
wapl_ has joined #nixos
wapl has quit [(Ping timeout: 252 seconds)]
<maurer>
I've plugged in an ethernet cable, but nixos doesn't seem to be dhcping on it. Is there some systemd command I need to run?
<dhess>
gchristensen: what's this person's deal? They seemed fairly helpful at first and quite active
<maurer>
Some of that can be tolerated from people who do work, but if you click through his username, he's never done anything other than report bugs and whine at people
<maurer>
(at least under the williammprat alias)
<dhess>
maurer: it was the same as 0xABAB
<gchristensen>
dhess: they're rude, manipulative jerks who think they're smarter than everyone else and think that working together with people "stupider than them" is a waste of their intellect. this is, almost exactly, a direct quote from an email they sent me after the first time they were banned.
<dhess>
gchristensen: see that's the thing I don't get. If it's a waste of their intellect, why do they post so much and keep coming back?
<gchristensen>
their MO is to create a new account, be helpful and not a jerk for a few days, and then progressively become more and more rude until we ban them
<dhess>
yeah that is just bizarre.
<gchristensen>
I've suggested that to them several times now, that maybe we're too stupid and not worth their time
<dhess>
gchristensen: Sorry you have to deal with that.
<gchristensen>
yeah ... it is very tiring :(
<gchristensen>
their pratt name has been banned
<dhess>
Don't let it get you down if you can help it.
<gchristensen>
I like to stay on IRC because of how wonderful y'all are :)
<maurer>
In any case, on a support topic, anyone have advice on how to get nixos to dhcp my ethernet jack?
akfp has quit [(Read error: Connection reset by peer)]
joshuaks has joined #nixos
<maurer>
It shows that the link is up, and that it has an ipv6 addr, but no ipv4 addr
mbock has joined #nixos
mbock is now known as bona
akfp has joined #nixos
<maurer>
I know the line is good b/c if I unplug it and plug it into another machine, it gets an ipv4 addr just fine
ati-radeon has quit [(Ping timeout: 260 seconds)]
<stphrolland>
If it can make a smile on your face, I was a windows user and developper. And after switching to linux, I came finally to nixos. Not that important, just to say.
<gchristensen>
I'll go through the issues he was involved with in let people know what happened.
<gchristensen>
<3 that helps a LOT, stphrolland!
<bona>
hi! has anyone installed emacs nix-mode via `emacsWithPackages`? It's installed but I'm missing a bunch of functions in there.. for instance `nix-format` is not available...
<elvishjerricco>
dhess: Oh I forgot to mention, the WebAssembly backend in LLVM is experimental, so you have to enable it when you build LLVM with `-DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=WebAssembly`
<kini>
I'm trying to follow the instructions in pkgs/development/lisp-modules/README.txt in nixpkgs, but step 2 fails with a warning about mismatched asdf versions and an error about a missing :md5 value -- can anyone reproduce? (skip step 1)
wapl has quit [(Ping timeout: 240 seconds)]
wapl has joined #nixos
akfp has quit [(Read error: Connection reset by peer)]
akfp has joined #nixos
akfp has quit [(Read error: Connection reset by peer)]
acarrico has joined #nixos
akfp has joined #nixos
<kini>
actually I guess there is also an error about being unable to create /homeless-dir , which doesn't bode well... feels like I'm doing something wrong, but I'm just following the instructions in the readme :/
ma27 has quit [(Ping timeout: 255 seconds)]
<roberth>
hello Nixers, do you know of anyone who has implemented monad transformers in Nix?
<roberth>
I have made an attempt to do so without a typed reference implementation and it was painful
<rnhmjoj[m]>
kini: yep, I get the same error
<kini>
Thanks for the confirmation. I guess I'll file an issue on github and ping MichaelRaskin (who is not on IRC at the moment it seems)
sigmundv has joined #nixos
<rnhmjoj[m]>
kini: is there a reason these instructions aren't in the nixpkgs manual?
leothrix has joined #nixos
<kini>
not sure, probably because it's a pretty specific thing and it also seems kind of new and experimental (?)
<rnhmjoj[m]>
i'm also curious. Nix has not ADTs nor typeclasses. how do you do it?
proteusguy has joined #nixos
<kini>
rnhmjoj[m]: did you get the same error message as seen in the github issue I linked (i.e. different from mine)? Actually, do you get an error from just running `nix-shell --pure` in that directory (without the `--run [...]` part)?
dieggsy has quit [(Ping timeout: 255 seconds)]
justanotheruser has joined #nixos
justanotheruser has quit [(Client Quit)]
justanotheruser has joined #nixos
<rnhmjoj[m]>
kini: nix-shell --pure fails as well
<kini>
Thanks. That suggests a different problem from that github issue (even though that issue is only two days old...) so I'll open a new issue, I guess.
<rnhmjoj[m]>
the strange thing is that the error was different the first time. I don't see the homeless-shelter part anymore
<kini>
Maybe because of the added --pure? I don't know why that would make a difference, though... (and I see the homeless-shelter message whether I use --pure or not)
ris has quit [(Ping timeout: 240 seconds)]
dan_b has quit [(Ping timeout: 264 seconds)]
wapl_ has quit [(Ping timeout: 260 seconds)]
wapl has joined #nixos
akfp has quit [(Read error: Connection reset by peer)]
akfp has joined #nixos
<rnhmjoj[m]>
my mistake, /homeless-shelter: permission denied is still there.
bona has quit [(Ping timeout: 260 seconds)]
wapl has quit [(Ping timeout: 240 seconds)]
<samueldr>
/homeless-shelter errors usually happen when *something* tries to use the home folder, often for configuration or cache files
wapl has joined #nixos
slack1256 has joined #nixos
danl1240 has quit [(Quit: My iMac has gone to sleep. ZZZzzz…)]
Shados has quit [(Remote host closed the connection)]
Shados has joined #nixos
<kini>
right, that much I knew, but I'm not sure what exactly is trying to access the home folder
<kini>
and since we have two people who independently got the same error, I guess it's probably not some impurity coming from my particular system configuration...
<samueldr>
(I don't know anything about lisp, quicklisp, and lisp in nixos)
berce has quit [(Ping timeout: 252 seconds)]
<samueldr>
I looked at the README and saw nothing obvious I could test, sorry
<kini>
thanks anyway :)
<samueldr>
oh, this changed in unstable
<samueldr>
I'm on 17.09 and looked at my local checkout
thc202 has quit [(Ping timeout: 240 seconds)]
<kini>
this stuff seems to have been last edited in early september
<samueldr>
yep
<roberth>
dhess: by monad transformers I mean writing something similar to Haskell's monad transformers in Nix
wapl has quit [(Ping timeout: 260 seconds)]
wapl has joined #nixos
<roberth>
the lack of types and type classes makes the implementation more than just removing Haskell's type signatures and calling it a day obviously
dieggsy has joined #nixos
<roberth>
but you can use normal arguments for type class constraints
aarvar has quit [(Ping timeout: 248 seconds)]
<roberth>
you lose the automation provided by type classes, and the safety of Haskell's class coherence, but you gain first class instance construction and you don't have to wrap your data in newtypes to select the right monoid instance for numbers
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] adisbladis pushed 2 new commits to master: https://git.io/vbC20
<NixOS_GitHub>
nixpkgs/master 3025eb4 Izorkin: mydumper: init at 0.9.3
<NixOS_GitHub>
nixpkgs/master 08f75f5 adisbladis: Merge pull request #32385 from Izorkin/mydumper...
NixOS_GitHub has left #nixos []
<roberth>
but the lack of static types makes such a library painful to debug
<dhess>
roberth: forget about monad transformers, do you have an example of how you've implemented just a single monad instance in Nix?
<dhess>
I'm curious how you get any benefits from the monad "straightjacket" in Nix.
slack1256 has quit [(Remote host closed the connection)]
nuncanada has quit [(Remote host closed the connection)]
akfp has quit [(Read error: Connection reset by peer)]
<hl>
but it looks like there's an issue with build-support not exposing the right environment variables to cause the right include paths to be exposed for host dependencies.
akfp has joined #nixos
nuncanada has joined #nixos
Supersonic112_ has joined #nixos
<hl>
(which ultimately leads to the acl package not being able to detect attr/xattr.h during configure, even though attr is a build input)
joshuaks has joined #nixos
Turion has quit [(Ping timeout: 240 seconds)]
Supersonic112_ is now known as Supersonic112
aarvar has quit [(Ping timeout: 268 seconds)]
wapl has quit [(Ping timeout: 248 seconds)]
wapl has joined #nixos
sary has joined #nixos
mbrgm has quit [(Ping timeout: 268 seconds)]
mbrgm has joined #nixos
nuncanada has quit [(Quit: Leaving)]
rogue_koder_ has joined #nixos
dieggsy has quit [(Quit: ERC (IRC client for Emacs 27.0.50))]
dieggsy has joined #nixos
lambdamu_ has joined #nixos
akfp has quit [(Read error: Connection reset by peer)]
akfp has joined #nixos
rogue_koder has quit [(Ping timeout: 240 seconds)]
rogue_koder_ has quit [(Read error: Connection reset by peer)]
joshuaks has quit [(Quit: WeeChat 1.9.1)]
Neo-- has quit [(Ping timeout: 255 seconds)]
rogue_koder_ has joined #nixos
rogue_koder has quit [(Ping timeout: 240 seconds)]
mudri has quit [(Remote host closed the connection)]
Ridout has quit [(Quit: Lost terminal)]
dejanr has joined #nixos
drakonis has quit [(Quit: Leaving)]
leat has joined #nixos
andrewrk has quit [(Ping timeout: 250 seconds)]
andrewrk has joined #nixos
CMCDragonkai1 has quit [(Ping timeout: 255 seconds)]
<fearlessKim[m]>
I log nixops commands to help me debugging, so I try to rerun that command "ssh -oControlPath=/run/user/1000/nixops-ssh-tmpKxciZU/master-socket -p 22 -o StrictHostKeyChecking=no -i /run/user/1000/nixops-tmpQIzgQe/id_nixops-client -p 22 -o StrictHostKeyChecking=no -i /run/user/1000/nixops-tmpQIzgQe/id_nixops-client -x root@192.168.122.183 -- /nix/var/nix/profiles/system/bin/switch-to-configuration switch" but the system
<fearlessKim[m]>
can't find the keys /run/user/1000/nixops-tmpQIzgQe/id_nixops-client, how can I ask nixops to keep those keys ?
akfp has quit [(Read error: Connection reset by peer)]
akfp has joined #nixos
zraexy has quit [(Quit: Leaving.)]
Lisanna has joined #nixos
lstanley has joined #nixos
akfp has quit [(Read error: Connection reset by peer)]
akfp has joined #nixos
akfp has quit [(Read error: Connection reset by peer)]
akfp has joined #nixos
jasom has joined #nixos
endformationage has quit [(Quit: WeeChat 1.9.1)]
<jasom>
Any suggestions for debugging the following error whin doing a nix-env --upgrade? building path(s) ‘/nix/store/892sncz822x8s8pslwr75v832ygqqjhq-user-environment’\nerror: unexpected EOF reading a line
aarvar has joined #nixos
<clever>
jasom: its a problem with nix unstable, in the propagated inputs
akfp has quit [(Read error: Connection reset by peer)]
<jluttine>
i have shell.nix with content: `with import <nixpkgs> {}; python3.withPackages (ps: [ps.numpy])` but after running `nix-shell`, there's no python available. why?
<Lisanna>
jluttine: nix-shell will setup an environment with the buildInputs of a derivation, not the derivation itself. You want something more like nix-shell -p I think, but I'm not sure what the right syntax is for using that with a local file.
ma27 has joined #nixos
<jluttine>
Lisanna: so those instructions are wrong?
rogue_koder_ has quit [(Ping timeout: 248 seconds)]
berce has joined #nixos
candy` has quit [(Ping timeout: 252 seconds)]
i-am-the-slime has joined #nixos
akfp has quit [(Read error: Connection reset by peer)]
akfp has joined #nixos
Bitcoin_Pro has joined #nixos
Ivanych has joined #nixos
<Bitcoin_Pro>
hey
<Bitcoin_Pro>
https://freebitco.in/?r=10132979&tag=source4 Is a "faucet" that offers 100% free bitcoin. Only need an E-mail to get started, earn up to $2 an hour by logging in FOR 5 SECONDS !!! I'm making almost $400 a month doing it now! If I can do it, I know you can! Join now!! I want you to join because the more money you make the more money I make!!
Shados has quit [(Remote host closed the connection)]
Shados has joined #nixos
vandenoever has quit [(Ping timeout: 248 seconds)]
<petersjt014[m]>
I kinda gotta sleep now--if anyone finds where it'd go, feel free to leave it here. Thanks!
<hyper_ch>
petersjt014[m]: is this for installation? or upon every boot?
akfp has quit [(Read error: Connection reset by peer)]
<petersjt014[m]>
installation
akfp has joined #nixos
<hyper_ch>
there's a better option imho... just write the file to the iso with according script to run it
<hyper_ch>
I wouldn't want to auto-partition anything... but then, I don't run enterprise/datecenter level computers
<hyper_ch>
just think if you accidentally put the usb into a computer and boot from it and you forgot it autopartitions
<petersjt014[m]>
If I was doing this en masse I'd prob have hydra and some other wizard tools set up--luckily, this is a device I can babysit
BioSpider has joined #nixos
<petersjt014[m]>
gotta go now
<petersjt014[m]>
bye
pie___ has joined #nixos
pie__ has quit [(Ping timeout: 255 seconds)]
leat has joined #nixos
periklis has joined #nixos
mrkgnao has quit [(Ping timeout: 255 seconds)]
ylwghst has joined #nixos
zzamboni has joined #nixos
johann__ has quit [(Ping timeout: 268 seconds)]
* hyper_ch
gives infinisil his 2h back
<infinisil>
Heh
<infinisil>
I've created something pretty cool recently
<hyper_ch>
a take-over-the-world button?
Itkovian has joined #nixos
<infinisil>
A nix derivation built from a list of images, which are used to prerender transitions between all pairs of them, and have a script set them as backgrounds and transition smoothly between them with the prerendered stuff
<infinisil>
randomly of course
ylwghst has quit [(Quit: Lost terminal)]
<hyper_ch>
I'd prefer a take-over-the-world button :)
<infinisil>
All you give as input is a folder and it gives you a derivation with a ready-to-run script for changing the given wallpapers smoothly
<hyper_ch>
back in the day, when I was young, I also bothered with backgrounds... as I grew older... I stopped bothering :)
akfp has quit [(Read error: Connection reset by peer)]
akfp has joined #nixos
<infinisil>
I created a fancy blur transition though :O
<hyper_ch>
and this works for what? gnome? kde? xfce?
<infinisil>
It just uses `feh --bg-fill`
<infinisil>
so probably anything X
<hyper_ch>
ah :)
<hyper_ch>
cool
i-am-the-slime has joined #nixos
<infinisil>
It takes quiet a while to render all the transitions though
<infinisil>
depending on parameters given
<infinisil>
And for some reason it doesn't use the already built one if you rerun nix-build
johann__ has joined #nixos
griff_ has joined #nixos
<hyper_ch>
:)
i-am-the-slime has quit [(Ping timeout: 268 seconds)]
Tucky has joined #nixos
i-am-the-slime has joined #nixos
zzamboni has quit [(Quit: Leaving.)]
vandenoever has quit [(Ping timeout: 240 seconds)]
akfp has quit [(Read error: Connection reset by peer)]
akfp has joined #nixos
noob9 has joined #nixos
vandenoever has joined #nixos
vandenoever has quit [(Changing host)]
vandenoever has joined #nixos
reinzelmann has quit [(Ping timeout: 240 seconds)]
civodul has joined #nixos
orivej_ is now known as orivej
<noob9>
hi I'm trying to build matlab using nix, but I'm getting stuck on error loading shared libraries: libpam.so.0 (no such file or directory)
<noob9>
is there some library path I can include in libPath of my default.nix file to overcome this? or patch it in some way
<hyper_ch>
supply it as build input or propagatedbuildinput
georges-duperon has joined #nixos
<noob9>
so I just put libpam in the build input?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] orivej pushed 1 new commit to master: https://git.io/vbC7q
<NixOS_GitHub>
nixpkgs/master f1226ac Orivej Desh: cinelerra: disable parallel building
NixOS_GitHub has left #nixos []
i-am-the-slime has quit [(Quit: Konversation terminated!)]
<hyper_ch>
probably
jensens has joined #nixos
reinzelmann has joined #nixos
hamishmack has quit [(Ping timeout: 260 seconds)]
<noob9>
so building with libpam throws an error 'undefined variable'
<noob9>
libpam.so and just pam don't fix the problem...
zzamboni has joined #nixos
<hyper_ch>
pastebinit
hotfuzz_ has joined #nixos
goibhniu has joined #nixos
Itkovian has quit [(Read error: Connection reset by peer)]
<magnetophon>
I have some stuff that needs to live in $out/doc, not $out/share/doc/ but when try to move it there in postFixup, there is no share yet. So I set postPhases = "finalPhase"; and do it there. Same result. Ideas?
asuryawanshi has joined #nixos
asuryawanshi has quit [(Remote host closed the connection)]
asuryawanshi has joined #nixos
zzamboni has quit [(Quit: Leaving.)]
<stranger__>
isn't it just pam instead of libpam?
<noob9>
I tried that but guessing some output file needs to be patched?
andromeda-galaxy has quit [(Ping timeout: 248 seconds)]
zzamboni has joined #nixos
<hyper_ch>
seems to be just "pam"
asuryawanshi has quit [(Remote host closed the connection)]
<hyper_ch>
10 linux-pam-1.2.1 (nixos.pam)
asuryawanshi has joined #nixos
andromeda-galaxy has joined #nixos
<stranger__>
noob9: it has lib/libpam* in output
johann__ has quit [(Quit: Leaving.)]
hamishmack has joined #nixos
Sonarpulse has quit [(Ping timeout: 255 seconds)]
FRidh has joined #nixos
<magnetophon>
sorry,my bad: I missed $out in the path
<hyper_ch>
why use "with import <nixpkgs> {}; ?
<noob9>
I'm just borrowing someone else's script and patching for a newer version
<hyper_ch>
isn't makeLibraryPth only needed when you hae to patch binaries?
<sphalerite>
Lol building MATLAB from source
<hyper_ch>
fail to see what's funny about it :)
akfp has quit [(Read error: Connection reset by peer)]
<noob9>
yeah I guess it's building from source
<noob9>
no alternative
akfp has joined #nixos
zzamboni has quit [(Quit: Leaving.)]
orivej has quit [(Ping timeout: 240 seconds)]
ThatDocsLady has joined #nixos
ThatDocsLady has quit [(Remote host closed the connection)]
<noob9>
stranger__: how did you build pam? I get error: default.nix no such file or directory when I run 'nix-build -A pam'
ShalokShalom has quit [(Remote host closed the connection)]
derped has joined #nixos
Itkovian has joined #nixos
<sphalerite>
Where are you planning to get matlab's source?
griff_ has quit [(Quit: griff_)]
ThatDocsLady has joined #nixos
<infinisil>
noob9: Oh boy, isn't matlab huge? I thought about packaging it once, but it didn't seem easy at all
griff_ has joined #nixos
<noob9>
yeah it's pretty large... ~9G install
<noob9>
and I got the source from the website
griff_ has quit [(Client Quit)]
<stranger__>
noob9: you need to do it from the nixpkgs repository
<stranger__>
right from it's root
<infinisil>
I'd think it's gonna take a while to get it to work nicely on nix, but that would be really nice!
Turion has quit [(Remote host closed the connection)]
<sphalerite>
Oh, its source is available?
<noob9>
there is an installer available but the license is paid
<noob9>
I don't know if the source is the same thing since it downloads a bunch of files after authenticating
orivej has joined #nixos
zzamboni has joined #nixos
ilja_kuklic has joined #nixos
ShalokShalom_ has joined #nixos
zzamboni has quit [(Quit: Leaving.)]
zzamboni has joined #nixos
__Sander__ has joined #nixos
griff_ has joined #nixos
zzamboni has quit [(Quit: Leaving.)]
griff_ has quit [(Quit: griff_)]
thc202 has joined #nixos
coot has joined #nixos
ShalokShalom__ has joined #nixos
<Lisanna>
it's too bad that you can't use nix user environments with nix-shell, seems like it would be a cool way to jump into an environment and test it out without messing up your top-level one.
ShalokShalom__ has quit [(Remote host closed the connection)]
zzamboni has joined #nixos
akfp` has joined #nixos
<infinisil>
Lisanna: what do you mean exactly?
sigmundv_ has quit [(Ping timeout: 248 seconds)]
amir has quit [(Remote host closed the connection)]
kwork has quit [(Quit: No Ping reply in 180 seconds.)]
<Lisanna>
infinisil: as in, I've built an environment with pkgs.buildEnv, and I want to "switch" to it. I could use nix-env to do this, but that's stateful, and monkeys with my home directory and stuff. I'd like to be able to call nix-shell --env=env.nix and get a nix-shell with that environment, without touching my user's profile.
kwork has joined #nixos
<Lisanna>
the closest thing to this that I can see is to use nix-shell -p and pass the same list of packages that you would to pkgs.buildEnv's "paths" attribute
<Lisanna>
but that doesn't sound terribly fun ):
<infinisil>
Lisanna: But like how do you want to switch to it without it being stateful?
sigmundv has joined #nixos
aszlig has quit [(Remote host closed the connection)]
zzamboni has quit [(Ping timeout: 260 seconds)]
etu has quit [(Ping timeout: 248 seconds)]
aszlig has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] orivej pushed 1 new commit to master: https://git.io/vbCNo
<NixOS_GitHub>
nixpkgs/master c9a03d9 Orivej Desh: premake5: fix build on darwin
NixOS_GitHub has left #nixos []
akfp` has quit [(Read error: Connection reset by peer)]
akfp has quit [(Remote host closed the connection)]
<Lisanna>
because it doesn't touch anything outside of the Nix store and my bash environment variables
townsend has joined #nixos
akfp` has joined #nixos
amir has joined #nixos
<infinisil>
Lisanna: How does buildEnv mess with $HOME?
kwork has quit [(Changing host)]
kwork has joined #nixos
<Lisanna>
it doesn't, nix-env does
<Lisanna>
nix-env is the only way to enter an environment that I know of
zzamboni has joined #nixos
<infinisil>
well it just updates the .nix-profile
etu has joined #nixos
<Lisanna>
yeah
cfricke has joined #nixos
cfricke has quit [(Client Quit)]
<infinisil>
soo, you basically want to switch between different user profiles?
<Lisanna>
yes
<Lisanna>
but with nix-shell, so I don't have to manage state
<Lisanna>
I can just type exit and it's gone
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] orivej closed pull request #32271: Enable parallel building for CMake based projects by default (staging...parallel-building) https://git.io/vbOm5
NixOS_GitHub has left #nixos []
<infinisil>
Lisanna: I don't get it
<Lisanna>
):
<infinisil>
nix-shell just puts out in a shell, it doesn't switch anything
<infinisil>
if you want to switch the profile, it *needs* to write that somewhere
<infinisil>
otherwise no switch has happened
erictapen has joined #nixos
<infinisil>
s/out/you
<Lisanna>
What are all of the bash environment variables that nix-env changes, other than PATH?
<Lisanna>
well, it doesn't *change* them, but it changes what symlinks in the PATH point to
<Lisanna>
so, instead, have $PATH in the nix-shell point to a profile in the /nix store rather than $HOME
<Lisanna>
so I can do nix-shell --env=development.nix and then I have a shell that has vscode, emacs, clang-format, or whatever
zzamboni has quit [(Quit: Leaving.)]
<Lisanna>
rather than specifying it imperatively with -p vscode emacs clang-format whatever, specify it declaratively with pkgs.buildEnv
ShalokShalom_ has quit [(Remote host closed the connection)]
derped has quit [(Quit: Lost terminal)]
<infinisil>
Lisanna: I'm pretty sure you can use buildEnv with nix-shell
<infinisil>
hmm, not sure how to give it a file though
zzamboni has joined #nixos
orivej has quit [(Ping timeout: 268 seconds)]
<Lisanna>
oh, if you pass the buildEnv as a "package" then it does the same thing as switching to it with nix-env?
FRidh has quit [(Ping timeout: 248 seconds)]
<Lisanna>
that's cool
<Lisanna>
To give it a file I might have to add it to the nix path or something with a channel
<infinisil>
it doesn't do any switching, just changes $PATH to have some programs available
<Lisanna>
I know
FRidh has joined #nixos
<Lisanna>
so I could do nix-shell -p mychannel.myDevEnvironment
<infinisil>
not sure
<LnL>
if you have an overlay/packageOverrides you can do -p myDevEnvironment yes
<Lisanna>
LnL: sure, that would also work
<Lisanna>
oh, yeah, I see why this works: an environment built by buildEnv has a ./bin directory and stuff, so it's like installing a single package, which also has a ./bin directory
<infinisil>
indeed
aarvar has quit [(Ping timeout: 248 seconds)]
ssmike has quit [(Ping timeout: 248 seconds)]
<LnL>
-p doesn't actually use buildEnv it just adds the arguments to the buildInputs of an empty drv
<aw>
I know, a delicate topic, but I wanted to ask for the state of NixOS and cross-compilation support?
<aw>
I don't even want to get a whole NixOS cross-compiled, but at least building a cross compiler using NixOS would be nice and somehow I don't understand how to do this…
<makefu>
aw: i think the current best bet is to get the hardware you want to cross-compile and use it as compilation. there were a lot of efforts for scattered around the landscape but there is no definite guide
<sphalerite>
aw: a cross compiler without a libc is easy, beyond that it depends largely on the target arch
<aw>
makefu: You mean getting $SOME_LINUX onto the Arch and building NixOS from there?
<sphalerite>
There's also some ongoing work by Sonarpulse, who's basically making cross-compilation awesome. But it's not done yet
<aw>
:)
<sphalerite>
Yes, if it's not too slow
<makefu>
sphalerite: yes there is this one "huge pr" target
alexteves has quit [(Quit: My Mac Mini has gone to sleep. ZZZzzz…)]
<sphalerite>
Probably the most annoying thing about cross builds is that even when they work, native builds and cross builds for the same target arch won't mix
<aw>
Yeah, speed is my actual problem… for this, even a stage 1 compiler would suffice: I »only« want to build a Linux kernel for aarch64 using bcmrpi3_defconfig which takes aeons on Rpi3.
<sphalerite>
Even the improved cross-compilation support won't fix that unfortunately
<aw>
Okay.
<sphalerite>
Hm if it's only the kernel then it could work, although I don't think you can get it to fit neatly into the nixos setup and will have to manage the kernel yourself
<sphalerite>
I don't know much about it though. The nice thing about aarch64 is that you do have support for it in the official binary cache
<aw>
That's actually okay. My sole problem is that the build host runs NixOS and it would be nice to have the cross-compiler built through the "way to do". The Rpi doesn't (yet) and it doesn't have to (just need something for external SPI flashing).
<makefu>
aw: have you checked out qemu for aarch64? maybe this is enough
<aw>
makefu: Ah, good point. Haven't done this yet. Maybe I'll give it a try. IIRC at least I got qemu-user/binfmt_misc to run an ArchLinux some time ago.
<laggy_wifi>
i need help
<laggy_wifi>
if i wanted to impliment a semi chroot would it make sence to redirect file/directory creation to ./ since i redirect file opening/fstating to ./ except force the redirection even if the path exists?
<makefu>
aw: yes i've read that as well but i've never tried it
FRidh has quit [(Ping timeout: 258 seconds)]
<laggy_wifi>
even if the path does not exist*
<sphalerite>
laggy_wifi: I don't understand the question. What do you mean by a "semi chroot"? Implementing in what sense?
<aw>
I had a Nokia N900 once and their official SDK actually used qemu-user/binfmt_misc and Xephyr and was working like a charme. This somehow strongly impressed me.
<sphalerite>
aw: that could work, but you may be disappointed by the improvement in speed
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vbCh5
<NixOS_GitHub>
nixpkgs/master 14df60d Joerg Thalheim: rr: limit platforms to x86_64...
NixOS_GitHub has left #nixos []
<sphalerite>
aw: I've built some stuff for my quad-core ARMv7 chromebook with qemu-user on my i7-7700HQ laptop. When using all the SMP available, the i7 took 2× *longer* to build stuff
<sphalerite>
So a per-core slowdown of 4×
<sphalerite>
or rather per-logical-core
FRidh has joined #nixos
<sphalerite>
The big laptop also has much faster IO and much more RAM
linarcx has joined #nixos
<aw>
Yeah. I think I'll stick with building a stage1 cross-CC manually for now.
<sphalerite>
Basically, don't underestimate the performance cost of qemu
phdoerfler has joined #nixos
<sphalerite>
error: undefined variable 'runCommand' at /nix/store/s9w0qmx6pkzvvqd74h4givh1yzz3l3jx-nixos-17.09.2182.7f6f0c49f0/nixos/pkgs/build-support/cc-wrapper/default.nix:24:56 oh dear, looks like I've hit an untested path…
<sphalerite>
Yeah the stage1 cross compiler might not be so easy after all, since there have been some apparently untested changes
Synthetica has joined #nixos
asuryawanshi has quit [(Ping timeout: 248 seconds)]
<infinisil>
Um, why does the hash of my derivation change on every rebuild?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vbCj5
<infinisil>
I'm only including 2 files (not the directory the result lands in)
<infinisil>
And these 2 files stay constant
<sphalerite>
infinisil: can we see the files?
<infinisil>
Oh
<berce>
I would like to update pandoc (nixpkgs at 1.19.2.4, upstream at 2.0.4), but I can't find how to do it. The nixpkgs manual has good information about haskell, but not about adding/updating haskell packages.
<Lisanna>
infinisil: and I'm guessing nix-hash doesn't include file attributes?
<infinisil>
Wait no I'm stupid, I am including the folder where the result lands -.-
<Lisanna>
haha
<berce>
sphalerite: is one of the untested changes you are talking about 'ed'?
alexteves has joined #nixos
<sphalerite>
berce: no, it's an expression that refers to runCommand without having it in its function pattern match…
<sphalerite>
easy to fix, but kind of concerning :p
vcunat has joined #nixos
<berce>
Then maybe you have confirmation ed is ok for cross compiling? See the discussion at the bottom of PR #32322
tomster has quit [(Ping timeout: 252 seconds)]
<sphalerite>
I have no idea, I'm just trying to build gccCrossStageStatic on regular 17.09
<berce>
Ok, thanks.
<infinisil>
There's no sine function in nix is there :P
<infinisil>
Oh, I could just import from derivation
<sphalerite>
infinisil: there aren't even non-integer numbers are there?
pie___ has left #nixos ["Leaving"]
<infinisil>
correct :P
akfp` has quit [(Read error: Connection reset by peer)]
akfp` has joined #nixos
<infinisil>
I need to do a calculation with sin and cos and build a derivation with the result
babyflakes has quit [(Quit: Connection closed for inactivity)]
<infinisil>
Currently I'm doing the calculation at build time and building all results in a single derivation, which works, but when I stop in the middle of it, it can't reuse previously built stuff
<clever>
infinisil: what about just having a second derivation that does the math?
Wharncliffe has joined #nixos
<clever>
infinisil: ive done some crazy things with latex and pdf stuff in nix, a dozen derivations (generated with a loop) to extract sections of a pdf file into xml, then another dozen to turn the xml into sqlite, and then another to merge it all into one ...
<sphalerite>
infinisil: what are you doing with this?
FRidh has quit [(Ping timeout: 248 seconds)]
<infinisil>
clever: Yeah I should be able to create a derivation that does the math, and import the result of that with nix and use this to create all the resulting derivation from that
<infinisil>
sphalerite: Something really cool: A derivation that takes a folder as input and builds you a binary that randomly changes the wallpaper to ones in the folder, and the main thing: There's a nice blurry transition when it gets changed
<sphalerite>
ooooooh. And the fading is precomputed?
<infinisil>
sphalerite: The derivation prerenders all frames of the blurry animation beforehand, which means sadly it's O(n^2) transformations (between each 2 of them)
<infinisil>
but still worth it
<sphalerite>
Idk sounds like something that could maybe done more nicely with gstreamer
<infinisil>
how so? I don't know gstreamer
<sphalerite>
aww, looks like you can't specify a window id for ximagesink using gst-launch
vidbina has joined #nixos
<infinisil>
sphalerite: You thinking of not precomputing it?
* sphalerite
is unsure whether to try implementing this with gstreamer or just let it be
<sphalerite>
gstreamer is pretty cool though, it has a pipeline sort of system with a simple type system
zzamboni has quit [(Quit: Leaving.)]
zzamboni has joined #nixos
<infinisil>
I did spend a bit of time to figure out how to make a smooth transition between 2 images with blur, using sin and cos
<sphalerite>
yeah. gstreamer should also have elements that can do hardware-accelerated alpha blending
<infinisil>
tbh my setup is preeety lame, it takes a lot of time to precompute
<sphalerite>
and whenever I want to record a screencast
ilja_kuklic has quit [(Remote host closed the connection)]
<das-g[m]>
Is it possible to configure NixOS so that it provides an Eclipse with witch I can build Java projects?
<das-g[m]>
`nix-shell -p eclipses.eclipse-platform --run 'eclipse'` does start the IDE, but it doesn't seem to have any builders configured, even when `programs.java.enable = true;`
ilja_kuklic has joined #nixos
<infinisil>
sphalerite: Well I'd prefer precomputing any day, I don't really have any battery life to spare :)
<sphalerite>
but space o.o
<infinisil>
hold on let me check the size of my 8x8 transition table, 30 steps each, 1440x900 png
<laggy_wifi>
lol
akfp` has quit [(Read error: Connection reset by peer)]
<sphalerite>
also decoding PNG frames is probably more expensive than hardware-accelerated alpha compositing x)
akfp` has joined #nixos
<infinisil>
well i could still optimize it, i can do pretty much anything with precomputing
<infinisil>
Um, 571MB...
<berce>
Reply to my own question: haskellPackages are in pkgs/development/haskell-modules/configuration-hackage2nix.yaml
<sphalerite>
Exactly. xD
townsend has quit [(Ping timeout: 260 seconds)]
<infinisil>
sphalerite: But, it's really nice: $out/transitions/$from/$to contains all images for transitioning from pic $from to $to
<pierron_>
shlevy: You can use a different version of a module, such as MySQL.
akfp` has quit [(Read error: Connection reset by peer)]
<sphalerite>
lol
<pierron_>
shlevy: You can remove the old one, and import the version you want instead.
akfp` has joined #nixos
<infinisil>
The script to change wallpapers is super simple because of that
<sphalerite>
If you're going to precompute it probably makes more sense to encode the transitions as videos, that shouldn't take as much space
<infinisil>
sphalerite: Won't that be slower to decode though?
<infinisil>
because it needs to decompress as wel
<infinisil>
hmm but maybe it's IO bound actually
BioSpider has quit [(Read error: Connection reset by peer)]
<sphalerite>
Yeah I wouldn't be surprised if it was IO bound. For my lockscreen, writing the PNG to a file rather than piping it to i3lock made it much slower
linarcx has quit [(Remote host closed the connection)]
<infinisil>
hmm..
<infinisil>
I guess a video would be better then
iyzsong has joined #nixos
<sphalerite>
or, just, y'know, not precomputing ;)
<infinisil>
Muh derivation though!
<infinisil>
I guess i should benchmark it
<sphalerite>
decoding 30 PNGs is significantly more expensive than decoding 2 and alpha-compositing 30 frames between them
<sphalerite>
I'd wager
<infinisil>
sphalerite: actually, the expensive part is the blurring
<sphalerite>
oh you're blurring, not just compositing?
<sphalerite>
What does that look like?
<infinisil>
it looks really nice and soft
<sphalerite>
That makes it sound even more like you should be doing it on the GPU
<sphalerite>
:p
<hyper_ch>
btw, can't I install grub on multiple devices through the configuration.nix?
simukis has joined #nixos
<clever>
hyper_ch: boot.loader.grub.devices accepts a list
<rycee>
das-g: I can't find your question. Mind repeating it?
<das-g[m]>
Is it possible to configure NixOS so that it provides an Eclipse with witch I can build Java projects?
<das-g[m]>
`nix-shell -p eclipses.eclipse-platform --run 'eclipse'` does start the IDE, but it doesn't seem to have any builders configured, even when `programs.java.enable = true;`
akfp` has quit [(Read error: Connection reset by peer)]
akfp` has joined #nixos
zzamboni has quit [(Quit: Leaving.)]
dywedir has joined #nixos
<das-g[m]>
(I only use Eclipse / JDT once a year or so and I'm still somewhat new to Nix & NixOS, so I'm a bit lost on what I even have to look for.)
<infinisil>
I was wondering about this too once, eclipse on nixos is just not the eclipse we know
<infinisil>
no idea why
<das-g[m]>
Maybe rycee can enlighten us? 🙂
zzamboni has joined #nixos
townsend has joined #nixos
ssmike has joined #nixos
<rycee>
Yeah, eclipse-platform is barebones so you need to install the jdt plugin . You'll want the eclipse-sdk package if you want Java compilation out-of-the-box.
<rycee>
The eclipse-platform package is mainly intended for use with eclipseWithPlugins.
<gchristensen>
Mic92: haha yeah I could. updated: https://github.com/grahamcofborg there is also evidently a way to have github show "bot" next to the name when it comments. finally, I could add a signature to its comments, like "-- your Nix build bot"
alexteves has quit [(Read error: Connection reset by peer)]
alexteve_ has joined #nixos
Lisanna has quit [(Ping timeout: 260 seconds)]
asuryawanshi has joined #nixos
akfp` has quit [(Read error: Connection reset by peer)]
akfp` has joined #nixos
akfp` has quit [(Read error: Connection reset by peer)]
akfp` has joined #nixos
akfp` has quit [(Read error: Connection reset by peer)]
asuryawanshi has quit [(Remote host closed the connection)]
akfp` has joined #nixos
asuryawanshi has joined #nixos
ssmike has quit [(Ping timeout: 252 seconds)]
ssmike has joined #nixos
orivej has joined #nixos
Neo-- has joined #nixos
<mbrock>
I'm confused about nix-shell as a shebang interpreter. Somehow it's not working on my very simple examples -- I'm just getting Nix parse errors from parsing the script as Nix code
<mbrock>
I don't really understand how multiline shebangs work, I assume it's like a fake shebang feature that's implemented by nix-shell itself (so the kernel only deals with the first line)
<mbrock>
weeird
<clever>
mbrock: thats my understanding as well
<samueldr>
afaik, it's only the first line that's a "real" shebang, nix-shell interprets the other lines
orivej has quit [(Ping timeout: 264 seconds)]
<samueldr>
it then does magic to send the file to the "-i" interpreter
akfp` has quit [(Read error: Connection reset by peer)]
<samueldr>
*some* stuff doesn't like the nix-shell shebangs (e.g. ruby needs #!ruby as a standalone line in-between otherwise it tries interpreting them too and fails)
akfp` has joined #nixos
<mbrock>
oh, because the whole file is still sent as input to the interpreter, I guess to avoid messing with source locations
<samueldr>
yes, and because anyway that's how a shebang works in any other ways
<joko>
mbrock: could you try without -p bash?
<samueldr>
could it be a default.nix in the projet dir that fails?
<mbrock>
anyway I'm moving my thing away from nix-shell shebang because I want to use "nix-shell --run" which doesn't run my .bashrc
<mbrock>
and I have a very unconfirmed hunch that the nix-shell with shebang was somehow intermittently crashing (?) when I ran the script in a loop
<mbrock>
aha, now I got an error when using nix-shell --run in a loop, after a while:
<mbrock>
Error in tempdir() using /run/user/1001/nix-shell.XXXXXX: Parent directory (/run/user/1001) does not exist at /nix/store/nqkha8l57hxpgzkcpdgxyxsgr389cy3z-nix-1.11.15/lib/perl5/site_perl/5.24.2/x86_64-linux-thread-multi/Nix/Utils.pm line 45.
Lisanna has joined #nixos
<mbrock>
"It also keeps things nice and organized. When a user logs out, and no active sessions remain, pam_systemd will wipe the /run/user/$uid directory out."
<mbrock>
interesting... I am running the loop in a tmux session on a server and then logging out
<hyper_ch>
clever: hmmm, there's no easy way to have /boot in a zfs dataset, right?
<clever>
hyper_ch: grub does support zfs, but it doesnt handle recovery well, and it cant deal with directories containing many files
<hyper_ch>
well, /boot usually doesn't have many files
<hyper_ch>
what do you mean, doesn't handle recovery well?
<clever>
but if /boot is just a directory on the same dataset as /nix, nix will just refer to the kernels in /nix/store/
<clever>
and then grub has to traverse /nix/store/
vandenoever has quit [(Quit: ䷴៚)]
vandenoever has joined #nixos
<clever>
and grub doesnt handle journal playback to repair the FS after an improper shutdown
<clever>
it will just blindly read it in whatever state it happens to be in
<hyper_ch>
nah, been pondering: tank/boot tank/encZFS/{Nixos,VMs,Media}
akfp` has quit [(Read error: Connection reset by peer)]
akfp` has joined #nixos
<clever>
that might work
<mbrock>
samueldr: btw in the nix-shell source code I see a hack involving `if ($interpreter =~ /ruby/)`, hehe
<sphalerite>
All laptop/desktop/server machines should just have like a 100MB flash memory or something that bootloaders can live in
<hyper_ch>
sphalerite: that's for efi
<gchristensen>
I think sphalerite means a separatee 100mb disk
<hyper_ch>
ah... nah, I know what you mean
<hyper_ch>
I tried with a usb3 stick a while back but it was very unreliable
<sphalerite>
Yeah
Wharncliffe has quit [(Quit: Lost terminal)]
<clever>
i have an OLD 64mb usb stick i use for /boot on my nas
<hyper_ch>
what I settled now on the server was getting a 1TB disk that just acts as /boot and then use my 4TBs in Mirror for ZFS
<clever>
good luck finding anything that small today :P
<sphalerite>
Lol 1TB for boot?
<hyper_ch>
sphalerite: couldn't find a lower internal hdd
<samueldr>
it belongs in a museum!
<duncan^>
clever: 2M CF cards are all over Taobao :l
<hyper_ch>
I'm just thinking about my notebook now... ordered now a m2 ssd so I can have permanant mirror on it
akfp` has quit [(Read error: Connection reset by peer)]
<hyper_ch>
but still grub and /boot is an issue IMHO
akfp` has joined #nixos
<clever>
duncan^: but then you need a CF adapter
<hyper_ch>
I'd love to have all that managed in one zfs pool
<sphalerite>
hyper_ch: o.O at Strathtech (which to be fair is a student-run thing that barely ever buys its own hardware) I don't think we have a single HD more than 500GB x)
<duncan^>
clever: or horrible old routers and cameras etc
<sphalerite>
I think the average size is probably on the order of 60GB
<sphalerite>
clever: but CF adapters are completely passive!
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] grahamc opened pull request #32410: treewide: checkMeta fixes for x86_64-linux (master...check-meta) https://git.io/vbWYv
NixOS_GitHub has left #nixos []
<sphalerite>
Well, CF to IDE
<hyper_ch>
well, I needed to resetup server rather quickly after it was stolen.... so I frist tried with usb 3 thumb drive but that had troubles... so I settled for another hdd and well, it's a 1TB
<sphalerite>
Not sure any recent hardware even still has IDE controllers?
<clever>
sphalerite: exactly
<clever>
sphalerite: so it would have to be usb
<sphalerite>
(Is the controller for IDE very different from a SATA one?)
<clever>
sphalerite: very
akfp` has quit [(Read error: Connection reset by peer)]
<sphalerite>
I don't really understand how all the protocols/standards interrelate
<clever>
sphalerite: IDE was basicaly just an 8 bit register, that writes to 8 pins
<hyper_ch>
ide cables... haven't seen them for some time
akfp` has joined #nixos
<sphalerite>
Is PATA the same thing as IDE?
<clever>
yeah
<hyper_ch>
grey, flat, wide cables
<hyper_ch>
sata is much nicer to handle :)
<hyper_ch>
but seperate /boot for zfs is still the recommended and least troublesome way, right?
<clever>
also, uefi needs a fat32 /boot
drakonis has joined #nixos
<clever>
more technically, the /boot must be supported by the uefi firmware
<clever>
apple added HFS+ support to theirs
<hyper_ch>
I'm still a bit confused bout /boot bios_boot u/efi fat32..... when what is needed ;) getting old here :)
<hyper_ch>
can't keep up with all the new hype stuff
<clever>
bios_boot is to get legacy booting on GPT
abcrawf has quit [(Remote host closed the connection)]
<clever>
UEFI booting requires that the bootloader be on a filesystem the bios supports
<clever>
but you could make /boot/efi fat32, and leave /boot itself on something more complex
<hyper_ch>
[14:00] <clever> UEFI booting requires that the bootloader be on a filesystem the bios supports --> but isn't UEFI a replacement for BIOS so that it doesn't actually make sense when you say a filesystem the "bios" supports?
<clever>
i still refer to the UEFI firmware as a bios
<hyper_ch>
ah ok
<hyper_ch>
could you add zfs to uefi?
<clever>
you would need to reflash the firmware in the motherboard
<hyper_ch>
wouldn't that be great?
<clever>
and be able to compile a replacement that can still boot the system
<hyper_ch>
I have no idea about any of those talks
<hyper_ch>
I'm just a normal end user
vcunat has quit [(Quit: Leaving.)]
<hiroshi>
hyper_ch: that makes sense because it is from openZFS developers but that doesn't mean you can try it or maybe implement it in nixOS =P
<infinisil>
s/can/can't ?
akfp` has quit [(Read error: Connection reset by peer)]
akfp` has joined #nixos
<hyper_ch>
hiroshi: I don't really understand what you're trying to tell me
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] rycee pushed 2 new commits to master: https://git.io/vbWGy
<NixOS_GitHub>
nixpkgs/master b7c0f85 Robert Helgesson: parcellite: use wrapGAppsHook...
<NixOS_GitHub>
nixpkgs/master 7908132 Robert Helgesson: parcellite: add which and xdotool as dependencies...
NixOS_GitHub has left #nixos []
<hiroshi>
hyper_ch: openZFS has modern features, and openZFS is moving faster in other projects like illumos or freeBSD. but if you have your nixOS kernel with zfs module you can try a new feature or at least you will know what it is coming tomorrow in openZFS world
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] rycee closed pull request #32364: Use wrapGAppsHook for parcellite also add dependencies (master...gwrap/parcellite) https://git.io/vbnvZ
NixOS_GitHub has left #nixos []
roberth has quit [(Ping timeout: 248 seconds)]
akfp` has quit [(Read error: Connection reset by peer)]
akfp` has joined #nixos
<hyper_ch>
I still don't follow... you say zfs in linux is more current than openzfs?
coot_ has joined #nixos
<hiroshi>
no I'm saying openZFS isn't current in linux boxes but openZFS new features will come to linux and you can test it if you want
<hyper_ch>
I have no idea... I just use it on nixos :)
<infinisil>
from github: "ZFS on Linux - the official OpenZFS implementation for Linux"
<hiroshi>
yes openZFS is the main project -> zol is the linux part of it
<aditya3098>
hi, i have a lightdm setup as my login manager, but for some reason, when i change my user's shell to zsh, either by chsh or declerative way, the username does now appear in lightdm and i need to enter both username and password. what is causing this?
<etu>
Yeah, makes sense
<hyper_ch>
it's already 14:45 and I haven't had a single cup of coffee today... time to fix that
b73_ has quit [(Quit: Connection closed for inactivity)]
asuryawanshi has quit [(Ping timeout: 240 seconds)]
<__Sander__>
gchristensen: you mean that we want more stories describing real usage scenarios?
<gchristensen>
literally yes
<gchristensen>
but also: remote building is hard. we should make it not hard
<gchristensen>
focus on usability, write little posts about how to do stuff
akfp` has quit [(Read error: Connection reset by peer)]
akfp` has joined #nixos
<etu>
gchristensen: So you say that you need more bloggers writing good articles about making things with nix?
<gchristensen>
writing good docs is great, but you can't share a link to docs around and say "hey, maybe read this little thing and it might be cool".
akfp` has quit [(Read error: Connection reset by peer)]
<gchristensen>
etu: yeah I guess so!
<gchristensen>
the pinterest article was awesome, how can we get more of those
akfp` has joined #nixos
<ryantrinkle>
gchristensen: not to go on too much of a tangent, the caching situation is still a bit hairy, IMO
<ryantrinkle>
a lot of the edge cases are pretty much impossible for beginners to deal with
<gchristensen>
what caching thing? but also: who cares?
stranger__ has quit [(Quit: Connection closed for inactivity)]
<gchristensen>
that shouldn't stop us from singing the praises
<ryantrinkle>
oh, agreed, completely
<etu>
ryantrinkle: The caching thing doesn't probably affect beginners since they don't have to deal with it.
<ryantrinkle>
just in the same vein as "remote building is hard"
<__Sander__>
gchristensen: I have some of these articles on my blog as well
<__Sander__>
but
<__Sander__>
some of them are sort of "forgotten" because I wrote them a long time ago
<ryantrinkle>
etu: if you're not on the internet, or if cloudfront starts serving you 500s, while you're trying to build something or nixos-rebuild switch
<ryantrinkle>
you have to really know what you're doing to get through it
<gchristensen>
I've literally never seen that error
akfp` has quit [(Read error: Connection reset by peer)]
<ryantrinkle>
gchristensen: you've never seen a 500 from cloudfront?
<etu>
ryantrinkle: Not really? You just have to wait longer because it has to compile.
<gchristensen>
not with nix
akfp` has joined #nixos
<ryantrinkle>
cache.nixos.org
<ryantrinkle>
huh
<__Sander__>
for example, I also wrote about how to package basic stuff, how to package binary-only software
<__Sander__>
multi-user installations, the nix user environments etc.
<gchristensen>
sphalerite: yes, it would be easier to buy the sticker, but then it doesn't help the community. I'm hoping that helping the community is the stick, and the stickers are the carrot :P
akfp` has quit [(Read error: Connection reset by peer)]
akfp` has joined #nixos
<sphalerite>
uh, how is helping the community a threat?
<gchristensen>
I dunno, the analogy needed a stick somewhere
<etu>
Most kids nowadays use markdown, I never liked markdown. Maybe I can transpile org-mode to markdown or something :)
<sphalerite>
the stick in a carrot and stick approach is the same as in "speak softly and carry a big stick" isn't it?
<sphalerite>
etu: pandoc can do everything. Hakyll uses pandoc I think. Use hakyll :D
<gchristensen>
well, punishment + reward yeah. it doesn't apply but pretend it worked
<mbrock>
you can just generate a HTML blog directly from org-mode
<clever>
sphalerite: have you seen hatex?
<etu>
I will solve this some year. Maybe next.
<sphalerite>
gchristensen: helping the community is a carrot too. So just more carrots!
<gchristensen>
ok the carrot of helping the community and the carrot of getting stickers and t-shirts, and no stick I guess. but anyway, I'm serious, I'll even pay international shipping rates to send people things who do this.
<sphalerite>
:D ALL the carrots!
<sphalerite>
🥕
<infinisil>
whoa that carrot is colorful, my font setup isn't as bad as i thought!
<sphalerite>
clever: I have not
* sphalerite
looks up
vandenoever has quit [(Ping timeout: 240 seconds)]
* gchristensen
hopes the initiative doesn't die in an elaborate discussion of carrots, sticks, emoji system configuration, and discussions on the best way to convert text to other types of text
makefu has quit [(Read error: Connection reset by peer)]
<etu>
infinisil: I have a square carrot that is gray
<mbrock>
our organization published a Medium post praising Nix recently, and I hope to publish another one soon (about using multisignature approvals of Nixpkgs commits on a public blockchain as a way to do a "release" of a pinned set of interdependent programs)
makefu has joined #nixos
<clever>
sphalerite: line 39 is a list of tuples, of string, and function from row -> string, and line 46 will map over that list of tuples to make each row in a latex table
akfp` has quit [(Read error: Connection reset by peer)]
<gchristensen>
mbrock: link?
<clever>
sphalerite: and line 21 will map makeRow over every row in a list
akfp` has joined #nixos
<mbrock>
we really want to promote Nix in the Ethereum community
<gchristensen>
srhb, no worries :) the dev channel is less about specific packages and more about ... larger topics. so perhaps "all of gnome" is relevant but "gcalc" not so much.
<srhb>
gchristensen: Understood, thanks. :)
uptime has joined #nixos
<gchristensen>
you're definitely welcome in there
Guest34177 is now known as andrewrk
hfuller_ is now known as mog
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] tristan0x opened pull request #32414: Enh/boost with numpy extension (master...enh/boost-with-numpy-extension) https://git.io/vbWuJ
NixOS_GitHub has left #nixos []
reinzelmann has quit [(Ping timeout: 246 seconds)]
akfp` has quit [(Read error: Connection reset by peer)]
akfp` has quit [(Read error: Connection reset by peer)]
akfp` has joined #nixos
jensens has quit [(Ping timeout: 268 seconds)]
drakonis has quit [(Ping timeout: 240 seconds)]
a6a3uh has joined #nixos
zzamboni has quit [(Remote host closed the connection)]
zzamboni has joined #nixos
<joepie91>
[15:55] <gchristensen> it takes minutes to load and any memory issues at smaller teams are multiplied by 14,000
<joepie91>
what did this refer to? I think it got lost in the netsplit
<gchristensen>
I'm in a Slack "team" with 14,000 members
zzamboni has quit [(Ping timeout: 252 seconds)]
zzamboni has joined #nixos
<ToxicFrog>
My slack usage got a lot less painful (and less memory-hungry) when I switched to weeslack, FWIW
<joepie91>
ahh
vandenoever has joined #nixos
vandenoever has quit [(Changing host)]
vandenoever has joined #nixos
darlan has joined #nixos
darlan has quit [(Client Quit)]
zzamboni has quit [(Remote host closed the connection)]
akfp` has quit [(Read error: Connection reset by peer)]
zzamboni has joined #nixos
akfp` has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] clefru opened pull request #32415: k2pdfopt: Patch openjpeg version into mupdf as in #31852. (master...k2pdf-master) https://git.io/vbWaA
NixOS_GitHub has left #nixos []
erictapen has quit [(Ping timeout: 260 seconds)]
zzamboni has quit [(Ping timeout: 246 seconds)]
tmaekawa has joined #nixos
tmaekawa has quit [(Client Quit)]
zzamboni has joined #nixos
ssmike has quit [(Remote host closed the connection)]
akfp` has quit [(Read error: Connection reset by peer)]
akfp` has joined #nixos
Tucky has quit [(Ping timeout: 268 seconds)]
ssmike has quit [(Remote host closed the connection)]
ssmike has joined #nixos
zzamboni has quit [(Ping timeout: 240 seconds)]
zzamboni has joined #nixos
vandenoever has quit [(Ping timeout: 276 seconds)]
<stphrolland>
i love nix-shell -p
aloiscochard has quit [(Quit: Connection closed for inactivity)]
<gchristensen>
me too, stphrolland
<gchristensen>
it is the best thing
akfp` has quit [(Read error: Connection reset by peer)]
orivej has joined #nixos
akfp` has joined #nixos
<srhb>
mmmh, this workaround seems... saneish
simukis has quit [(Ping timeout: 248 seconds)]
<srhb>
OK, no, not really, but: objcopy some random data (uuid?) to an unused section of the executable
<srhb>
That should prevent hardlinking, right?
<srhb>
(Please suppress your gag reflexes)
<gchristensen>
what is going on over there srhb
zzamboni has quit [(Ping timeout: 248 seconds)]
<srhb>
gchristensen: I know, right... :P
<srhb>
gchristensen: I have a piece of proprietary software that refuses to execute if it's hard-linked.
<gchristensen>
....!!!! how does it even know?
<srhb>
It fstats itself presumably
<srhb>
Checking the link counter
zzamboni has joined #nixos
<gchristensen>
how does it become hardlinked?
<srhb>
nix store auto optimisation
<gchristensen>
jeeze
<srhb>
I'd rather not disable that globally so now I'm on a crusade to make it blatantly unique and impure.
<srhb>
I feel very dirty. :P
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<srhb>
I could do something slightly less bizarre... Copy the binary out of the nix store at runtime (the systemd unit) to a new file..
<srhb>
But ugh.
<joepie91>
srhb: I can only speculate about the reasons it does that check in the first place...
<srhb>
joepie91: I can't figure it out either.
johann__ has quit [(Quit: Leaving.)]
<srhb>
joepie91: I'm guessing someone waved their hands and mumbled "security!" and it slipped past every sane person in the room.
<adisbladis>
srhb: I'm intrigued :D What is this software?
akfp` has quit [(Read error: Connection reset by peer)]
<srhb>
adisbladis: EMC Networker, a backup software thingy.
akfp` has joined #nixos
<joepie91>
srhb: your speculations are a lot more optimistic than mine :)
<adisbladis>
srhb: Ugh -.- EMC
<srhb>
adisbladis: At least their open source division is doing sane things these days.
<srhb>
Ugh. problem for tomorrow. 'night ;)
Neo-- has quit [(Ping timeout: 250 seconds)]
akfp` has quit [(Read error: Connection reset by peer)]
zzamboni has quit [(Ping timeout: 240 seconds)]
akfp` has joined #nixos
hotfuzz has joined #nixos
hotfuzz_ has quit [(Ping timeout: 250 seconds)]
<gchristensen>
srhb: yeah you could probably do something silly in the elf
<gchristensen>
srhb: like add a bogus rpath entry to a uuid
<gchristensen>
"/bogus/emc/is/extremely/<uuid>"
ryantrinkle has quit [(Ping timeout: 250 seconds)]
<adisbladis>
:D
tomster has joined #nixos
erictapen has joined #nixos
<adisbladis>
Isorkin: I'll try to have a look a bit later tonight
<tomster>
hey, i'm trying to run chefdk inside a nix-shell and i'm failing at using "chef exec" - it complains """/nix/store/myipi4dc9wnfsw8c18sxgwxlsxl93gz1-chefdk-2.4.17/lib/ruby/gems/2.4.0/gems/chef-dk-2.4.17/lib/chef-dk/helpers.rb:139:in `omnibus_expand_path': Can not find omnibus installation directory for Chef. (ChefDK::OmnibusInstallNotFound)"""
akfp` has quit [(Read error: Connection reset by peer)]
akfp` has joined #nixos
<tomster>
anyone have this issue or know how i can work around this?
<Isorkin>
adisbladis: thanks
<tomster>
i tried setting the CHEFDK_HOME variable to what `which chef` shows me inside the shell but that didn't help either
<tomster>
it's really frustrating how much software relies on hard-coded conventions for paths etc.
ssmike has quit [(Ping timeout: 255 seconds)]
ertes-w is now known as supercynic
erasmas has joined #nixos
<tomster>
it's almost like "in theory nixos is better but in practice i run into trouble every time i try to solve a real-world problem at work... :-(
<hiroshi>
tomster: you can say the same for redhat or suse enterprise
<tomster>
hiroshi: yeah, the whole world has probably converged onto ubuntu/debian...
ipj[m] has quit [(Ping timeout: 240 seconds)]
<tomster>
although, TBH i had fewer of such problems when running FreeBSD on my development machine... i think it's the paradigm shift that nixos introduces and less about subtle differences between distros
<tomster>
oh, but my PR for upgrading chefdk has been merged :-D
<hiroshi>
haha
<tomster>
now all i need is to be able to run chef exec inside my nix-shell...
akfp` has quit [(Read error: Connection reset by peer)]
<hiroshi>
cool
akfp` has joined #nixos
<tomster>
but how? chef exec complains that it cannot find it's chef installation path
<tomster>
and googling for "chef exec" nixos delivers 5(!) results
<tomster>
all unrelated...
peacememories has joined #nixos
vandenoever has joined #nixos
ryantrinkle has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vbWPO
<NixOS_GitHub>
nixpkgs/master bbb5cee Clemens Fruhwirth: k2pdfopt: Patch openjpeg version into mupdf as in #31852.
akfp` has quit [(Read error: Connection reset by peer)]
akfp` has joined #nixos
danbst1 has quit [(Quit: WeeChat 1.7)]
civodul has quit [(Remote host closed the connection)]
<gchristensen>
they make it because managing all their gem dependencies is a nightmare
<catern>
does putting something in propagatedBuildInputs make it appear in the store dependencies of a derivation even if its hash doesn't show up in the realized derivation?
<infinisil>
tbh nix(pkgs) is quiet bad a managing (version) dependencies, aka it doesn't do it
<infinisil>
hyper_ch: dependency chain a <- b <- c <- d. A is a propagatedBuildInput of b, b is a propagatedBuildInput of c. d doesn't have any dependency on a
<infinisil>
I think
<hyper_ch>
don't know
<infinisil>
I'm gonna test this now
<hyper_ch>
you can do it! We believe in you! You're the best!
<infinisil>
\o/
martinklepsch has quit [(Client Quit)]
<hyper_ch>
I hope that was enough motivation
Itkovian has quit [(Read error: Connection reset by peer)]
martinklepsch has joined #nixos
orivej has quit [(Ping timeout: 240 seconds)]
goibhniu has quit [(Ping timeout: 260 seconds)]
<infinisil>
I only have 5 minutes left :O
szicari has quit [(Read error: Connection reset by peer)]
ssmike has joined #nixos
szicari_ has joined #nixos
<hyper_ch>
good that time is relative
orivej has joined #nixos
dieggsy has joined #nixos
<infinisil>
Um, am confused
<hyper_ch>
just ignore it
<LnL>
so... I think my nix db is corrupt, can I rebuild that somehow?
akfp` has quit [(Read error: Connection reset by peer)]
<hyper_ch>
yesk
akfp` has joined #nixos
akfp` has quit [(Read error: Connection reset by peer)]
akfp` has joined #nixos
ssmike has quit [(Ping timeout: 240 seconds)]
akfp` has quit [(Read error: Connection reset by peer)]
akfp` has joined #nixos
asuryawanshi has joined #nixos
akfp` has quit [(Read error: Connection reset by peer)]
<hyper_ch>
on a bike, when it's dark outside... and streets are slippy due to cold?
martinklepsch has joined #nixos
simukis has joined #nixos
teej has joined #nixos
aloiscochard has joined #nixos
<jtojnar>
wait, when I remove gobjectIntrospection from atk’s propagatedBuildInputs, gnome-bluetooth no longer builds
<jtojnar>
but it does not depend on atk directly
<jtojnar>
or are there different rules for setup hooks
asuryawanshi has quit [(Remote host closed the connection)]
asuryawanshi has joined #nixos
akfp` has quit [(Read error: Connection reset by peer)]
akfp` has joined #nixos
akfp` has quit [(Read error: Connection reset by peer)]
akfp` has joined #nixos
ipj[m] has joined #nixos
akfp` has quit [(Read error: Connection reset by peer)]
akfp` has joined #nixos
sigmundv_ has quit [(Ping timeout: 248 seconds)]
ipj[m] has quit [(Remote host closed the connection)]
<toogley>
what is again the way to install some package via nix-env when i cloned the nixpkgs repo into ~/dir/ and have changed one nix file of a package there?
pikajude has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
<toogley>
my irc client unfortunately has lost that (someone here said that some time ago)
pikajude has joined #nixos
Bane^ has quit [(Ping timeout: 260 seconds)]
Bane^ has joined #nixos
Tobba has joined #nixos
Sonarpulse has quit [(Ping timeout: 255 seconds)]
akfp` has quit [(Read error: Connection reset by peer)]
ixxie has joined #nixos
akfp` has joined #nixos
ma27 has joined #nixos
asuryawanshi has quit [(Remote host closed the connection)]
asuryawanshi has joined #nixos
akfp` has quit [(Read error: Connection reset by peer)]
<toogley>
jtojnar: hm. i get "error: cannot auto-call a function that has an argument without a default value (‘stdenv’)". its neovim dir, directly from current master
<jtojnar>
toogley: `nix-env -iA neovim -f ~/Projects/nixpkgs` works fine for me
<toogley>
jtojnar: hm.. that's odd
zzamboni has joined #nixos
orivej has quit [(Ping timeout: 255 seconds)]
zzamboni has quit [(Ping timeout: 264 seconds)]
<toogley>
jtojnar: do you have any idea how i could find out what's wrong in my setup?
<toogley>
ah
<toogley>
just found it, i had the wrong directory, ~/nixpkgs/pkgs/applications/editor/neovim instead of ~/nixpkgs
ipj[m] has joined #nixos
sigmundv_ has joined #nixos
magnetophon has quit [(Remote host closed the connection)]
magnetophon has joined #nixos
ixxie has quit [(Ping timeout: 255 seconds)]
supercynic is now known as ertes-w
rogue_koder has quit [(Remote host closed the connection)]
bennofs has joined #nixos
ssmike has joined #nixos
rogue_koder has joined #nixos
aarvar has joined #nixos
akfp` has quit [(Read error: Connection reset by peer)]
akfp` has joined #nixos
<mbrock>
hmmmm, I am very interested in making a bootable NixOS USB stick with some preinstalled packages
<mbrock>
this should be easy...
ssmike has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] shlevy pushed 1 new commit to master: https://git.io/vbWx2
<NixOS_GitHub>
nixpkgs/master 0235f12 Shea Levy: nixUnstable: Bump to pre5788_e3013543 for fetchGit bug fix
NixOS_GitHub has left #nixos []
Neo-- has joined #nixos
Turion has joined #nixos
ris has joined #nixos
akfp` has quit [(Read error: Connection reset by peer)]
<Turion>
But I can't figure out what the file is where it encounters an EOF
<Turion>
the .nix files mentioned there seem all fine to me
a6a3uh has quit [(Quit: Bye)]
alexteve_ has quit [(Quit: My Mac Mini has gone to sleep. ZZZzzz…)]
Bane^ has joined #nixos
<tilpner>
It doesn't mention any. Did you try more -v? If that doesn't help... you could strace-ing
Ross has quit [(Ping timeout: 250 seconds)]
Ross has joined #nixos
<Turion>
tilpner: Ah good :) now with an even bigger number of -v's I'm getting this:
<Turion>
| | building of ‘/nix/store/5yibajzl8md255h5chilc4lanwwlfch2-user-environment.drv’: read 37 bytes
<Turion>
error: unexpected EOF reading a line
<Turion>
| | waiting for children
<Turion>
| | building of ‘/nix/store/5yibajzl8md255h5chilc4lanwwlfch2-user-environment.drv’: got EOF
<tilpner>
Does that .drv look broken?
<catern>
here is a Python question: if I limit myself to just Python code, is there a way to build a portable-outside-of-Nix executable that contains some Python and all its dependencies?
<catern>
assume I have a Python interpreter externally
<mojjo>
hi! which code-formatting and linting tools do we have for the nix language.. especially for an emacs environment? I tried `nix-format`, which uses nixfmt.. it does not seem to be very mature.. it hangs etc... what are you using?
Sonarpulse has joined #nixos
dieggsy has quit [(Remote host closed the connection)]
<gchristensen>
is it safe to forcibly chmod some files in /nix/store inside a nixos test environment's, so I can edit them in place?
martinklepsch has joined #nixos
martinklepsch has quit [(Client Quit)]
<fiveht>
hey. which is the way you people use ctags in a nix-shell when having to deal with #includes of headers installed in the given nix-shell environment? To put it differently, where is the /usr/include equivalent of nix-shells? Thanks.
martinklepsch has joined #nixos
<fiveht>
gchristensen: why would you want to do that?
mojjo has quit [(Remote host closed the connection)]
<makefu>
gchristensen: no, i've fucked up my store consistency with that once already
<aminechikhaoui>
gchristensen: we have a nice motd in our servers that sums up what you're trying to do "Changing /nix/store paths will result in instant death!" :D
<fiveht>
aminechikhaoui: lol
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] roberth opened pull request #32422: pkgs.nixosEvaluate function (master...nixos-evaluate) https://git.io/vblkE
NixOS_GitHub has left #nixos []
stphrolland has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] shlevy pushed 1 new commit to master: https://git.io/vblIT
<NixOS_GitHub>
nixpkgs/master 42519a0 Shea Levy: callCabal2nix: Take advantage of new hpack support.
NixOS_GitHub has left #nixos []
<stphrolland>
does any uses nodejs/npm together with nix-shell ? when I run nix-shell -p nodejs-6_x then npm install grunt , grunt is not available on the command line, and which cannot find it. where does npm install things when it is run inside nix-shell ?
<toogley>
hm. after downloading nixpkgs github repo to ~/src/nixpkgs and changing neovim's version to 0.2.2, i get an successfull build (although i haven't changed the fetchfromgithub hash!!), saying neovim 0.2.2 was installed. however, when i run nvim -v, it outputs v0.2.1 - why is that the case? i'd expected a build failure due to the not-changed hash.
<toogley>
(i use nix-env -f ~/src/nixpkgs -iA neovim)
coot_ has quit [(Quit: coot_)]
akfp` has quit [(Read error: Connection reset by peer)]
akfp` has joined #nixos
stanibanani has joined #nixos
<stphrolland>
i found it. it's totally related to npm. it installs things in ./node_modules/.bin. so it's perfectly sandboxed. phew :-)
mizu_no__ has joined #nixos
boxofrox has quit [(Ping timeout: 248 seconds)]
<samueldr>
that's the default behaviour for npm when not using -g
<markus1189>
what is the difference between nix-prefetch-url and manual download + nix-hash?
<markus1189>
the two give different sha256 hashes
<catern>
argh argh argh
<catern>
can I build a Python egg or wheel or something using Nix?
coot_ has joined #nixos
<stphrolland>
samueldr: long time I have not used nodejs. and how do you call the module installed simply if they are not available on the command line ? npm run ?
boxofrox has joined #nixos
<samueldr>
(that I don't know)
<samueldr>
I've used node_modules/.bin/[...] previously
<samueldr>
I have a "shim" bash script that I've used to copy the binstubs behaviour of bundler (ruby)
<samueldr>
but I've never used node_modules and npm "properly"
<catern>
more specifically a fat wheel
drakonis_ has quit [(Read error: Connection reset by peer)]
<LnL>
the python infrastructure uses wheels internally I think
<catern>
I mean, what I really want is to
<catern>
use the existing Python packages in Nix, to build a wheel, containing all the (pure-Python) dependencies for my python package
<catern>
I can get a Python interpreter from elsewhere :)
magnetophon has quit [(Remote host closed the connection)]
regnat[m] has joined #nixos
magnetophon has joined #nixos
Dr8128 has joined #nixos
ma27 has quit [(Ping timeout: 255 seconds)]
spacekitteh[m] has joined #nixos
dieggsy has joined #nixos
<LnL>
not sure I'm following
<catern>
It's a Python-specific, Nix-independent question I think
<catern>
I've got a bunch of Python modules on my path, I would like to indicate some subset of them to package into some fat archive, that can be copied to a sadly non-Nix'd host and run some Python module
<LnL>
you can create a tarball of a nix closure
oida has quit [(Ping timeout: 264 seconds)]
ma27 has joined #nixos
oida has joined #nixos
akfp` has quit [(Read error: Connection reset by peer)]
<catern>
well yes I know that
<catern>
but I can't write to /nix
akfp` has joined #nixos
<catern>
I want something relocatable
<catern>
which might be possible, with pure-Python, which is what I currently have
mizu_no__ has quit [(Quit: Computer has gone to sleep.)]
kreetx has joined #nixos
<LnL>
well, you can't just change the paths that would break things
<gchristensen>
makefu: like inside a NixOS qemu VM test?
<makefu>
gchristensen: late response to one of my questions?
<gchristensen>
makefu: "gchristensen: no, i've fucked up my store consistency with that once already"
<makefu>
ah, well i've fucked up my working computer :D it was very early into my nixos experience
roberth has quit [(Ping timeout: 248 seconds)]
<gchristensen>
ah
akfp` has quit [(Read error: Connection reset by peer)]
<gchristensen>
I really want to try some things but without tearing down and setting up the entire VM
<gchristensen>
so I'm bargaining
georges-duperon has quit [(Ping timeout: 264 seconds)]
akfp` has joined #nixos
<makefu>
better create a vm for testing ;)
dpc has joined #nixos
rihardsk[m] has joined #nixos
jyp[m] has joined #nixos
<makefu>
or just spin up one on aws
<gchristensen>
I'm _in_ the VM
<LnL>
I messed up my nix db earlier, not in a vm :p
<makefu>
ahhh, create a snapshot, play around, restore
<gchristensen>
it is a NixOS test
<gchristensen>
I don't think I'm explaining myself properly
akfp` has quit [(Read error: Connection reset by peer)]
<gchristensen>
does `nix-build ./nixos/tests/nginx.nix` share the nix store from the host?
akfp` has joined #nixos
<makefu>
so for my experience it is not a good idea to change the nix store if you want to use `nix` afterwards
<makefu>
if you do not care about this then it should work just fine
<LnL>
gchristensen: yes, but I'm pretty sure it's readonly by default
<ekleog>
gchristensen: iirc, nixos tests use a file named like qemu-img.nix or something similar, which is the same mechanism as nixos-rebuild build-vm, which shares the store from the host with an overlayfs to allow modifications to it
nix-gsc-io`bot has joined #nixos
<gchristensen>
yes, and depending on if `nix-build ./nixos/tests/nginx.nix` shares the nix store with the host will answer if I care about using `nix` afterward
asuryawanshi has quit [(Ping timeout: 250 seconds)]
hiratara has joined #nixos
phdoerfler has quit [(Quit: Leaving.)]
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
simukis has quit [(Ping timeout: 240 seconds)]
<stphrolland>
samueldr: long time I have not used nodejs. and how do you call the module installed simply if they are not available on the command line ? npm run ?quit
<stphrolland>
sorry, not intended to send again this sentence
<gchristensen>
Using nix to distribute RhodeCode was the best decision we made for how we distribute our software. It removed all problems we had with python packaging just using virtualenv. I think the key benefit is that our installation survives system upgrades while we had almost 40% failure rate in this case with previous virtualenv based installer.
hiratara has quit [(Remote host closed the connection)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] orivej pushed 30 new commits to staging: https://git.io/vbllz
<NixOS_GitHub>
nixpkgs/staging 1c99a90 Jan Tojnar: gnome3.totem-pl-parser: update hash
<NixOS_GitHub>
nixpkgs/staging 8255407 Jan Tojnar: gnome3.tracker: 2.0.1 → 2.0.2
<NixOS_GitHub>
nixpkgs/staging 952e4db Jan Tojnar: gnome3.gedit: 3.22.0 → 3.22.1
<marcinkuzminski>
gchristensen, yes it was me (maqio)
<samae>
domenkozar: what can you do after "vagrant ssh"? cabal2nix won't even run in there because it cannot find cabal in PATH (from README of stack2nix on github)
<phdoerfler>
Hi! I too have run into this issue: https://github.com/NixOS/nixpkgs/issues/31738 and would like to know if I can help fixing it. I've never made a derivation in nixos, so I'd need some help with that.
<phdoerfler>
can someone point me to the nix file that defines how logcheck is built?
<gchristensen>
marcinkuzminski: OH!
<gchristensen>
marcinkuzminski: do you highlight on rhodecode? :)
<marcinkuzminski>
gchristensen: i think nix got a bit more popular now so maybe a good time to re-evaluate and write something new on that topic.
Turion has quit [(Quit: Leaving.)]
<gchristensen>
marcinkuzminski: please do ... :)
<gchristensen>
I'd love a regular series of posts from companies to help show commercial viability
phdoerfler has quit [(Ping timeout: 260 seconds)]
phdoerfler has joined #nixos
baconicsynergy[m has joined #nixos
<gchristensen>
marcinkuzminski: I can send your whole team stickers if y'all'd like :)
<marcinkuzminski>
gchristensen, thanks, however almost all our computers are already covered with nix stickers ! :D we did few nix related meetups etc in our Berlin office
<gchristensen>
nice
ThatDocsLady has quit [(Quit: Leaving)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nix] grahamc opened pull request #1716: Build 1.11 on aarch64-linux (1.11-maintenance...build-1.11-on-aarch) https://git.io/vbl49
NixOS_GitHub has left #nixos []
nallar has joined #nixos
mizu_no_oto has joined #nixos
Ross has quit [(Ping timeout: 268 seconds)]
nallar is now known as Ross
johnw has joined #nixos
georges-duperon has joined #nixos
mizu_no_oto has quit [(Client Quit)]
Wharncliffe has joined #nixos
dan_b has joined #nixos
Ivanych has quit [(Ping timeout: 260 seconds)]
cement has quit [(Ping timeout: 268 seconds)]
stanibanani has quit [(Ping timeout: 246 seconds)]
Synthetica has quit [(Quit: Connection closed for inactivity)]
infinisil has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
dan_b has quit [(Ping timeout: 248 seconds)]
infinisil has joined #nixos
<marcinkuzminski>
catern, you mean conflicts ?
<marcinkuzminski>
we don't know if of them started using nix, but our nix store is under non-standard path so imho having another nix running would be possible
<catern>
marcinkuzminski: yeah, I meant conflicts. but if your Nix store isn't under /nix, then that's not an issue
<marcinkuzminski>
catern, no problems, for sure i just remember now i use regular nix on my computer, and also have things installed via our installer
rogue_koder has quit [(Ping timeout: 240 seconds)]
<linarcx>
Hi everyone. How to reduce download size for upgrade. Every time, I download about 1.5 GB. How reduce it?
<linarcx>
Another question : is there any delta repo like in arch or fedora for nixos?