<laas>
trying to cross compile my own rust project
<slack1256>
if you are compiling haskell packages, cabal2nix is really helpful
akapav has joined #nixos
<clever>
laas: i would also ensure the default.nix is doing callPackage
<clever>
laas: and for some projects, default.nix also functions as a usable shell file
m0rphism has quit [Ping timeout: 245 seconds]
jluttine has quit [Ping timeout: 255 seconds]
<laas>
clever: wdym ensure that default.nix is also doing callPackage?
<clever>
laas: write the file such that `nix-build` or `nix-build -A foo` is enough to build the project
<clever>
thats usually enough to make nix-shell also work without a shell.nix
kvda has joined #nixos
<slack1256>
you probably can do that if the project isn't using git-submodules
stepcut has joined #nixos
rcshm has quit [Remote host closed the connection]
rcshm has joined #nixos
goibhniu has joined #nixos
goibhniu has quit [Remote host closed the connection]
mbrgm_ has joined #nixos
mbrgm has quit [Ping timeout: 240 seconds]
mbrgm_ is now known as mbrgm
ErAsMuS has quit [Ping timeout: 244 seconds]
goibhniu has joined #nixos
erictape1 has joined #nixos
erictapen has quit [Ping timeout: 246 seconds]
<ddellacosta>
selfsymmetric-mu: sorry, only now saw your response to me--thanks! Sounds like there are a variety of approaches folks using haskell on nix are taking
jtcs has quit [Ping timeout: 245 seconds]
o1lo01ol1o has joined #nixos
<{^_^}>
[nixpkgs] @dtzWill opened pull request #57195 → proot: update, consolidate, python extension support → https://git.io/fhhiX
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fhhPY
simukis has quit [Quit: simukis]
<Lisanna>
I have config.firefox.jre = true; in my nixpkgs config. But when I build firefox-esr and launch it, java is not enabled or installed visibly.
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
rfold has quit [Quit: leaving]
drakonis1 has joined #nixos
stepcut has quit [Read error: Connection reset by peer]
stepcut has joined #nixos
drakonis2 has joined #nixos
drakonis has quit [Ping timeout: 245 seconds]
stepcut has quit [Ping timeout: 246 seconds]
drakonis1 has quit [Ping timeout: 257 seconds]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
<slack1256>
Oh, cool. I said so because haskell projects have an utility called `cabal2nix` which from a .cabal file construct a default.nix expression that you can use on nix.
<slack1256>
It really helped me to see how to package a project for nix
<slack1256>
but there are other ways other languages use (python, rust notably)
<Guest44936>
Ah, that's a shame. No such luck with this project. Would it still be worth looking into cabal2nix just for the understanding?
<slack1256>
If you already understand how haskell projects are setup you can understand nix by analogy
<mog>
im trying to cache my nix environment form a mac to my nixos server
<mog>
i ran nix sign-paths --all -k nix-serve.sec
<mog>
and then nix copy --to ssh-ng://mog@myserver --all
<mog>
keeps getting caught here error: cannot add path '/nix/store/6m8xli5nyvh38rkc0p98cflfm2i638ac-Libsystem-osx-10.11.6' because it lacks a valid signature
<mog>
so packages that werent built by me were broken somehow
<mog>
passing --use-subs to copy-closure fixes it
jpaus has joined #nixos
<Ashy>
is there an easy way to generate a default.nix that would be roughly equivalent to `nix-shell -p some packages here`?
o1lo01ol1o has joined #nixos
jpaus has quit [Ping timeout: 246 seconds]
jasongrossman has quit [Ping timeout: 246 seconds]
risson has joined #nixos
jmeredith has quit [Quit: Connection closed for inactivity]
iyzsong has quit [Read error: Connection reset by peer]
o1lo01ol1o has quit [Ping timeout: 255 seconds]
Glider_IRC_ has joined #nixos
Glider_IRC__ has quit [Ping timeout: 245 seconds]
jasongrossman has joined #nixos
o1lo01ol1o has joined #nixos
vonfry1 has joined #nixos
vonfry1 is now known as vonfry_
vonfry has quit [Read error: Connection reset by peer]
o1lo01ol1o has quit [Ping timeout: 255 seconds]
<elvishjerricco>
samueldr: I thought GPT kept that gap for legacy reasons so old bios's could still boot gpt disks if the boot loader was installed both ways.
<DigitalKiwi>
hopefully last question for a while if I want to use this https://github.com/0xbb/gpu-switch#macbook-pro-113-and-115-notes it sounds like the easiest way would be the apple_set_os_efi option, ooor refind, but I think that might give me a lot of trouble since I have encrypted zfs on root... (not sure but that's what everthing I've read makes me think) any suggestions for how to proceed?
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rcshm has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @volth opened pull request #57223 → strace: download source from github instead of strace.io (the domain is down) → https://git.io/fhhDJ
<MichaelRaskin>
DigitalKiwi: I think at some point FreeBSD was a somewhat supported platform, but then we ran out of people caring to fix anything there
<srhb>
talqu: In configuration.nix = in systemPackages?
<srhb>
talqu: It should be on your path then.
<srhb>
I'm not sure what xfce4 ui tools uses to find applications.
Shouou has quit [Remote host closed the connection]
linarcx has joined #nixos
Shouou has joined #nixos
Shouou has quit [Remote host closed the connection]
Shouou has joined #nixos
oida has joined #nixos
Shououo has joined #nixos
rfold has joined #nixos
<talqu>
srhb, yes, emacs is declared in systemPackages. what is i install with nix-env -iA is visible from the emacs run from application finder, however a custom path added through export in .bashrc, make that dir not visible in emacs
<elvishjerricco>
mvnetbiz: It's generally much better to gate configs behind custom options than to try to make the import graph conditional
<elvishjerricco>
i.e. in `other-module.nix`, have `options.foo.enable = lib.mkOption { type = lib.types.bool; }` and `config = lib.mkIf config.foo.enable { /* regular config goes here */ }`
<mvnetbiz>
elvishjerricco, yeah, I understand. I was just trying to find a good way to optionally import hardware-configuration.nix depending on machine configuration options
<mvnetbiz>
I am trying to make a configuration that works across my PCs
<mvnetbiz>
I might just leave it as /etc/hardware-configuration.nix and just import that normally and not have that specific file synced
<elvishjerricco>
ah, yea I just wouldn't. I have a different root module for all my systems, and they all import a common module which defines options that I can configure specially for each machine in their root module. The root module imports the hardware config
linarcx has quit [Quit: WeeChat 2.4]
<mvnetbiz>
I was just thinking it makes it a little less complicated to have a single directory be the same on all computers but it is ending up a little complicated
linarcx has joined #nixos
<mvnetbiz>
less complicated as far as file sync but more complicated in the nix code required I mean.
<elvishjerricco>
mvnetbiz: You can definitely do that. Just have a different specific root module for each one and symlink the appropriate one to /etc/nixos/configuration.nix
<mvnetbiz>
Yeah I think I'll do that.
arjen-jonathan has joined #nixos
vaibhavsagar has joined #nixos
smolboye[m] has joined #nixos
balsoft[m] has joined #nixos
vesak[m] has joined #nixos
d_g[m] has joined #nixos
domenkozar[m] has joined #nixos
wolfmantjg1234[m has joined #nixos
jonreeve[m] has joined #nixos
mbodmer[m] has joined #nixos
Guest8919 has joined #nixos
__monty__ has joined #nixos
vk3wtf has quit [Ping timeout: 240 seconds]
NickSeagull has joined #nixos
zupo has joined #nixos
linarcx has quit [Ping timeout: 245 seconds]
linarcx has joined #nixos
shabius_ has joined #nixos
NinjaTrappeur has joined #nixos
hhes has joined #nixos
shabius has quit [Ping timeout: 264 seconds]
linarcx has quit [Ping timeout: 250 seconds]
linarcx has joined #nixos
silver has joined #nixos
jasongrossman has quit [Ping timeout: 252 seconds]
<JonReed>
I've read that lists are just arrays (not linked lists) in Nix under the hood. How are AttrSets implemented in Nix? Is there anywhere I can read about performence considerations and best practices for Nix for the language itself?
linarcx has quit [Quit: WeeChat 2.4]
linarcx has joined #nixos
<{^_^}>
[nixpkgs] @FRidh pushed 14 commits to release-19.03: https://git.io/fhhHj
<linarcx>
Gyus, i installed some themes like deepin.deepin-gtk-theme. But it only affect gtk3 applications. for example deluge not affected by this theme. why?
<siraben>
How do I delete all packages that aren't tracked in configuration.nix?
freeman42x has joined #nixos
<linarcx>
siraben: You mean, user-installed packages?
<siraben>
No but there was a command something like sudo nix-env -e ...
<siraben>
I mean nix-env -e ...
ixxie has quit [Ping timeout: 246 seconds]
<srhb>
siraben: nix-env -e '*' funnily enough
<philipp[m]>
Does anybody else have issues with the mumble client randomly locking up on saving settings?
<linarcx>
siraben: I've get this from man page: `nix-env -e '.*'`
<siraben>
Thanks srhb and linarcx
<JonReed>
linarcx: Gtk 2 and gtk 3 have different configuration files. For gtk 2 to be affected, you can change `~/.gtkrc-2.0`, for gtk 3 `~/.config/gtk-3.0/settings.ini`. They also have a bit different syntax.
<linarcx>
JonReed: I know about those files. But in arch for example, when you install a gtk3 theme its automatically create that .gtkrc-2.0 for me.
<linarcx>
I want to only install a gtk3 theme. and see the results as same as possible in all gtk2 or gtk3 softwares.
agander has quit [Ping timeout: 250 seconds]
<JonReed>
linarcx: There may be a better way to do it, I don't really know. What I do is I install a theme and just manually update those files and that just works.
<srhb>
Myrl-saki: Did you end up succeeding mucking with primusrun and friends or creating an issue?
<pie____>
is it explained anywhere what kind of limitations the nix build environment has?
<talqu>
https://pastebin.com/rZ3FL1qX i get this installing purescript. Im curious how is this error: Setup: Encountered missing dependencies: base >=4.2 && <4.11 even posible? Isn't nix derivation supposed to download/build the version it was declared with?
<pie____>
(like no network access, or whatever)
rauno has quit [Remote host closed the connection]
jlslnx has joined #nixos
<srhb>
pie____: That specifically is related to the sandbox, which is documented in the nix manual somewhat.
<srhb>
talqu: Yes? That's also happening here.
<srhb>
talqu: Are you wondering how base got bumped without purescript being updated as well?
<pie____>
srhb: hm ok thanks, so sandbox is the keyword
<talqu>
srhb, i don't have purescript in my nixos. I do nix-env -iA nixos.purescript and I get this error, which as i can see requires some particular base version. Why doesn't it download/build for me then?
<srhb>
talqu: Which version of NixOS are you on? base is tied to the particular ghc version.
<talqu>
srhb, 18.09.2253.753f58d9a42 (Jellyfish)
<Myrl-saki>
srhb: Yep. Roll back my drivers to a 2017 one.
<srhb>
Myrl-saki: What, really? That works? Mind telling me which version specifically?
<srhb>
talqu: So that version has purescript at 0.12.0 but base at 4.11.1.0 in the main haskell package set
<srhb>
talqu: however, we do provide older compilers (and thus older base version)
<srhb>
Myrl-saki: Thanks :)
<srhb>
talqu: They're not binary cached though.
<Myrl-saki>
srhb: No purrblem. Might wanna pin it on NixOS, just in case someone wants to use this 5 years from now?
<srhb>
Myrl-saki: Yeah, but how annoying :(
stepcut has joined #nixos
<talqu>
srhb, thanks, i see now at least why that is happening. anyways, purescript uses pulp which a bower/npm tool, something that is not on nixos packages site :) i will have to install purescript/pulp through npm/bower/psc-package then. thank you again
<srhb>
talqu: Specifically, haskell.packages.ghc822 should have the right base version..
<mojjo>
`error: attribute 'buildNodePackage' missing, at...` -> as far as I understand this, it should be available under `pkgs.nodePackages.buildNodePackage`... ?
<andi->
is there an easier way to determine reverse dependencies then the hydra jobset diff that usually is used for the rebuild amount script?
<andi->
Especially without having to trigger a rebuild
<siraben>
Anyone have a particular file manager they like? I've been using Thunar but wanted to know if there are better/more extensible ones
<siraben>
Ranger is pretty good but I'm looking for a graphical one too
Thra11 has quit [Ping timeout: 246 seconds]
<pie____>
siraben: i wonder if you could run windows explorer in wine
stepcut has quit [Remote host closed the connection]
<siraben>
pie____: why would I do that
<siraben>
hehe
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
<jasongrossman>
siraben: I use caja ... which I picked because I like its default settings, not because it's extensible, but it might be worth a look.
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
<siraben>
jasongrossman: does it pull in crazy dependencies?
<siraben>
I'm using i3
stepcut has joined #nixos
<jasongrossman>
siraben: It doesn't pull in much IIRC.
<siraben>
jasongrossman: are you using MATE?
stepcut has quit [Remote host closed the connection]
<__monty__>
siraben: Anything ranger doesn't do (well) that you want a GUI fm for?
<jasongrossman>
siraben: No, I'm not using MATE.
<siraben>
__monty__: Drag and drop!
* siraben
runs away
<{^_^}>
[nixpkgs] @xeji pushed commit from @vanzef to release-19.03 « marisa-python: fix build (#57013) »: https://git.io/fhh5v
<jasongrossman>
siraben: I'm using stumpwm.
<siraben>
__monty__: I should use it more often, hrm.
stepcut has joined #nixos
grizwako has joined #nixos
<siraben>
jasongrossman: just installed it, seems good
<__monty__>
siraben: You can kinda get that with dragon or something. It's on the wiki.
<__monty__>
dragondrop?
<siraben>
Nah I don't really need drag and drop
<siraben>
I mostly use the shell/Emacs anyways for doing file stuff
<jasongrossman>
siraben: I keep meaning to get better at dired.
<siraben>
jasongrossman: dired is pretty limited, Helm satisfies much of my file needs
<siraben>
jasongrossman: wdired is something to not miss out on though.
<jasongrossman>
siraben: I love both helm and wdired.
<siraben>
__monty__: ah I remember, one of the things graphical file managers are good at is displaying many images simultaneously
<siraben>
ranger does that but only one at a time
<__monty__>
siraben: Maybe something like feh combined with ranger's open_all_images? Afaik it has a tiled thumbnail view.
<__monty__>
Also, scope.sh *is* a configuration file. You could write a bit of shell that tiles like 10 images for the directory preview if you think that's useful.
<siraben>
__monty__: I suppose. What do you use for your file manager? ranger?
<__monty__>
I suppose so, maintain it for a reason : >
<siraben>
What about mounting hard drives and such?
<siraben>
Without a graphical interface
<siraben>
It's a little tedious sometimes to mount /dev/*
<siraben>
not * but the path of the device, obv.
_kwstas has joined #nixos
<siraben>
__monty__: ah, didn't know you were a maintainer, heh.
rcshm has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_kwstas_ has joined #nixos
_kwstas has quit [Read error: Connection reset by peer]
_kwstas_ is now known as _kwstas
<siraben>
Hm nevermind about the hard drive^, what was I saying.
<{^_^}>
[nixpkgs] @timokau pushed 4 commits to release-19.03: https://git.io/fhh58
<noonien>
does anyone have sound over displayport?
leat has joined #nixos
<lassulus>
yes
<lassulus>
I have DP -> HDMI and sound goes through it
<noonien>
did you have to do anything special do get it enabled? or did it just work in pulseaudio?
<catern>
hmm, I don't like that "NIX_REMOTE=~/nix nix-store --add foo" gives me back /nix/store/*-foo rather than ~/nix/nix/store/*-foo, which is the actual path created
<lassulus>
noonien: did just work in pulseaudio, had to set in in pavucontrol under configuration
<noonien>
lassulus: ah, yes!
<noonien>
that was it, thanks!
<lassulus>
np :)
<__monty__>
siraben: There's automounters like udiskie. We consider it seperate from file management because most people that spend a lot of time in terminals don't like magic.
<williamrusnack>
I'm on macOS and just installed nix. How do I add nix to my PATH? I know that the bin is at /nix/store/*-nix-*/bin/ but I am not sure how to link to the latest.
o1lo01ol1o has joined #nixos
leat1 has quit [Remote host closed the connection]
endformationage has joined #nixos
leat1 has joined #nixos
Maxdamantus has quit [Ping timeout: 245 seconds]
<LnL>
did you start a new shell?
Maxdamantus has joined #nixos
<williamrusnack>
LnL: yes
<LnL>
and what's the value of $PATH and $NIX_PATH?
<noonien>
i'm encoutering an issue when trying to build a derivation, there's a python script to patch some fonts, and for some reason, i get this error: http://vpaste.net/SLxj3
Rusty1 has quit [Quit: Konversation terminated!]
xqsl has joined #nixos
<williamrusnack>
LnL: can I just add ~/.nix-profile/bin/ to my path?
<noonien>
it complains that the file does not exist, however, it does! and is executable
<noonien>
hmm, it has a `#!/usr/bin/env bash`, i'm guessing this is the issue
leat1 has quit [Remote host closed the connection]
<das_j>
noonien: Should work if you call it with bash. Something like `${pkgs.bash} /path/to/script`
jtojnar has quit [Read error: Connection reset by peer]
jtojnar has joined #nixos
leat1 has joined #nixos
jtojnar has quit [Remote host closed the connection]
<noonien>
yes, but i can't, since i just pass a path to the script
<noonien>
i'll just patchShebangs
<das_j>
Probably the best, yes
<williamrusnack>
LnL: Got it working. thanks for the help.
neminis has joined #nixos
<samueldr>
das_j: link to a particular log-less build?
<samueldr>
(or even a couple)
_kwstas has quit [Quit: _kwstas]
<neminis>
is there something like fetchurl but for a local file?
o1lo01ol1o has quit [Remote host closed the connection]
nD5Xjz has joined #nixos
o1lo01ol1o has joined #nixos
JosW has joined #nixos
jpaus has quit [Ping timeout: 245 seconds]
kreisys has joined #nixos
ErAsMuS has quit [Ping timeout: 250 seconds]
<manveru>
so... i'm trying to implement a fetcher that gets a hex package and uses the checksum specified in the mix.lock file (not really under my control). The problem is that this hash actually specifies the checksum of `read_file("VERSION") + read_file("metadata.config") + read_file("content.tar.gz")` inside the initial tarball.
<manveru>
the final output of the fetcher should just be the contents of content.tar.gz, but of course the hash doesn't match for this...
<das_j>
Where is the partition table of the installer defined?
matix has joined #nixos
<samueldr>
das_j: goal?
<samueldr>
(meanwhile I'm digging it up)
<das_j>
samueldr: I think I'll use sd-image, I found it there
<das_j>
I'd like to build a bootable stick which reads the Windows key from UEFI and stores it an a file
<samueldr>
the usb drive is iso-image, not sd-image, in case it matters
<das_j>
samueldr: I think sd-image is more convenient in my case because it doesn't do the loop magic
<samueldr>
sd-image might not work as it is assuming u-boot boot process rather than uefi
<{^_^}>
[nixpkgs] @Ericson2314 opened pull request #57268 → nix*: Make .override work for 19.03 → https://git.io/fhhbi
<DigitalKiwi>
so for this package i'm adding i had to bump a version of something and so i'm testing all of its referers (right word?) and anyway pythonPackages.weboob doesn't build for me and it doesn't build without the version bump either soooo :| there's a new version of it too but i don't even know what it is :|
<DigitalKiwi>
Could not find executable: pyuic5
<DigitalKiwi>
well, that's the error when i build after this git checkout 5d3fd3674a6
o1lo01ol1o has quit [Ping timeout: 268 seconds]
<DigitalKiwi>
when i don't have a cache it compiles for seemingly hours a ton of stuff :| i've never let it finish it makes my laptop too hot
ddellacosta has quit [Ping timeout: 244 seconds]
<DigitalKiwi>
(and i don't have much faith it'll not error anyway :( )
fusion809_ has joined #nixos
fusion809 has quit [Read error: Connection reset by peer]
jgt has joined #nixos
<jgt>
how do I check why nix-shell wants to fetch a certain package?
zupo has joined #nixos
freeman42x has quit [Read error: Connection reset by peer]
ddellacosta has joined #nixos
freeman42x has joined #nixos
zupo_ has joined #nixos
<simpson>
DigitalKiwi: Currently locally building `pythonPackages.weboob` to see what the actual error is.
ggpeti has joined #nixos
<simpson>
DigitalKiwi: Yep, reproduced.
<jgt>
oh, maybe I found it
<simpson>
jgt: You can ask $(nix-store -q --tree $YOUR_DRV_OR_NIX_STORE_PATH).
<makefu>
ar1a: thanks for the contribution. i am thinking about where to put this information, maybe into a general Xorg article or something? or into an input article
<ar1a>
makefu: not sure tbh, i just named it what i would google for "nixos disable mouse acceleration"
<DigitalKiwi>
simpson: heh, i had to kill the build the world one because my keyboard locked up somehow and couldn't type in terminals :|
<simpson>
ggpeti: Hard to tell without more information.
<ggpeti>
well, I checked out nixpkgs and added a simple package. builds well on mac so went on to test on nixos
<makefu>
ar1a: fair enough :) maybe i move the info (but keep the redirect from your page of course)
<ar1a>
go nuts!
vidbina has joined #nixos
<ggpeti>
tried all of the following combinations between nixos version and nixpkgs repo revision: (18.09, 19.03, unstable) x (master, release-18.09, the commit that was last cherry picked to channel 18.09)
<ggpeti>
and every time it builds all of stdenv
<clever>
ggpeti: is the binary cache enabled?
<simpson>
DigitalKiwi: FWIW "--no-qt" works. Looking to see if Qt support can be restored. I don't know much about this package.
<clever>
ggpeti: nix show-config | grep sub
<ar1a>
is there a newstyle nix command for nixos-rebuild?
<ar1a>
or is the nix command only for the nix-.* stuff
<aanderse>
gchristensen: infinisil: toJSON is trying to make all sets objects :(
<MichaelRaskin>
What would you expect instead?
<infinisil>
Yeah ^^
<DigitalKiwi>
so to add this program i have to add a bunch of dependencies so probably multiple PR right so should they all come from a different branch each time too?
linarcx has quit [Quit: WeeChat 2.4]
<aanderse>
yeah didn't really think that all the way through
<aanderse>
but it means i can't (directly) use toJSON
linarcx has joined #nixos
<aanderse>
it creates a vary different array in php than what i had
<MichaelRaskin>
DigitalKiwi: With GitHub, pushing to PR branch updates PR
<simpson>
DigitalKiwi: Okay, well, I'm done spending CPU time on this. Best of luck.
<Izorkin>
infinisil: i checked the unit service on the roundcube script. Normal worked. How to need to merge?)
<laas>
is there a guide for cross-compiling for other distros?
<laas>
i.e. so that you don't link to /nix/store paths
<DigitalKiwi>
simpson: it might help if i typed it in right
jgt has joined #nixos
linarcx has quit [Quit: WeeChat 2.4]
<DigitalKiwi>
i think it is working
linarcx has joined #nixos
Glider_IRC__ has joined #nixos
<simpson>
Okay, great.
<DigitalKiwi>
thank you
williamrusnack has quit [Ping timeout: 245 seconds]
Guest16090 has quit [Ping timeout: 250 seconds]
Guest5082 has quit [Read error: Connection reset by peer]
<le_jonge>
strange, stack2nix fails on a haskell repository for me, with the error message that it cannot build haskell.compiler.ghc864, although that stack.yaml references LTS-13.11 stackage, which uses ghc8.6.3 - any idea what happens here?
Glider_IRC_ has quit [Ping timeout: 255 seconds]
yury_t has joined #nixos
sinner has joined #nixos
Guest16090 has joined #nixos
sinner is now known as Guest93195
<yury_t>
hey guys
<DigitalKiwi>
simpson: how did you build it so fast
<DigitalKiwi>
err, nvrm, it's the other stuff that's taking a long time
<simpson>
DigitalKiwi: FWIW I routinely build PyPy and I used to run Gentoo. It's not really interesting to me if a package requires a few minutes. I can multitask.
<infinisil>
noonien: Hmm, try `builtins.attrNames oldSrc` in the trace
zupo has joined #nixos
<infinisil>
yury_t: I feel like the nix pills are a bit outdated, they could use a refresh, but I think people really like to recommend it as a beginner tutorial
<noonien>
infinisil: hmm, odd, i get the same error
<yury_t>
<infinisil>: I find nix pills tad steep for the nix-beginner.
<noonien>
i get the trace i was looking for :D
<noonien>
infinisil: Thanks!
<noonien>
infinisil+
<noonien>
infinisil++
<{^_^}>
infinisil's karma got increased to 60
<infinisil>
yury_t: I can't really recommend any tutorials, because I didn't use any of them, but https://nixos.wiki/ has a lot of info, maybe check it out
<infinisil>
:)
DigitalKiwi has joined #nixos
DigitalKiwi has quit [Changing host]
selfsymmetric-mu has quit [Remote host closed the connection]
<yury_t>
<infinisil>: I'm not a regular developer, you see. Wiki leaves some necessary basic materiel out.
<noonien>
yury_t: feel free to ask here, the community is really responsive
lopsided98 has quit [Ping timeout: 252 seconds]
<infinisil>
yury_t: Yeah ^^, also, what have you read already, what do you know, and what do you want to learn about?
o1lo01ol1o has quit [Ping timeout: 240 seconds]
<yury_t>
I've tried to read nix pills, I understand the basic premises for the system, I'd like to encapsulate some applications nix-style. But I'm not a regular developer, and unfortunately can't dedicate much time to learning nix specifically, so would prefer to follow a sort of walkthrough on such a task.
rcshm has quit [Remote host closed the connection]
<yury_t>
Also: how can I set the 'lower limit' for the dependencies included in the nix-description? Meaning I'd rather not include for every package things like e.g. libpng and libjpeg. What keywords should I look for?
<infinisil>
yury_t: What's nix-description? You mean a nix expression? Nix is all about explicitly specifying dependencies, so it's common to specify everything that's needed. Usually the list isn't too big
<noonien>
does /usr/bin/env not work when executing builder scripts?
Fare has joined #nixos
<symphorien>
it is not in the sandbox
<symphorien>
use patchShebang instead
hlolli has quit [Ping timeout: 258 seconds]
<noonien>
i only need to run the script during build, don't need it aftewards, the script is in $srs, so i can't modify it, i have to copy it to out, patchShebangs, then delete it
<noonien>
is there not a better way?
rcshm has quit [Remote host closed the connection]
<symphorien>
call the script with the interpreter explicitly ?
<clever>
noonien: the unpackPhase copies it from $src to . for you
<clever>
noonien: you must patch and run the copy in .
<noonien>
hmm, i've got builder = ./builder.sh, doesn't that mean there is no unpack phase?
<clever>
noonien: 90% of the time, you dont want to set builder, it just makes things harder for you
<clever>
noonien: use buildPhase = '' ...''; in the derivation
rcshm has joined #nixos
knupfer has quit [Ping timeout: 240 seconds]
<noonien>
i've got ~55lines of script
<clever>
noonien: you can still put it into the buildPhase
<symphorien>
buildPhase = ''. ${./builder.sh}''
erictapen has joined #nixos
<clever>
that can also work, just dont source the stdenv from it
<{^_^}>
[nixpkgs] @peti merged pull request #56877 → boost: fix misspelled version numbers in 1.66.0, 1.67.0, 1.68.0, and 1.69.0 → https://git.io/fhxSF
<clever>
noonien: and propagatedBuildInputs only works if A runs the fixup phase
<noonien>
ah, that makes sense
<clever>
if your using a custom builder on A, then propagatedBuildInputs wont work
tmaekawa has quit [Quit: tmaekawa]
morr has quit [Quit: WeeChat 2.3]
<sgraf>
Hey, I'm trying out NixOS in a Hyper-V VM, but having trouble starting the X server. Here's a screenshot of my X.log. I already tried adding a RemoteFX Graphics Card to the Hyper-V machine config, to no avail. /dev/dri does not exist, FWIW https://usercontent.irccloud-cdn.com/file/P368XbTL/X.log.png
<{^_^}>
[nixpkgs] @srhb pushed commit from @Ma27 to release-19.03 « autorandr: install bash completions properly »: https://git.io/fhhxD
williamrusnack has quit [Ping timeout: 246 seconds]
rcshm has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @kalbasit opened pull request #57296 → Fixes to a few Go packages → https://git.io/fhhhO
zupo has joined #nixos
<judson_>
I'm hoping this isn't a terrible rabbithole - I'm trying to install a game, and the installer (under steam-run) complains that "PangoFc will not work correctly." and then the font renders as all squares. Installing nixpkgs.pango didn't solve it...
<manveru>
judson_: you'll need to add it to steam-run
<judson_>
My separate lingering issue I've refined my diagnosis of, and this is super irritating: Chromium loses its singleton socket for reasons I can't explain. It's unrelated to upgrading chrome, which was my previous assumption.
<judson_>
Once that happens, following a link from outside of Chrome opens a separate instance.
<judson_>
And *that* now logs you out of Google.
<noonien>
anyone more experienced can help me improve this expression? http://vpaste.net/4jtmh
<judson_>
Which is maybe a good thing, but certainly irritating.
<noonien>
it works, does what i need, just wondering if there's anything to be improved
<noonien>
there are no make files or anything to configure
<guest4847>
I've been trying to get this package working: https://pastebin.com/JFqs3d4S, however, it seems 4 .so libraries in build/bin/ directory are not being copied to the store bin
<guest4847>
Compilation works fine, but on run you'll get: "error while loading shared libraries: libvcmi.so: cannot open shared object file: No such file or directory"
rcshm has quit [Read error: Connection reset by peer]
Eromenos has joined #nixos
rcshm has joined #nixos
<Ashy>
hmm, as of yesterday terminator suddenly won't run with this error "You need to install the python bindings for gobject, gtk and pango to run Terminator." on nixos-19.03 channel
alex`` has quit [Ping timeout: 250 seconds]
<Ashy>
i havent changed my configuration.nix but have run a `nixos-rebuild switch --upgrade` which doesn't seem to have helped
guest2342 has quit [Ping timeout: 256 seconds]
<judson_>
manveru, No dice. It also complains about This probably means there was an error in the creation of: '/etc/pango/pango.modules' You should create this file by running: pango-querymodules > '/etc/pango/pango.modules'
<iqubic>
So I just changed a thing in my local checkout of nixpkgs, and then built it using "nix-build -A programName" How do I add that to my nix store?
<iqubic>
I'll have a result symlink that I want to add to the store.
Fare has joined #nixos
<{^_^}>
[nixpkgs] @bendlas pushed to release-19.03 « Merge pull request #56018 from knedlsepp/fix-cuda-gdb »: https://git.io/fhhjS
<slack1256>
iqubic: nix-env -f /path/to/your/local/checkout/ -A programName
shibboleth has quit [Remote host closed the connection]
shibboleth has joined #nixos
justan0theruser has quit [Ping timeout: 250 seconds]
rcshm has quit [Read error: Connection reset by peer]
jpaus has joined #nixos
rcshm has joined #nixos
nD5Xjz has quit [Ping timeout: 255 seconds]
<ddellacosta>
is there any detailed _reference_ for callPackage anywhere? I already know about the Nix pills "callPackage pattern" section as well as section 14.3 of the Nix manual, and the nixpkgs manual doesn't have anything but language-specific notes as far as I can tell
fragamus has joined #nixos
<{^_^}>
[nixpkgs] @obadz opened pull request #57312 → Teradici PCoIP Client: init at 3.9.0~dev11 → https://git.io/fhjeq
<slack1256>
the callPackage function is usually passed as a parameter and there are different ones.
jpaus has quit [Ping timeout: 250 seconds]
<{^_^}>
[nix] @catern opened pull request #2717 → set up user namespace in builder, not in parent → https://git.io/fhjeY
vidbina has quit [Ping timeout: 250 seconds]
lopsided98 has quit [Quit: Disconnected]
nD5Xjz has joined #nixos
_kwstas has quit [Quit: _kwstas]
lopsided98 has joined #nixos
<pie_>
im going crazy here
<pie_>
im running mysql/mariadb in the nix sandbox and its telling me its running:
<pie_>
2019-03-10 23:03:36 140737354033216 [Note] /nix/store/xqbgc1zv181h0qqww7vmg0id61xxgbxb-mariadb-10.2.17/bin/mysqld: ready for connections. Version: '10.2.17-MariaDB' socket: '/build/tmp.Mj9ll4tEmR/socket' port: 3306 MariaDB Server
<pie_>
but the socket doesnt exist where it says it does and so i cant connect to the server
Eromenos has quit [Remote host closed the connection]
<pie_>
oh...i see what happened....i added a sleep after backgrounding the server and that made it work because the subsequent requests were immeidately trying to connect to a server that wasnt fully up yet...
<{^_^}>
[nixpkgs] @delroth opened pull request #57313 → ghostscript: link against "systemwide" liblcms2 → https://git.io/fhje4
<pie_>
manveru: oh, this might have worked!: export MYSQL_UNIX_PORT="$mysqldatadir"/socket
<manveru>
:D
<pie_>
now im at the annoying part where the tests take a while to run, i should tell it to only do a subset but i havent figured out how to do that yet
ng0 has quit [Quit: Alexa, when is the end of world?]