<davidak>
i think i have it. it should be nixos-rebuild switch -I ~ not -I ~/nixpkgs/
danharaj has joined #nixos
<davidak>
so much wasted time :/
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] davidak opened pull request #25603: [WIP] linux-testing-bcachefs: init at 161a6ba (master...bcachefs) https://git.io/v9rqM
NixOS_GitHub has left #nixos []
justan0theruser has joined #nixos
zeus_ has quit [(Remote host closed the connection)]
zeus_ has joined #nixos
justanotheruser has quit [(Ping timeout: 258 seconds)]
zeus_ has quit [(Ping timeout: 246 seconds)]
filterfish has quit [(Read error: No route to host)]
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
filterfish has joined #nixos
ryanartecona has joined #nixos
<hodapp>
blargh, I wish I could find an example of how to patch up things in m4
<hodapp>
I am still stuck at, "Please add the files codeset.m4 gettext.m4 glibc21.m4 iconv.m4 isc-posix.m4 lcmessage.m4 progtest.m4 from the /nix/store/v515qy0wmsmc4p4k3v5f5kq4y3icnm27-glib-2.52.1/share/aclocal directory to your autoconf macro directory or directly to your aclocal.m4 file."
<hodapp>
while those files are in gettext, not glib, but adding AC_CONFIG_MACRO_DIR([${gettext}/share/aclocal]) to aclocal.m4 does nothing
<gchristensen>
hodapp: did you add pkgconfig?
<hodapp>
yes. this problem occurs when I try to run "glib-gettextize --copy --force" after autoreconfPhase, as its autogen.sh has that as a final step
<hodapp>
wait a minute... it's telling me that's an error, but it's still generating the po/Makefile.in.in that was previously halting configurePhase
<clever>
ive found that m4 spits out errors when pkg-config is missing, yet still makes a semi-usable configuration script
ryantrinkle has quit [(Ping timeout: 260 seconds)]
lambdamu_ has joined #nixos
<hodapp>
pkg-config is already present; I added it when something else complained
<hodapp>
the actual failing error now is something with png, probably because this code is from 2005
<clever>
yeah, just thinking m4 can have other weird bugs
<hodapp>
ah, okay
lambdamu has quit [(Ping timeout: 240 seconds)]
mbrgm has quit [(Ping timeout: 240 seconds)]
mbrgm has joined #nixos
<hodapp>
bah. now it needs older imagemagick.
Wizek has quit [(Ping timeout: 260 seconds)]
<Unode>
is there any command that I can run that triggers a full rebuild (from source) of all packages in nix's store?
<gchristensen>
hmm probably not Unode, but you could easily change nixpkgs in a way which will rebuild almost everything.
<Unode>
I had some strange store corruption and now some packages are behaving erratically but nix-store --verify-contents doesn't find anything in particular
<gchristensen>
Unode: why, though?
LnL has quit [(Quit: exit 1)]
derjohn_mob has quit [(Ping timeout: 255 seconds)]
mkoenig has joined #nixos
<Unode>
gchristensen: this is a store running from an NFS share. I ran a garbage collect and I think it collected more stuff than it should. I then tried running nix-store --repair and one glibc has issues. It was rebuilt but it aborted because it couldn't remove the 'glibc-old' folder. There was a hidden .nfs file in there. Probably due to some glibc library still being open/in-use.
<gchristensen>
O.O
<clever>
Unode: i had some very nasty surprises when i tried to run a 32bit os on a 64bit nfs server
<gchristensen>
you need clever ::P
<Unode>
now after all this, any command that makes use of the /etc/passwd file reports only the user ids.
<clever>
turns out, the inodes are 64bits wide, and the 32bit userland only partialy supports it
<clever>
so nearly everything failed to compile
<Unode>
i.e. it complains username not found.
<sophiag>
i'm trying to set up an OCaml environment in my regular configuration.nix like i did with Haskell. i've copied some boilerplate i found on github, but am not quite sure how to modify a bunch of configs they have before you get to the actual packages. they start on line 43 here if anyone is willing to take a look: https://gist.github.com/Sophia-Gold/a303da391864bf23ab4cf44f45c9fd5e
<simukis>
how do disable stripping of libraries?
<clever>
simukis: dontStrip = true;
<Unode>
clever: I'm running on 64bits so most was working fine. I shouldn't have garbage collected though :/
<judson>
Finally reading the def of mkDerivation. Reassured by let... in let... in let... :D
<simukis>
clever ty
<Unode>
i.e. I now have a broken package which I suspect is glibc but not sure and don't really know what to do to fix it.
<clever>
Unode: updating or downgrading the channel should force it to get a new glibc
<Unode>
hum...
<Unode>
lets see
<clever>
changing it to a different release will definitely change it
<hodapp>
uhhh, any C archaelogists know what the heck at_string, at_address, and at_bitmap_type are?
<simukis>
despite of dontStrip in pretty much every derivation in there it still tries to strip the libraries
<clever>
which libraries is it stripping?
<simukis>
mips-linux-gnu-strip: Unable to recognise the format of the input file `/nix/store/893biyr28phd3qyxk30capjmr5jbisa8-rust-std-nightly-2017-05-06-x86_64-unknown-linux-gnu-mips-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustdoc-eb8c996b34e6cf96.so' (also pretty much everything else around there)
<simukis>
those seem to be provided by the rust-std derivation
<clever>
cant see any cause
<simukis>
does dontStrip apply recursively?
<clever>
no
s33se_ has joined #nixos
<simukis>
clever: stdenv is my configuration file, right?
<clever>
stdenv is the main stdenv from nixpkgs
<simukis>
so putting something like `stdenv.mkDerivation = ...` in `~/.config/nixpkgs/config.nix` would override the mkDerivation?
takle has joined #nixos
s33se has quit [(Ping timeout: 246 seconds)]
<simukis>
oh wait
<clever>
simukis: that would also overwrite the entire stdenv and break everything
filterfish has quit [(Read error: Connection reset by peer)]
<clever>
because its doing stdenv = { mkDerivation = ...; }; and now everything else is missing from the stdenv
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
<matthewbauer>
wrapProgram really does need to be documented by the way
<rcschm>
let me try it tomorrow morning and see. thks for your help.
<matthewbauer>
I guess it has some stuff in the src but it seems like it should go in nixpkgs manual
<rcschm>
thks matthewbauer.
ryanartecona has joined #nixos
alx741 has quit [(Quit: alx741)]
takle has joined #nixos
rcschm has quit [()]
takle has quit [(Ping timeout: 260 seconds)]
takle has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
danharaj has quit [(Ping timeout: 258 seconds)]
indi_ has joined #nixos
mw has joined #nixos
indi_ has quit [()]
treaki_ has joined #nixos
treaki has quit [(Ping timeout: 240 seconds)]
marsel has joined #nixos
FRidh has joined #nixos
ertes has quit [(Ping timeout: 240 seconds)]
reinzelmann has joined #nixos
MercurialAlchemi has joined #nixos
cpennington has quit [(Ping timeout: 258 seconds)]
marsel has quit [(Ping timeout: 260 seconds)]
ryanartecona has quit [(Quit: ryanartecona)]
takle has joined #nixos
jgertm has joined #nixos
fre has joined #nixos
takle has quit [(Ping timeout: 255 seconds)]
fre has quit [(Ping timeout: 260 seconds)]
takle has joined #nixos
FRidh has quit [(Quit: Konversation terminated!)]
jacob has joined #nixos
jacob is now known as Guest44371
proteus-guy has joined #nixos
ryanartecona has joined #nixos
grisher has quit [(Ping timeout: 240 seconds)]
<jluttine>
i'm writing a python package into nixpkgs. however, i get error "error: invalid command 'bdist_wheel'" when reviewing with nox-review. any ideas what could be wrong? "nix-shell --pure -p pythonPackages.packagename" works
filterfish_ has joined #nixos
Profpats1 has joined #nixos
tv1 has joined #nixos
zeus_ has joined #nixos
justan0theruser has joined #nixos
grenade has joined #nixos
markus1209 has quit [(Ping timeout: 240 seconds)]
markus1189 has joined #nixos
jacob__ has joined #nixos
jack[m]1 has joined #nixos
offlinehacker[m] has joined #nixos
hendrik[m] has joined #nixos
spawnthink[m] has joined #nixos
davidar has joined #nixos
simukis has quit [(Quit: simukis)]
simukis has joined #nixos
inflames has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] pSub pushed 2 new commits to master: https://git.io/v9r4R
<tommyangelo>
Hi, is it possible to move to encrypted root after install, or do I need to reinstall?
goibhniu has joined #nixos
ilyaigpetrov has joined #nixos
derjohn_mob has joined #nixos
spacefrogg_ is now known as spacefrogg
<clever>
tommyangelo: there is http://johannes-bauer.com/linux/luksipc/ but ive never used it, and getting it to boot afterwards with nixos in the mix may be tricky
<clever>
in theory, you could run luksipc from the install cd, mount the luks'd root, then fix the configuration.nix and re-run nixos-install (which is just a script to nixos-rebuild under a chroot)
<ertes-w>
a lot of the definitions in 'builtins' can also be found in '(import <nixpkgs> {}).lib'… is there any difference? which ones should i prefer?
<ertes-w>
e.g. 'builtins.hasAttr' or 'lib.hasAttr'?
<clever>
ertes-w: some stuff is initialy added in lib, written purely in nix
<clever>
but then its later found to be a performance bottleneck, so it gets moved to a builtin
<ertes-w>
so i should use the builtin
<clever>
the one in lib is turned into an if statement
<clever>
that calls the builtin for you
<clever>
so the lib variant works on older copies of nix as well
<niksnut>
gchristensen: yes, working on something else atm
<clever>
gchristensen: a few things, first, nix-serve/nix-copy-closure would be able to reuse the original cache.nixos.org-1 signatures
<niksnut>
gchristensen: "nix verify -r --no-contents /run/current-system" will complain about any unsigned paths
<clever>
gchristensen: second, you could verify that paths in /nix/store where signed by cache.nixos.org, without having to re-download things, and exclude 95% of the storepaths that you may want to audit
<gchristensen>
cool, thank you niksnut
avn_nb has joined #nixos
<niksnut>
actually, that wasn't quite true
<niksnut>
it will also not complain about locally built paths
<niksnut>
requires at least one signature for every path
<gchristensen>
I was going to put the chances of a binary cache failure given 99.9% success rate
<gchristensen>
oohhh interesting
Willi_Butz_ has quit [(Quit: WeeChat 1.7.1)]
avn has quit [(Ping timeout: 240 seconds)]
<jophish>
clever: sounds like a good idea!
<unlmtd[m]>
id like to find out what is pulling a particular package. emacs gets pulled and I have no idea why
revtintin has quit [(Ping timeout: 258 seconds)]
bennofs has joined #nixos
leat has quit [(Quit: leat)]
Willi_Butz has joined #nixos
<gchristensen>
unlmtd[m]: nix-store with --query and --referrers, check the man page :)
<clever>
jophish: another extension to the idea i had, is for nix-daemon to sign things at build time, rather then when nix-serve is trying to serve them
<clever>
jophish: then a process like nix-serve wont have read access to the secret key
avn_nb has quit [(Ping timeout: 268 seconds)]
ravloony has quit [(Ping timeout: 260 seconds)]
ravloony has joined #nixos
nckx has quit [(Quit: restarting my GuixSD server)]
darlan has joined #nixos
nckx has joined #nixos
leat has joined #nixos
cpennington has joined #nixos
filterfish_ has quit [(Ping timeout: 255 seconds)]
hiberno has joined #nixos
Itkovian_ has joined #nixos
Itkovian has quit [(Ping timeout: 240 seconds)]
Itkovian_ has quit [(Client Quit)]
Itkovian has joined #nixos
alibabzo has quit [(Remote host closed the connection)]
<domenkozar>
woot zimbatm you worked at mediacore
<domenkozar>
I created one of the first open source integrations for it :)
<clever>
domenkozar: the config argument for nixpkgs isnt being set, so this will load ~/.nixpkgs/config.nix and behave differently for every developer
<domenkozar>
clever: so you suggest to provide an empty config?
<clever>
bb4kk3r: lib.platforms has a bunch of templates you can use
nh2 has joined #nixos
<domenkozar>
thank clever ><3
<domenkozar>
thanks clever <3
<clever>
domenkozar: depends, setting config={}; will make it a lot more stable and reproducable, but also cause overrides to not work for people that dont notice it
<domenkozar>
I knew about internal, getting old and stuff.
<clever>
i have run into problems before where i was trying to debug a package in nixpkgs, and nothing i changed had any effect
<domenkozar>
clever: well it generates options, there shouldn't be any overrides.
<clever>
there was a callPackage override in my config.nix, that entirely replaced it
<clever>
from before the PR had been accepted
<clever>
yeah, then just config={}; and it should lock it down
<domenkozar>
clever: how did you get options in nix-repl?
<domenkozar>
evaluated a nixos config?
<domenkozar>
I remember there were some shortcuts :)
<clever>
with that ui, you can lookup any nixos option in a tree, and edit the resulting configuration.nix
<clever>
but i needed a way to parse configuration.nix if i wanted to edit the config again later
<domenkozar>
that's hard due to imports, no?
<domenkozar>
or do you assume there's only one file
<clever>
and also the potential for full expressions in the file
<clever>
if the user later adds (import nixos-unstable {}).foo to systemPackages
<clever>
its not exactly going to parse as a simple attribute
Itkovian has joined #nixos
<bitonic>
Are the contents of a file referenced to by a path ever automatically included in the derivation? And if yes, when? CC nh2
<clever>
bitonic: how is the file being referenced? example?
<bb4kk3r>
If I change "meta.platforms" from "stdenv.lib.platforms.linux" to "[ "x86_64-linux" ]", hydra won't try to build it for any other architecture, right?
<nh2>
clever: we're confused about that sometimes `./myfile` seems to evaluate to `/path/to/myfile`, and sometimes to `/nix/store/abc123...-myfile/myfile`
ronny has left #nixos ["WeeChat 1.1.1"]
<clever>
bb4kk3r: both hydra and nix-build will refuse to build it for any other platform
<bb4kk3r>
Great. I'll submit a PR.
<clever>
bb4kk3r, nh2: ah, if you do it inside a string, it will import the path to /nix/store, based on the hash of the contents
<clever>
but there are some methods that will coerce it to the original path
<clever>
so it depends on what you apply to the string
<bb4kk3r>
Oh, no. that was just for clarification
<clever>
i usualy "${./foo}" to force it to be a string and in the store
<bb4kk3r>
it's just platforms = [ "x86_64-linux" ];
<nh2>
clever: so it is the ${} that turns ./paths it into store paths?
<clever>
nh2: when inside a string i believe
<clever>
that casts it to a string
jgertm has quit [(Ping timeout: 272 seconds)]
<clever>
and i can see where the confusion comes from
<nh2>
clever: we would like to understand exactly when it happens; for example, when using `toString` it does not happen, and we couldn't find anything in the manual that describes this topic
<domenkozar>
the main confusion comes since some function use toString internally :D
<domenkozar>
clever: that's what I'm saying, if Nix gets a path it turns it into derivation
<clever>
so toString does something different from just inserting it into the middle of a string
<domenkozar>
but you can make it a string beforehand
<clever>
but only if its being treated like a string
<domenkozar>
*insert quotes about dynamic typing*
<nh2>
yes, I think that is the confusing part: I find it extremely surprising that `${}` does `toString`, *except* on _some_ types, where it does something special
<domenkozar>
I wrote a bit about this, but haven't pushed yet to nix-cookbook.readthedocs.io
<nh2>
in other words, dynamic type dispatch, like domenkozar said
<clever>
so the substring stuff on line 1653 right below, will copy to the store
<Unode>
clever: thanks for the help yesterday. Ended up fixing it by removing the path from the store and then using --repair-path . This works but somehow nix-store --verify-contents still complains that the path is corrupted. Probably some .nfs file pops up there or changes some timestamp.
nckx has quit [(Quit: restarting my GuixSD server)]
<domenkozar>
so the answer is: it depends if the toString is called and it depends in what context toString is called
<clever>
Unode: nix will ignore timestamps when hashing, but .nfs files could probably mess with things
mudri has joined #nixos
<nh2>
`toString` copies files around -- "purely functional"
<domenkozar>
purely functional with paths allocation by reference
<clever>
nh2: "${./foo}" copying files around, is to lock them in at a given value
<clever>
so if the contents of the file changes mid-way thru a build, it keeps using the old version
<clever>
and next time you start a build, it copies it again, and gets a different storepath, which causes all the things depending on it to change paths
nckx has joined #nixos
<domenkozar>
nh2: it's still pure since evaluation doesn't do this :P
<clever>
so it is pure, after the copy is done, and depends on the hash(file contents), rather then what value it happens to have when the build reads it
<domenkozar>
realizing the .drv does the copying, I'd guess
<clever>
domenkozar: i'm pretty sure nix-instantiate does the copy
<clever>
domenkozar: it loads the entire path into ram, serializing it into a NAR bytestring, then hashes it, and unpacks it to /nix/store
<clever>
domenkozar: and uses that hash as a string to embed into the .drv
<clever>
which is also why it warns about things over 256mb in size
<domenkozar>
right, otherwise deploying to a remote machine wouldn't work
<clever>
and why i get horid performance when i do input = ./5gig-file.pdf;
<domenkozar>
clever: did you see a patch for that?
<clever>
i saw an open PR for it
<domenkozar>
I'm buying endless amount of beers to wherever gets that merged in
<domenkozar>
for one limited night :-P
<clever>
never touched the stuff :P
<clever>
nh2: have you seen how context works on strings in nix?
<nh2>
clever: no, happy to learn!
<clever>
nh2: every string in nix, has a list of .drv paths behind it, what that string depends on
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dezgeg closed pull request #25612: pngquant: restored 'patchShebangs' because build failed on Hydra (master...pngquant-2.9.1-fix) https://git.io/v9rwL
NixOS_GitHub has left #nixos []
<clever>
or output paths i think
<clever>
nh2: so the string "/nix/store/rkvwvi007k7w8lp4cc0n10yhlz5xjfmk-hello-2.10" has some invisible state, that says it depends on the hello derivation
<clever>
nh2: and if that string winds up as the input to stdenv.mkDerivation, the newly made derivation will "magically" depend on hello being built
<clever>
and this works even if you mess with the string via builtins.substring
<nh2>
clever: ah, that is a good insight. I always wondered how that worked.
<nh2>
clever: also from the code you linked, it seems that `toString` calls `prim_toString`, but `${}` does not? Do you know what code eventually calls `coerceToString` when `${}` is involved?
<clever>
ah, i often try to fight github whenever it does that, makes the links much longer
<clever>
but i can see the value when you want to open the link up a year later
<nh2>
clever: a compromise is to shorten the SHA to less chars, github can still handle that
fre has quit [(Quit: WeeChat 1.7)]
<clever>
heh, i once asked somebody for the nixos-version output, and he cut the hash off 1 character away from it being unique
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] NeQuissimus pushed 2 new commits to master: https://git.io/v9oYn
<NixOS_GitHub>
nixpkgs/master 4e2c67f Tim Steinbach: linux: 4.4.66 -> 4.4.67
<NixOS_GitHub>
nixpkgs/master 8c74ff6 Tim Steinbach: linux: 4.9.26 -> 4.9.27
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] NeQuissimus pushed 2 new commits to release-17.03: https://git.io/v9oYl
<NixOS_GitHub>
nixpkgs/release-17.03 9a96125 Tim Steinbach: linux: 4.4.66 -> 4.4.67...
<NixOS_GitHub>
nixpkgs/release-17.03 d5612c5 Tim Steinbach: linux: 4.9.26 -> 4.9.27...
NixOS_GitHub has left #nixos []
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<samae>
clever: I cannot find where the “virtualisation.graphics” configuration key is stored…
<clever>
samae: it has to go into configuration.nix, and sadly, its only valid when using build-vm
<samae>
uh
<clever>
so the config becomes invalid when you try to use test/switch/boot/build
<samae>
I see
Itkovian has joined #nixos
<clever>
so you need to comment it out after your done testing in build-vm
<samae>
ok
<samae>
That's the problem I had
<unlmtd[m]>
gchristensen: thanks
leat has joined #nixos
cfricke has quit [(Ping timeout: 258 seconds)]
datakurre has quit [(Ping timeout: 260 seconds)]
Dezgeg has quit [(Ping timeout: 264 seconds)]
johnsonav has joined #nixos
peti has quit [(Ping timeout: 255 seconds)]
Infinisil has joined #nixos
peti has joined #nixos
reinhardt has quit [(Quit: Leaving)]
Jackneilll has joined #nixos
<the-kenny>
Anyone ever tried to install Windows 10 from a running Linux to an external SSD for provisioning a PC?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nix] edolstra pushed 2 new commits to master: https://git.io/v9osn
<NixOS_GitHub>
nix/master ebfceeb Eelco Dolstra: build-remote: Check remote build status
<NixOS_GitHub>
nix/master 00b2862 Eelco Dolstra: Linux sandbox: Fix compatibility with older kernels
NixOS_GitHub has left #nixos []
<nahamu>
the-kenny: I've done it for non-Windows operating systems using QEMU.
<nahamu>
Fire up a VM passing the external drive through to the VM and install an OS.
<nahamu>
Windows might be cranky about drivers, but it could work.
<the-kenny>
I'll try it, thanks :)
DerGuteMoritz has joined #nixos
<nahamu>
at the simplest you're doing something along the lines of "qemu-kvm -m 2048 -smp 2 -hda /dev/sdN -cdrom /path/to/install/cd.iso" You can do much better than that, but that's the basic idea.
jgertm has joined #nixos
darlan has quit [(Remote host closed the connection)]
mizu_no_oto has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nix] edolstra pushed 1 new commit to master: https://git.io/v9oGX
<NixOS_GitHub>
nix/master 7689181 Eelco Dolstra: Minor cleanup
NixOS_GitHub has left #nixos []
darlan has joined #nixos
ryantrinkle has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] edolstra pushed 1 new commit to master: https://git.io/v9onL
<SovereignBleak>
I want to declare where it is in my configuration.nix
bennofs has quit [(Ping timeout: 240 seconds)]
<SovereignBleak>
But the solution offered in the reddit thread is non-functional for me since my /run/current-system/sw/share/emacs/site-lisp/ hierarchy stops before /elpa.
<SovereignBleak>
I *think* I'm just not grokking something really simple here.
takle has joined #nixos
danharaj has joined #nixos
datakurre has joined #nixos
jgertm has joined #nixos
<nahamu>
can you pastebin a lightly sanitized version of your configuration.nix?
datakurre has quit [(Client Quit)]
<nahamu>
I think you want something along the lines of "${emacs}/share/emacs/site-lisp/elpa/pdf-tools-0.70/epdfinfo" but I'm not certain.
Infinisil has quit [(Quit: leaving)]
pchiusano has quit [()]
pchiusano has joined #nixos
<nahamu>
This is code I wrote that cleans up some bash scripts to have full paths to certain coreutils binaries.
<nahamu>
I'm not totally sure it translates to stuff in configuration.nix though.
<nahamu>
(It's been a while since I've had a chance to play with NixOS.
<sphalerite>
SovereignBleak: the "proper" solution for that is to build the emacs config using nix and have it put the full path in
<sphalerite>
(IMHO)
<sphalerite>
Makes it less stateful
<SovereignBleak>
nahamu: I don't think there's anything in my config with secrets you can't see. One moment.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] edolstra pushed 3 new commits to release-17.03: https://git.io/v9oWx
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
digitus has joined #nixos
aneeshusa has joined #nixos
<UrsidaeJohn>
I am trying to install a python package which requires setuptools version 35. how the hell do I do this? I've written a .nix file for my package, and I started writing one for setuptools, but it's got a nasty collection of dependencies. Is there some way to see the file that was used to make setuptools 30 (which I can see using `nix-env -q`)?
goibhniu has quit [(Ping timeout: 240 seconds)]
marsel has joined #nixos
aloiscochard has quit [(Quit: Connection closed for inactivity)]
ryanartecona has quit [(Quit: ryanartecona)]
<srhb>
UrsidaeJohn: Clone nixpkgs, grep "name = \"setuptools" or something like that :)
<UrsidaeJohn>
so, nixpkgs isn't cloned somewhere already when nix is installed?
__Sander__ has quit [(Quit: Konversation terminated!)]
<gchristensen>
UrsidaeJohn: you'll probably find it around /nix/var/nix/profiles/per-user/root/channels/nixpkgs
henrycrutcher has joined #nixos
<UrsidaeJohn>
setuptools is a core python package, do those get updated ever in nixpkgs?
<henrycrutcher>
hello! I'm trying to build a python package (using nix-shell as the environment), and when I upgraded to unstable, buildPythonPackage stopped working
<srhb>
UrsidaeJohn: But there is a bit of x-y problem here. You might not need the derivation at all, perhaps you can just override the current one's version.
<srhb>
henrycrutcher: :
<srhb>
"stopped working"?
svij1 has joined #nixos
<henrycrutcher>
simplified example below:
<gchristensen>
henrycrutcher: 1please use a pastebin :)
<UrsidaeJohn>
srhb: I only see one version when I run `nix-env -q`, does that indicate that there is only one version tracked by nixpkgs, and I do need to write a derivation? Or is there some way that I can request a specific version?
<srhb>
UrsidaeJohn: In this case, there is only one, but no, it does not indicate that. It could simply not be evaluated top level.
<srhb>
UrsidaeJohn: You can request another version, or write your own derivation, or possibly make an overridden pythonPackages set with that version of setuptools.
jeremejevs has quit [(Quit: Connection closed for inactivity)]
ryantrinkle has quit [(Ping timeout: 272 seconds)]
toppler has quit [(Ping timeout: 240 seconds)]
ryanartecona has joined #nixos
scode has quit [()]
sellout- has quit [(Read error: Connection reset by peer)]
scode has joined #nixos
sellout- has joined #nixos
sellout- has quit [(Read error: Connection reset by peer)]
sellout- has joined #nixos
ryantrinkle has joined #nixos
<LnL>
^ nice!
nckx has quit [(Ping timeout: 240 seconds)]
nckx has joined #nixos
<clever>
neat
<gchristensen>
niksnut: if you want to change my PR, I'm OK with that -- I can't change it until 5pm my time :)
tsmeets has joined #nixos
zeus_ has quit [(Read error: Connection reset by peer)]
zeus_ has joined #nixos
Infinisil has joined #nixos
mizu_no_oto has joined #nixos
* Infinisil
is back
jensens has quit [(Ping timeout: 240 seconds)]
sdemos has quit [()]
sdemos has joined #nixos
simukis has quit [(Read error: Connection reset by peer)]
simukis has joined #nixos
ryantrinkle has quit [(Ping timeout: 272 seconds)]
<Infinisil>
It's working :D, now I have a setup where I have /global directory which is always kept in sync over different machines, which I will use for my system configuration
dfranke has quit [(Remote host closed the connection)]
jgertm has joined #nixos
svij2 has quit [(Ping timeout: 246 seconds)]
mizu_no_oto has joined #nixos
georges-duperon has quit [(Ping timeout: 255 seconds)]
digitus has quit [(Remote host closed the connection)]
digitus has joined #nixos
<nh2>
how does one correctly package C applications that come with Python applications? Glusterfs has a Python script which imports `gluster.cliutils`, a Python lib that comes with gluster. The problem is that the script doesn't have PYTHONPATH set so that it can import the lib. The script got its `#!/usr/bin/env python` replaced by nix, but it points directly to a python interpreter binary in /nix/store, not to a wrapper that sets
svij2 has joined #nixos
contrapumpkin has quit [(Remote host closed the connection)]
<nh2>
do I need to run `wrapProgram` manually on all python scripts glusterfs brings with it? Or is there an approach that does so automatically?
takle has joined #nixos
nckx has quit [(Ping timeout: 260 seconds)]
davidak has quit [(Quit: Leaving.)]
rizary has quit [()]
rizary has joined #nixos
<dmj`>
cstrahan: ping
jgertm has quit [(Ping timeout: 260 seconds)]
mudri has quit [(Ping timeout: 260 seconds)]
nckx has joined #nixos
<cstrahan>
dmj`: hey
mudri has joined #nixos
marc_____ has joined #nixos
Tipping_- has joined #nixos
pdobrogost has quit [()]
pdobrogost has joined #nixos
eacameron has quit [(Quit: Leaving...)]
FRidh has joined #nixos
<marc_____>
http://dpaste.com/1Y2B5B2 -> xorg nvidia geforce 940MX -> X doesn't show up. But no errors. I had to change BusID.
Jackneilll has quit [(Remote host closed the connection)]
<pem__>
Hi! I'm confused about overlays. I can use the rust overlay with nix-env -iA, but I don't understand how to call it from a .nix file to start a shell
<pem__>
Any hint?
derjohn_mob has joined #nixos
<Filystyn>
guys is tehre some easy way to build somethign if dependencies are not met?
<Filystyn>
i need teamviewer but only for tomorow fro few hours
<clever>
Filystyn: teamviewer only works if you run a daemon as root, so you cant just run it under a nix-shell
<clever>
the service has to be enabled
jmiven has quit [(Quit: WeeChat 1.7.1)]
jmiven has joined #nixos
mudri has joined #nixos
<Filystyn>
i know but there was a bug with it that caused to crap on configurefile with teamviewer enabl;ed
<joko>
Hey, any idea what that Hydra error means: "requesting more tokens (2646014992) than exist (2059864064)"?
mudri has quit [(Ping timeout: 255 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dmjio opened pull request #25624: Mark ghcjs as fixed (master...ghcjs-fix) https://git.io/v9KWU
NixOS_GitHub has left #nixos []
<dmj`>
cstrahan: as suspected, it’s already fixed, just not marked as such
<FRidh>
nh2: the colon should indeed be removed in the case of --set
<nh2>
I guess that's what `separator="${params[$((n + 2))]}";` does for --prefix
<nh2>
sometimes I have to shiver in presence of the amount of shell scripting in nixpkgs
<FRidh>
then you're not the only one
<nh2>
FRidh: I can run `gluster-eventsapi` now without import error. But there's still the problem that it says ".gluster-eventsapi-wrapped: error: too few arguments" instead of "gluster-eventsapi: error: too few arguments" -- the "wrapped" makes it into argv[0]. I think this is related to the `exec -a` you mentioned, and which I can see in the wrapper script. But I didn't understand from your reply: Is there a fix for that?
Itkovian has joined #nixos
<FRidh>
nh2: Unfortunately not. wrapPythonPrograms patches the script to set `sys.argv[0]` so that does solve some issues
sellout- has quit [(Quit: Leaving.)]
<FRidh>
Got to go now. Good luck with it
FRidh has quit [(Quit: Konversation terminated!)]
<hodapp>
how does one coax a stdenv to use a specific GCC version?
<hodapp>
oh. wait. my problem is CMake being stupid, not Nix ignoring me. nevermind.
Filystyn has quit [(Ping timeout: 240 seconds)]
DutchWolfie has quit [(Quit: Konversation terminated!)]
tsmeets has quit [(Quit: leaving)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] RonnyPfannschmidt opened pull request #25625: remove myself from maintainers/enpass (master...remove-me) https://git.io/v9K0v
NixOS_GitHub has left #nixos []
ronny has joined #nixos
mudri has joined #nixos
<benzrf>
i pulled the full package listings down from Hackage and theres about 7 times as many versions as there are latest versions
<benzrf>
i wouldnt mind sacrificing ~50MB of disk space to have a fully version-aware version of hackage-packages.nix!
<benzrf>
has anybody tried to do something like that?
<benzrf>
im sick of having to override stuff because something depends on an old version
Infinisil has quit [(Quit: leaving)]
sellout- has joined #nixos
aneeshusa has joined #nixos
<dmj`>
benzrf: like callHackage?
freusque has joined #nixos
civodul has quit [(Read error: Connection reset by peer)]
mudri has quit [(Ping timeout: 260 seconds)]
Mateon1 has quit [(Remote host closed the connection)]
Mateon1 has joined #nixos
<benzrf>
dmj`: WAIT WHAT IS THAT
<dmj`>
benzrf: it’s a thing
<benzrf>
1 second
<dmj`>
callHackage = name: version: self.callPackage (self.hackage2nix name version);