<NemesisD>
i'm trying to build a docker image with nix that includes the compiled executables of my package. i can boot into nix-shell and cabal new-build my package fine, but if i set contents = [ (hpkgs.callPackage hpkgs.my-package {}) ], i get "Can't find source for Main in exec"
<clever>
yokyolu: its inside a let block, and only ever passed to withPackages, so you cant really access it
<clever>
Shados: do you have access to another machine with nix(os)?
emily has joined #nixos
nDuff has quit [Quit: zzz]
emily is now known as Guest22571
<clever>
Shados: `nixos-rebuild dry-run` should show a drv path at the very end, run `nix-copy-closure --to root@remotebox /nix/store/thatfile.drv`, then on the remote box, `nix-store -r /nix/store/thatfile.drv` to build it elsewhere
<clever>
and when its done, nix-copy-closure the result back the other way
<Shados>
clever: Yeah. In this case the reason the rebuild is having trouble is because overcommit is disabled on this system (for a good reason), and I can work-around it by temporarily allowing overcommit for the rebuild, but it's still annoying. I wish software were actually written to handle memory sanely -_-'.
<dckc>
So... I'm kinda winning... I've got all 5 parts of this java web app building and deployed in wildfly. I'm using a systemd dynamic user. I hope my deployment platform has those.
<NemesisD>
how does one feed a haskell package to dockerTools.buildImage such that the build executables are available on the path? putting the package in the contents list results in "can't find source for Main in exec", which makes it seem like its trying to compile the project within docker
<yokyolu>
clever: any ideas off the top your head?
<clever>
yokyolu: run ghc-pkg list?
<yokyolu>
within an .overridAttrs?
<clever>
yokyolu: not really possible to get the list at the nix level i think
<yokyolu>
clever: oh... time to give up and go to bed then :)
<yokyolu>
clever: thanks
* dckc
looks around; finds some good reasons to be wary of DynamicUser
* dckc
heads out...
<NemesisD>
what does callPackage even do
<clever>
,callPackage NemesisD
<{^_^}>
NemesisD: If a Nix file foo.nix starts with something like `{ stdenv, cmake }:`, you can build it with `nix-build -E '(import <nixpkgs> {}).callPackage ./foo.nix {}'`
<clever>
it will automatically figure out what args the file/function wants, and pass them from the right set
<yokyolu>
,env
winem_ has quit [Ping timeout: 250 seconds]
<NemesisD>
hmm
joedevivo has joined #nixos
nand0p has joined #nixos
valwal has joined #nixos
heatm1s3r has joined #nixos
mpickering has joined #nixos
wedens has joined #nixos
eddyb has joined #nixos
adulteratedjedi has joined #nixos
nkaretnikov has joined #nixos
sorear has joined #nixos
angerman has joined #nixos
elvishjerricco has joined #nixos
tazjin has joined #nixos
manveru has joined #nixos
marcinkuzminski has joined #nixos
<clever>
its getting late here, i should head off to bed
dongcarl has joined #nixos
georgyo has joined #nixos
gonz_ has joined #nixos
georgew has joined #nixos
ancarda has joined #nixos
ryantrinkle has quit [Ping timeout: 250 seconds]
htoc^ has quit []
<NemesisD>
lmao i was forgetting to add my executable source directory to my callCabal2nix.
hphs^ has joined #nixos
fusion809 has quit [Quit: Leaving]
yokyolu has quit [Ping timeout: 268 seconds]
pinkypie has joined #nixos
IslandUsurper has joined #nixos
Vskilet has joined #nixos
jak[m]1 has joined #nixos
ejpcmac has joined #nixos
WilliamHamilton[ has joined #nixos
craige[m] has joined #nixos
Ariakenom has quit [Quit: Leaving]
rcshm has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fhQzy
revtintin has joined #nixos
rcshm has quit [Client Quit]
rummik has joined #nixos
mikeplus64 has joined #nixos
NinjaTrappeur has joined #nixos
yorick has joined #nixos
vk3wtf has joined #nixos
benley has joined #nixos
hexa- has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fhQzh
pinkypie has quit [Ping timeout: 246 seconds]
rcshm has joined #nixos
<noonien>
hello folks
<noonien>
can i pass a list of sets to a builder in a derivation?
xkapastel has quit [Quit: Connection closed for inactivity]
<noonien>
to a builder shell
Denommus has quit [Ping timeout: 246 seconds]
<john3[m]>
How reliable is nixos as workstation?
ryantrinkle has joined #nixos
jluttine has quit [Ping timeout: 268 seconds]
<noonien>
how would you define "reliable"?
<gchristensen>
ie: what do you care about
<simpson>
john3[m]: It is my most reliable.
<john3[m]>
I mean to work each day in a work environment as a main desktop....
<samueldr>
my personal machines and work machine are all running NixOS
<gchristensen>
same
dbmikus__ has joined #nixos
<samueldr>
and personally, though I might be biased, wouldn't switch to anything else, at least, nothing not built upon the same ideas and foundations
<noonien>
nixos is not like other distros, you get to configure almost everything of it. so it's as stable as you make it
jluttine has joined #nixos
<noonien>
that being said, i use it as nixos on my workstation as well
<noonien>
s/it as /
<john3[m]>
Ok thanks. Basically I need a secure workstation (dell laptop) and the usual web browsing, email client, ssh to the servers, git, etc and with the features of nixos
<noonien>
i've installed nixos for the first time last week. i have setup an encrypted root, with zfs on top. i've never had either, and it was pretty easy as a nixos newb
<john3[m]>
yes exactly something like that. Thanks noonien
<noonien>
i've packaged my own software as well, it's super easy. i've done this on debian before, and it was not easy to say the least
<john3[m]>
I guess it does not support appimage
aleph- has quit [Ping timeout: 244 seconds]
<noonien>
the one i tried didn't work, however, there's a chance an app you're looking for is already in the nix store
Rusty1 has joined #nixos
silver has quit [Read error: Connection reset by peer]
camsbury has quit [Remote host closed the connection]
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
<{^_^}>
[nixpkgs] @fpletz merged pull request #55024 → airsonic: Add virtualHost option to set up nginx virtual host → https://git.io/fhyQZ
<{^_^}>
0. Sorry. 1. If you complain about PR being in limbo, always provide a number («I have an unmerged PR (#23924)…»), bot will print PR title and it might bring you an impulse-merge. 2. Please look up who commits similar work and ping these people (or request-review), keeping up with all the PRs is not really possible.
<samueldr>
point "0" here being the most important :/
doyougnu has joined #nixos
rcshm has quit []
acarrico has quit [Ping timeout: 268 seconds]
DrLambda has joined #nixos
<noonien>
how would one send a list of sets to a builder for it to iterate on?
<bpye>
Hey, I saw this note "Currently, NixOS containers are not perfectly isolated from the host system. This means that a user with root access to the container can do things that affect the host. So you should not give container root access to untrusted users.", are the specific holes documented anywhere?
<bpye>
Or is it the general, Linux containers aren't a security boundary concern
suspicious-egg has joined #nixos
suspicious-egg has left #nixos [#nixos]
<averell>
nixos-container is just a small wrapper script around systemd-nspawn
CcxWrk has quit [Ping timeout: 250 seconds]
ddellacosta has quit [Ping timeout: 246 seconds]
ddellacosta has joined #nixos
fusion809 has joined #nixos
CcxWrk has joined #nixos
work_ has joined #nixos
<{^_^}>
[nixpkgs] @zachcoyle opened pull request #55618 → gnu-cobol: enable on darwin → https://git.io/fhQ2R
work_ has quit [Quit: Connection closed for inactivity]
copumpkin has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
witchof01 has quit [Quit: WeeChat 2.2]
<alex_giusi_tiri>
leungbk: I don't think it would work like that, as far as I know. I think you would need to edit the nix package for ripgrep, or install an overlay or such, which provides pcre2 support...
witchof0x20 has joined #nixos
<leungbk>
@alex_giusi_tiri thanks!
<leungbk>
actually, the package definition does have some options for this, so i'm hoping it's simply a matter of me not passing the right args
<leungbk>
@alex_giusi_tiri yes, i'm looking at the package def in ${NIX_ROOT}/pkgs/tools/text/ripgrep/default.nix
<leungbk>
in the nix repo
<alex_giusi_tiri>
there is this effort, Spack, that I once stumbled upon, which allows specifying compilation flags and such directly on the command line, without any file for a definition, but, as far as I can tell, nix uses .nix files to describe packages, so I think that editing the .nix file is the only way... either directly and running `nixos-rebuild` or (I haven't tried this yet) using a overaly... so I don't think it would work to pass
<alex_giusi_tiri>
env...
<leungbk>
i see, thank you!
<alex_giusi_tiri>
so there has to be something in the .nix file to add/change/edit to add support for pcre2
Mateon3 has joined #nixos
Mateon1 has quit [Ping timeout: 240 seconds]
Mateon3 is now known as Mateon1
reinhardt has joined #nixos
reinhardt has quit [Remote host closed the connection]
reinhardt has joined #nixos
<alex_giusi_tiri>
it thing it could be a matter of just adding pcre2 to the first list of args, and to buildInputs
<leungbk>
okay, i'll check it out
rprije has quit [Remote host closed the connection]
[Leary] has joined #nixos
alex`` has joined #nixos
Lears has quit [Ping timeout: 240 seconds]
chimay has joined #nixos
slyfox_ has joined #nixos
Makaveli7 has joined #nixos
slyfox has quit [Ping timeout: 246 seconds]
gagbo has quit [Ping timeout: 240 seconds]
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<alex_giusi_tiri>
leungbk: I got somthing: you would need to add <cargoBuildFlags = ["--features 'pcre2'"];>. However it tells me that "error: Package `ripgrep v0.9.0 (file:///build/source)` does not have these features: `pcre2`"...
johanot has joined #nixos
<alex_giusi_tiri>
I think version 0.9.0 does not have it; maybe the master branch does
<{^_^}>
'functionArgs' requires a function, at /var/lib/nixbot/nixpkgs/master/repo/lib/trivial.nix:290:42
<srhb>
ottidmes: This is true for all builtin functions, right?
<ottidmes>
seems so, would have been awesome if it would have returned it though, I mean Nix should know this information, the error is also misleading this way
civodul has joined #nixos
<srhb>
ottidmes: I think it's an oversight, builtins.isFunction initially reported false for builtins too.
<ottidmes>
srhb: tryEval also fails to capture that error, so I cannot have my little program allow passing fetcher functions without going through a more complicated route (since we don't have a builtin for function pointer checking, which I kinda get, but still annoying that I cannot check, requires yet more workarounds)
<sphalerite>
I'm confused. When I run a terminal from i3, it has dmenu at the beginning of its $PATH. i3 itself doesn't, and I don't see any config that would lead to that. Any ideas why this would happen?
obadz has quit [Quit: WeeChat 2.3]
Glider_IRC_ has joined #nixos
obadz has joined #nixos
<LnL>
maybe dmenu has a wrapper that adds $out/bin to path?
<dramforever>
maybe your shell got the PATH from ~/.bashrc
knupfer has joined #nixos
cantstanya has quit [Remote host closed the connection]
cantstanya has joined #nixos
johanot has quit [Ping timeout: 244 seconds]
Glider_IRC__ has quit [Ping timeout: 246 seconds]
Makaveli7 has joined #nixos
<{^_^}>
[nixpkgs] @dtzWill opened pull request #55628 → openblas: fix config breakage introduced for configs using 'false' → https://git.io/fhQwl
<Taneb>
What could cause .drv files in the nix store being blanked?
kleisli has quit [Ping timeout: 245 seconds]
<srhb>
Taneb: Being blanked = It used to have contents, but now it doesn't?
<Taneb>
Yeah
<Taneb>
Might be due to crashes caused by PCI errors
<srhb>
FS corruption does seem a likely candidate for investigation.
<ottidmes>
that is the only syntax thing that still gets me sometimes in Nix, that the `or` keyword is non-greedy, I expect it to behave like if/then/else, yet I have to wrap the right-hand side
<siers>
if I need an older curl for a ruby gem, then if I don't want to fix upstream or use a fork right now, I should pin a nixpkgs and get only curl from that?
<srhb>
siers: curl might be a fast and small enough builds that you can just override it for that specific gem.
<srhb>
(Though I don't know if that's feasible in the ruby ecosystem)
e-user has joined #nixos
<siers>
right, but I get it through an older nixpkgs?
<siers>
I think it should be feasable
<srhb>
siers: I mean, you can, but you'll probably increase your closure size by quite a bit by doing so.
<dramforever>
I think srhb meant that you just get the file for the old curl
<dramforever>
Taneb: something like nix-store --verify-path /nix/store/*.drv should find them
<srhb>
you might need to use find and -exec if your store is reasonably large, but yeah :)
<{^_^}>
[nixpkgs] @nlewo merged pull request #55589 → nixos/dockerPreloader: guard the entire implemetation with mkIf on image list → https://git.io/fhQ0z
<srhb>
And if you have broken drvs, I'd suspect you have broken otherthings as well.
<srhb>
So --verify --check-contents --repair might be in order.
<siers>
srhb, Are you sure about overrideAttrs? Wouldn't a pkgs.callPackage oldPkgs.curl {} be easier and would achieve the same thing?
<{^_^}>
[nixpkgs] @spacekitteh opened pull request #55629 → Add maps to SC2 → https://git.io/fhQwD
<srhb>
siers: It is not the same thing. using oldPkgs (assuming this is an entire nixpkgs instantiation) would mean all of curls deps are those of oldPkgs, not of pkgs.
thc202 has joined #nixos
<hyper_ch2>
question: in Grub I have several previous generations. How can I find out which config files in /nix/store belong to a given generation?
<srhb>
siers: Using oldCurl = pkgs.curl.overrideAttrs ..., curls deps are that of your current pkgs.
<siers>
srhb, But curl derivation is a function, which gets deps handed down. So the callPackage from the newPkgs would hand it new deps, no?
knupfer has quit [Remote host closed the connection]
<srhb>
siers: Oh, yes.
<siers>
So I got it right?
<srhb>
siers: I believe so. :) The only difference is that the expression itself might have changed.
<siers>
Okay, but what would I have to write in place of the elipsis if I wanted to do it your way?
<spacekitteh[m]>
srhb: generally, how long between nixpkgs/master and being available on -unstable?
<siers>
ah
<srhb>
spacekitteh[m]: It depends on the general health of master and hydra itself. Currently we've been lagging by only a few days for a few weeks or so
<siers>
srhb, thanks, I'll try to fix it nao
<srhb>
spacekitteh[m]: Before that we had several weeks of delay. It varies a lot.
<sphalerite>
LnL: dmenu isn't involved at all, it's just i3 running st
<sphalerite>
dramforever: nope, nothing in the bashrc
<spacekitteh[m]>
oh neat
nschoe has joined #nixos
johanot has joined #nixos
knupfer has joined #nixos
kleisli has joined #nixos
balsoft has quit [Quit: Konversation terminated!]
balsoft has joined #nixos
<steveeJ>
is this the correct way of marking something broken on darwin? `broken = if stdenv.isDarwin then true else false;`
<tilpner>
steveeJ: Why not broken = stdenv.isDarwin?
random_yanek has quit [Ping timeout: 245 seconds]
Kakky has joined #nixos
<steveeJ>
tilpner: that sacrifices readability to me, but I was more wondering if maybe there's an array which lists brokenness per architecture or so.
balsoft has quit [Client Quit]
jasongrossman has quit [Ping timeout: 246 seconds]
balsoft has joined #nixos
sigmundv has joined #nixos
<steveeJ>
tilpner: I'll go with your suggestion anyway as you're more used to reading the nixpkgs codebase
<tilpner>
Not that I know. And there are 60 hits for "broken = stdenv", and just 1 for "broken = if"
knupfer has quit [Remote host closed the connection]
<spacekitteh[m]>
how can i provide a password to fetchzip?
<tilpner>
I don't see an easy way to do that
<tilpner>
(And the hard way is technically cheating: Override the unzip arg to fetchzip with a wrapped unzip that provides the password argument)
<hyper_ch2>
hmmmm, I just geneatred a new geneartion with nixos-rebuild boot --> so it's not active yet. How could I view the actual generated config files for this generation?
<spacekitteh[m]>
tilpner: bah
<srhb>
hyper_ch2: You mean like /etc ? cd into the nixos-system-hostname-ver store path and start exploring.
<LnL>
sphalerite: oh, you didn't start the xterm with dmenu?
<hyper_ch2>
srhb: ah, thanks
<sphalerite>
LnL: no, I just have a binding for `exec st`
<tilpner>
spacekitteh[m]: You could also use fetchurl and do the unzipping yourself in postFetch
<srhb>
siers: I can't tell from that what your nixpkgs rev is :)
<siers>
oh, sorry - that rev :) I'm on 18.09
winem_ has quit [Ping timeout: 268 seconds]
<srhb>
siers: nix edit nixpkgs.curl
<srhb>
siers: You'll see patches = [ ...
<siers>
whoa
<siers>
I must've messed up the revs when looking at github
<siers>
yes, I did
<srhb>
siers: nix edit helps a lot by being in sync always..
<siers>
anyhow, that's a cool command!
<srhb>
siers: in overrideAttrs, you can manipulate the patches attr.
balsoft has joined #nixos
<tilpner>
spacekitteh[m]: That's of course the proper solution. You can still use the overrideAttrs until your PR reaches whatever channel you're using though (or overlay it locally, even better)
knupfer has quit [Ping timeout: 272 seconds]
<spacekitteh[m]>
tilpner: It actualy looks more complicated to do than I first though so I just created an issue
nD5Xjz has quit [Ping timeout: 245 seconds]
<siers>
srhb, nice!
<tilpner>
spacekitteh[m]: Because of unpackFile?
<spacekitteh[m]>
yep
rauno has quit [Ping timeout: 240 seconds]
rauno has joined #nixos
rycwo has joined #nixos
ckauhaus_ is now known as ckauhaus
ThatDocsLady has joined #nixos
<{^_^}>
[nixpkgs] @erikarvstedt opened pull request #55634 → imagemagickBig: mark as broken → https://git.io/fhQo0
<clefru>
srhb: wow, nix edit is awesome. Didn't know it exists!
tmaekawa has joined #nixos
Jetien__ has quit [Quit: Leaving]
nD5Xjz has joined #nixos
Jetien has joined #nixos
<srhb>
clefru: It's even more awesome if you're using a local nixpkgs checkout instead of channels :)
Kakky has quit [Remote host closed the connection]
<siers>
qyliss, you said it's easy to add new ruby versions -- it doesn't seem so, unless I have my own checkout. :(
<{^_^}>
[nixpkgs] @dotlambda pushed commit from @dtzWill to master « certbot: 0.30.2 -> 0.31.0 (#55601) »: https://git.io/fhQoN
Kakky has joined #nixos
<siers>
isn't this very odd? https://clbin.com/WUEFv it wants hash 00000 instead of the real one, which it complained about earlier
Yaniel has quit [Excess Flood]
random_yanek has joined #nixos
random_yanek has quit [Max SendQ exceeded]
Yaniel has joined #nixos
<ottidmes>
siers: in the new hash mismatch error the hashes are swapped, the "wanted" and "got" are a bit ambiguous, I agree
<clever>
wanted is what you put into the nix expr
random_yanek has joined #nixos
<clever>
got is what it actually downloaded
<ottidmes>
yep, but why I find it a bit ambiguous is that its also fair to interpret it as "wanted to get hash X from you, but got hash Y from you", but the meaning here is "wanted to get hash X from the download, but got hash Y from the download"
<ottidmes>
from you = what you passed the fetcher
<clever>
i tend to always pick the hash that has more entropy
<clever>
so if you have a string of 000's, its the wrong one
<clever>
and i use replace mode in my editor to 0 out a few digits, any time i change a rev
<ottidmes>
lol, yeah, in that case it should be obvious
<siers>
if it will build I will by very amazed
<siers>
I have no hopes
<infinisil>
Imagine sombody happens to find an all-0 sha265 hash by chance
<__monty__>
Why do the pandoc and cat calls in this expression generate files with different hashes every time it's evaluated? http://ix.io/1AQ6
<gchristensen>
__monty__: use diffoscope to find out? :)
ub has joined #nixos
<clever>
__monty__: ${src}/${input} is the problem
<clever>
__monty__: you are converting src to a string too early, so its based on the hash of the entire ./. without filtering
<clever>
you want ${src + "/${input}"}
ubert has quit [Ping timeout: 244 seconds]
<clever>
which is now based on the hash of that 1 file
alex``` has joined #nixos
Makaveli7 has quit [Quit: Leaving]
silver has joined #nixos
hyper_ch2 has quit [Quit: Page closed]
rprije has quit [Ping timeout: 244 seconds]
Kakky has quit [Quit: Leaving]
davidak has joined #nixos
init_6 has joined #nixos
<{^_^}>
[nixpkgs] @teto opened pull request #55635 → neovim: add standalone module to configure it → https://git.io/fhQKw
eadwu has joined #nixos
eadwu has quit [Client Quit]
agander has quit [Ping timeout: 272 seconds]
ub has quit [Quit: Leaving]
ubert has joined #nixos
<__monty__>
clever: Hmm, when I do that I get an error and I can't figure it out: `error: invalid character ' ' in name 'Chapter 1 - Grey days at Farnfoss.odt'` Why would it work with ${src}/${input} but not ${src + "/${input}"}?
<__monty__>
Also, I don't get why that'd get a different stable hash tbh.
<clever>
__monty__: ${src} names it after the directory that ./. is in, but bases the hash on the entire contents of ./.
<clever>
__monty__: ${src + "/${input}"} is identical to ./file.odt, so it names it after that file
<clever>
but if that file has spaces in its name...
<__monty__>
Why are spaces so problematic?
<clever>
nix doesnt allow spaces in the top-level names within /nix/store/
<clever>
i think the only solution is to use filterSource that targets 1 file in the dir
<clever>
so you get /nix/store/foo/Chapter 1 - Grey days at Farnfoss.odt
<__monty__>
Also, why does src = ./. work but './${input}' or '././${input}' doesn't?
dramforever has quit [Ping timeout: 250 seconds]
<clever>
./. at a nix level, is a special value of type path, and when you try to treat it as a string, it magically turns into /nix/store/hash-name
<clever>
input is just the name of a file, and nix wont know to copy it, so you must append it to a path like ./.
<clever>
__monty__: the singleOut function here takes a dir like ./. and a path like input, and produces a /nix/store/foo/Chapter 1 - Grey days at Farnfoss.odt
<srhb>
builtins.path can also be nice for these things.
<clever>
siers: but likely wont allow spaces still
<clever>
srhb: ^^
<srhb>
clever: Right, but it allows you to trivially set the name of the store path.
<__monty__>
No way to map over a string? I just want a string of ='s as long as another string.
hcs^ has joined #nixos
hcs^ has quit [Max SendQ exceeded]
hcs^ has joined #nixos
hcs^ has quit [Max SendQ exceeded]
hcs^ has joined #nixos
hcs^ has quit [Max SendQ exceeded]
stites has joined #nixos
pie_ has joined #nixos
<pie_>
calling an expression with nix-build with -p instead of -E by accident, like with nix-build -v -p 'with import <nixpkgs> {}; callPackage ./wikidpad.nix {}' leads to an unhelpful error message https://bpaste.net/show/acb5462d2788 "builder for '/nix/store/7afp7p85m8l6by5q0as45d6yj37wzg2p-shell.drv' failed to produce output path '/nix/store/nkavskhrmdgdcn6r084ly1bkf5zkh5pq-shell'"
agander has joined #nixos
<clever>
pie_: note, -p already imports nixpkgs for you
<clever>
it dynamically jams your list of packages into the buildInputs of a runCommand
<clever>
and the runCommand will run "" to build $out (it will never work)
nD5Xjz has quit [Ping timeout: 245 seconds]
<pie_>
thanks i will look at that
<clever>
builder for '/nix/store/n0c2pbp0xsrfcj3z6fa02998plsnaf6s-shell.drv' failed to produce output path '/nix/store/zhvllv84l8dcldw1m7h5sapa9nj3ypj9-shell'
<clever>
and the error makes perfect sense
<clever>
"" does nothing, so of course it doesnt make $out
knupfer has joined #nixos
<clever>
the problem, is that nix-build and nix-shell are the same binary
nD5Xjz has joined #nixos
<pie_>
clever: i got my wiki stuff to build, i have no idea what was causing the segfault but i mmust have been doing something wrong
<bbarker2>
clever, so if I understand correctly, we have to install and possibly build many dependencies just to pull in some environment variables in the nix-shell environment?
<clever>
bbarker2: why do you want that env var set?, what are you trying to do?
rauno has quit [Ping timeout: 246 seconds]
<bbarker2>
clever, i was just using wireshark as an example I found; in the actual package i'm working on, there's an environment variable that needs to be set for it to run correctly
<{^_^}>
[nixpkgs] @peti pushed 3 commits to haskell-updates: https://git.io/fhQPC
<bbarker2>
davidak, i didn't seem to have the issue (posted on on the issue)
<Taneb>
The Haskell package set is broadly based on stackage lts, right?
<davidak>
bbarker2 thanks. then it was fixed in the meantime :)
kreisys has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
init_6 has quit [Ping timeout: 244 seconds]
mvnetbiz7479 has joined #nixos
<{^_^}>
[nixpkgs] @bjornfor pushed 2 commits to release-18.09: https://git.io/fhQXd
mvnetbiz74 has quit [Ping timeout: 246 seconds]
<elvishjerricco>
Taneb: Essentially. Plus all the non-stackage packages at their latest versions
drakonis has joined #nixos
<elvishjerricco>
So about 3/4 IIRC is uncurated
<bbarker2>
is it possible to call makeWrapper from a shell script. e.g. want to use it in a script referenced like: postInstall = builtins.readFile ./postInstall.sh; ?
uvnikita has joined #nixos
uvnikita has quit [Client Quit]
uvnikita has joined #nixos
uvnikita has quit [Client Quit]
knupfer has quit [Remote host closed the connection]
ThatDocsLady has quit [Remote host closed the connection]
ThatDocsLady has joined #nixos
dermetfan has joined #nixos
<bbarker2>
alternatively, how does one escape an * in a nix expression?
<gchristensen>
how do you want to use it?
<gchristensen>
I've never had the need to escape a *
<bbarker2>
e.g. for wf in ${WRAP_FILES[*]}
ikitat has joined #nixos
<bbarker2>
(in a postInstall string)
<gchristensen>
that is a bash expression, not Nix -- so it'd be part of a string. if you had ''foo${WRAP_FILES[*]}'' you'd do: ''foo''${WRAP_FILES[*]}''
<clever>
related, there was a bug in nixpkgs a while back, where an escaped string was moved from a '' to a " string, but it was also behind an if statement
<clever>
so it turned into a nix var reference, and didnt fail because the if bypassed it 90% of the time
danielrf has joined #nixos
knupfer has quit [Ping timeout: 272 seconds]
fusion809 has quit [Remote host closed the connection]
<gchristensen>
> ''foo''${WRAP_FILES[*]}''
<{^_^}>
"foo${WRAP_FILES[*]}"
fusion809 has joined #nixos
waleee has joined #nixos
<bbarker2>
ah, have to escape the $:, thanks - tricky
<simpson>
https://github.com/NixOS/nixpkgs/pull/55182 has grown quite a bit. I appear to have implicated Haskell and Agda packages somehow even though I'm working within the Python subsystem.
<Twey>
If I have a stdenv, how can I add an environment variable to every derivation built with that stdenv?
switchsox has quit [Remote host closed the connection]
<Twey>
I was just overriding mkDerivation (stdenv // { mkDerivation = args: args // { MY_COOL_VARIABLE = 5; }; }) but it seems that as soon as someone calls .override on that it will rewrite mkDerivation and my changes are lost
ryantrinkle has quit [Ping timeout: 258 seconds]
<{^_^}>
[nixpkgs] @dtzWill merged pull request #55133 → boehmgc{,_766}: add space before appending to CFLAGS (only done w/musl) → https://git.io/fhSiU
<fearlessKim[m]>
trying to get "into the breach" working with proton. Nothing happens when trying to start from steam. How can I get the proton binary to start "breach.exe" ? any advice/manual on how to debug proton etc.
etu has quit [Ping timeout: 250 seconds]
<Ankhers>
I'm trying to run a a bash command for each element in a list in my configure phase. What are my options for something like that? I tried to use ${list} and it complains about not being able to coerce a list to a string.
<clever>
fearlessKim[m]: first, does any other proton game work? does steam print something on stdout when you run it?
<clever>
Ankhers: for x in ${toString list}; do
<Ankhers>
clever: Thanks!
<gchristensen>
you could also do the iteration in Nix and emit a -funroll'd loop :P
<fearlessKim[m]>
clever: it's my first and only proton game so far
<rcshm>
hi i have installed arangodb but i couldn't find any instruction on the way to run it. i am getting the file is not writeable error and i couldn't find any document on this.
<rcshm>
could anyone show me where i should look for the documentation. thanks for your help.
<fearlessKim[m]>
clever: fantastic the new proton version works !
<ottidmes>
I assume my package needs to go in systemPackages if I want its bash completions to show up, considering its installed in $out/etc/bash_completion.d, is there an easier way to test my completions while working on these completions than just nixos-rebuild'ing everytime?
<{^_^}>
[nix] @edolstra merged pull request #2626 → Treat plain derivation paths in context as normal paths. → https://git.io/fhniZ
<ottidmes>
Ankhers: that information is probably lost, in general a derivation only has a name, which includes its version, although nowadays pname/version is also officially supported by mkDerivation, but still, if name/pname would have "hex-source-hex_core" that is all you got, unless of course you are the one making the derivation, than you should be able to just change its name
dermetfan has quit [Ping timeout: 245 seconds]
nschoe has quit [Ping timeout: 244 seconds]
<ottidmes>
rcshm: you should check the arangodb manuals, it probably has a setting allow you to set the directory.
<Ankhers>
ottidmes: Thanks. I thought that may be the case.
<Ankhers>
What are my options for using ${BASH_VAR} syntax within a nix file?
<ottidmes>
Ankhers: if you are certain the prefix is always hex-source and the version begins with a digit, it should be easy enough to extract though
<ottidmes>
Ankhers: inside '' string '' you can use ''${bash_var}
<ottidmes>
,escape'' Ankhers
<{^_^}>
Ankhers: '' two single quotes: ''' bash curly bois: ''${} newline: ''\n tab: ''\t any character x: ''\x ''
ubert has quit [Read error: Connection reset by peer]
<Ankhers>
ottidmes: Unfortunately I am not 100% just yet. I still need to do a bit of testing. Thanks for all the help so far!
random_yanek has joined #nixos
<ikitat>
In the Nixpkgs manual Python section it makes a point that it's important to determine if a Python package is mostly and app or a library when considering packaging. I seem to have a package that's both. aws-sam-cli (0.11.0) depends on aws_lambda_builders (which I'm attempting to package) both as a library (importing modules) and as an executable (there is a cli interface to it). What should the packaging strategy be in this case? My b
<ikitat>
est guess is to put it under development/python-modules and then again under development/tools. Does that seem right? I'm afraid it's a bit redundant, any advice?
<ottidmes>
ivegotasthma: likely a mismatch between the channel you updated and the channel used by whatever means you used to install it
<ottidmes>
ivegotasthma: like maybe you installed with nix-env which uses a channel defined by your user, but you updated the channels of the root user, something like that
<ivegotasthma>
I've installed using home-manager
<ivegotasthma>
nix-channel --list shows only home-manager
<ivegotasthma>
If I install using `nix-env -iA nixos.youtube-dl` the version is stale too
<ottidmes>
then try: sudo su, and then doing nix-channel --update (not sure if `sudo nix-channel --update` works too, better to rule it out and login as root first)
<ivegotasthma>
but the `nixos` namespace **is** there
<samueldr>
if nix-channel --list doesn't have the nixos channel (and it's fine) updating your user's channels won't update the one providing the nixos channel; which is probably under root's
<ottidmes>
from what I remember nix-channel of the user defaults to that of root
<ottidmes>
ivegotasthma: ^ what samueldr said
<ivegotasthma>
samueldr: ottidmes: okay, that's true, listing the channels under root shows the nixos main channel.
<ivegotasthma>
I've updated it
<ivegotasthma>
should I update from the user now with `nix-ev --upgrade`?
<samueldr>
and yeah, the nixos channel is expected to be under root's and to *not* have it duplicated in the user's, as nixos-rebuild only uses root's nixos' channel (unless you do specific things)
work_ has joined #nixos
<samueldr>
ivegotasthma: probably
newtonix has joined #nixos
nschoe has joined #nixos
<ivegotasthma>
samueldr: thanks
Vitalii has joined #nixos
nschoe has quit [Read error: Connection reset by peer]
<__monty__>
How do I make a default.nix with multiple potential outputs?
<jabranham>
is pandas failing in the unstable channel for everyone else too?
<clever>
__monty__: put an attrset in it, { key = thing1; key2 = thing2; }
newtonix has quit [Quit: Page closed]
bbarker2 has joined #nixos
<rcshm>
ottidmes, thanks. i can not start arangodb as a service and it keeps getting the errors as mentioned when i am using arangodb as in the document.
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
shibboleth has joined #nixos
<ottidmes>
rcshm: the service fails due to the unwriteable errors, or something else?
<rcshm>
there is no option for me to start it as a service.
aleph- has joined #nixos
e-user has quit [Remote host closed the connection]
<rcshm>
i saw a project which is not complete for doing that.
mobile_c_ has quit [Read error: Connection reset by peer]
<Vitalii>
Can anyone help: I am trying to download nix channel tarball with command: nix-instantiate -I nixpkgs=s3://bucket-in-us-east-2/nix-tarballs/j45dsfgrrthrth454h45h345h334h45h-channel.tar.gz?region=us-east-2 --eval --expr "<nixpkgs>" it fails with "Unable to parse ExceptionName: PermanentRedirect Message: The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpo
MasseR has joined #nixos
<ottidmes>
rcshm: so there seems no easy way out, unless you are OK with doing the start call explicitly yourself, there should be plenty of examples in nixpkgs from which you can learn how to make your own systemd service
balsoft has quit [Ping timeout: 250 seconds]
bbarker2 has quit [Ping timeout: 258 seconds]
Philonous has joined #nixos
pita has joined #nixos
<Vitalii>
Vitali
timor has quit [Quit: Leaving]
<ottidmes>
Vitalii: maybe this works: nix eval --raw '(fetchTarball "s3://bucket-in-us-east-2/nix-tarballs/j45dsfgrrthrth454h45h345h334h45h-channel.tar.gz?region=us-east-2")'
<Vitalii>
ottidmes, thanks, will try, and let you know the result
<__monty__>
Any way to have an attrset with a default target?
<ottidmes>
default target?
nschoe has joined #nixos
winem_ has quit [Ping timeout: 258 seconds]
dermetfan has joined #nixos
<ottidmes>
I guess you mean, having it evaluate to one of the attribute names if none have been specified? seems asking for trouble, or what do you mean?
ThatDocsLady has quit [Ping timeout: 272 seconds]
knupfer has quit [Remote host closed the connection]
<ottidmes>
__monty__: basically Nix does not auto coerce, so AFAIK this is not possible, or explain some more what you mean exactly
<__monty__>
You've answered the question.
<Vitalii>
ottidmes, the same issue
<{^_^}>
[nixpkgs] @johanot opened pull request #55649 → nixos/flannel: add kubernetes as storage backend (and fix test) → https://git.io/fhQ95
<__monty__>
Should this be a set of derivations or a derivation containing a set?
nschoe has quit [Read error: Connection reset by peer]
<Vitalii>
copumpkin: Any thoughts?
jabranham has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
<Vitalii>
ottidmes: the same issue
<copumpkin>
Vitalii: doesn't the ?region=us-east-2 go after the bucket part of the url?
<copumpkin>
maybe not
<clever>
__monty__: you can do derivation1 // { key1=..; key2=...; }
<copumpkin>
I haven't tried adjusting region in Nix's S3 support
<clever>
__monty__: do omiting -A refers to derivation1
cswl has joined #nixos
<ottidmes>
clever: __monty__: rather than drv // attrs, you probably want to use passthru, but yes, that is possible
<rcshm>
ottimes, thanks. can you point me to a specific one in nixpkgs where i can replicate on?
v0|d has joined #nixos
<__monty__>
Hmm, and what if key2 requires derivation1 as a buildInput?
balsoft has joined #nixos
<clever>
__monty__: define all 3 derivations in a let block first
<Vitalii>
copumpkin: Did you mean like this: "s3://bucket-in-us-east-2?region=us-east-2/nix-tarballs/j45dsfgrrthrth454h45h345h334h45h-channel.tar.gz"? If so, it doesn't work either.
bbarker2 has joined #nixos
<copumpkin>
actually, just make s3://bucket-in-us-east-2?region=us-east-2 your binary cache path
<rcshm>
ottimes, thanks. let me check that out.
<copumpkin>
oh you didn't want a binary cache
<copumpkin>
sorry
balsoft has quit [Read error: Connection reset by peer]
<copumpkin>
fetchs3 is a bit of a hack unfortunately
<__monty__>
Why does it complain about the file not existing for epub but not for md?
<copumpkin>
I can say it because I wrote it :P
<copumpkin>
passing in explicit creds gets them dumped to .drvs in the store, which isn't ideal
tA has joined #nixos
rycwo has quit [Read error: Connection reset by peer]
<copumpkin>
and not passing them in uses instance metadata service, which is kind of iffy to expose to builders in the first place
polman has quit [Ping timeout: 246 seconds]
sigmundv has quit [Ping timeout: 244 seconds]
rycwo has joined #nixos
<LnL>
copumpkin: hi! have not seen you around in a while
<copumpkin>
hi :) I haven't been around in a while!
balsoft has quit [Ping timeout: 245 seconds]
polman has joined #nixos
kreisys has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ikitat has joined #nixos
<clever>
copumpkin: which is why i only recomend using it with IAM instance profiles
<copumpkin>
well on that, I've often been on the fence about exposing those to builders at all
<copumpkin>
on my local nix build infra, I actively block builder access to the 169 addresses
<copumpkin>
it's sort of incidental that they have access to those creds, and IMO they shouldn't really
<clever>
yeah, thats also a security thing ive been wary of
<clever>
fixed-output can basically do whatever it wants to the LAN
mobile_c_ has joined #nixos
<achilles>
Hi! I need some help. In the build phase of a derivation, I get this error: `sorry, unimplemented: 64-bit mode not compiled in`. I'm using gcc5, and it seems it cannot build for x86_64, right? It's strange, since the arch is x86_64, and I'm not aware of any configuration to build for 32b...
<catern>
blah, the Python auto-update stuff updated a library, which broke the only dependency of that library
<catern>
i'm pretty unenthusiastic about this auto-update stuff
<pinkypie>
can i mount .out to somewhere i need in shell.nix?
pbb has joined #nixos
<catern>
if they're auto-updating, they should be running the builds of all the dependencies! otherwise they shouldn't update!
<pinkypie>
can i mess with filesystem in shell.nix?
<catern>
it really diminishes the value of nixpkgs as a *working* distribution, when it's broken all the time... super annoying...
kreisys has joined #nixos
azdle has quit [Read error: Connection reset by peer]
johnnyfive has joined #nixos
alex``` has joined #nixos
grastello has joined #nixos
sakalli_ has joined #nixos
rycwo has quit [Ping timeout: 258 seconds]
mvnetbiz747971 has joined #nixos
mvnetbiz7479 has quit [Ping timeout: 246 seconds]
sakalli_ has quit [Client Quit]
<emily>
catern: to be fair, "unstable" is in the name
<clever>
pinkypie: shell.nix cant really do filesystem level things
<matthewbauer[m]>
catern: yeah we need more people watching hydra jobs. it's usually pretty obvious when one of these breaks things just by looking at "newly failing jobs"
Duckle has joined #nixos
<catern>
(er, I said "dependency" above but I meant "dependent")
<Duckle>
Hey there. I'm having some wifi woes trying to install nixos :)
<catern>
matthewbauer[m]: well I mean, they should be doing the build before pushing
polman has quit [Ping timeout: 246 seconds]
<catern>
like, maybe gchristenbot could have some opt-in "build all dependents" thing?
<matthewbauer[m]>
I dunno... IMO unstable should have the latest version of every package. If it breaks things it's not the depended on package's fault
<catern>
which automated updates could set, because no human is actually paying attention
* gchristensen
disagrees with that "O"
<Duckle>
I'm using the graphical installer, and have entered the credentials for my home network, but dmesg is just complaining about "deauthenticating"
<gchristensen>
also, ofborg is not hydra and not really capable of that much building
<Duckle>
and wlp1s0: link is not ready
<catern>
ok, fair
<catern>
gchristensen: what in particular did you disagree with?
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
polman has joined #nixos
<gchristensen>
nixpkgs-unstable shouldn't inherently be the latest of everything
<gchristensen>
it should still mostly work
<catern>
yep, agreed
<gchristensen>
(but it is unstable)
<LnL>
heh
<pbb>
hmpf. I should really write an auto updater for this damn flash player. every time I try to install it the link is broken.
<catern>
if you want the absolute latest of everything I think that's more of a pypi2nix job, having an actual packaging step where you do some cursory validation
<catern>
is nice
<catern>
blah, I guess I should sign up for hydra emails... how do I opt in to hydra emailing me when my packages fail to build on master?
reinhardt has joined #nixos
<catern>
(or is that on by default and I just have it sent to my broken email address oops)
<{^_^}>
[nixpkgs] @LnL7 opened pull request #55659 → perlPackages.IOTty: fix darwin sandbox build → https://git.io/fhQQs
polman has quit [Read error: Connection reset by peer]
polman has joined #nixos
<clever>
catern: i think it always emails the meta.maintainers
<LnL>
hydra emails are still disabled AFAIK
phreedom has quit [Remote host closed the connection]
phreedom has joined #nixos
<__monty__>
default.nix with the new epub attribute http://ix.io/1ASl , error http://ix.io/1ASk Why does it error on the epub but not the md?
<{^_^}>
[nixpkgs] @catern opened pull request #55660 → pythonPackages.contextvars: relax constraint on immutables version → https://git.io/fhQQC
<NemesisD>
i've put assert false over the overrides i give to mkDerivation and they seem to be evaluated, but not respected it seems
achilles has quit [Ping timeout: 256 seconds]
juliendehos has quit [Quit: Leaving]
noonien has joined #nixos
<noonien>
hello folks
<noonien>
what are the effects of the downloadToTemp argument to fetchurl? i mean, i understand it downloads to $TMP, but why would someone want this?
<clever>
noonien: i think its for when you want to mutate the artifact with a postfetch script
<Duckle>
hmm, any idea on how to get wifi connected in the 18.09 installer?
<noonien>
does postfetch not work without it?
<srhb>
noonien: I think the only purpose is avoiding the deletion if you have to do postprocessing anyway (so as to not leave duplicate garbage in $out)
<srhb>
noonien: I don't think it's any more fancy or justifiable than that.
polman has joined #nixos
<srhb>
NemesisD: Looks good to me. how are you testing?
<noonien>
I see. I ask because i'm trying to download multiple files when creating a derivation, without doing a fetchurl for each one (since i don't want them in the nix store. I currently have to implement my own fetcher, which duplicates most of fetchurl's functionality
<pinkypie>
nix-build fails with ...:No space left on device
<Ankhers>
I have derivations A and B. In order for A to build, I need B to be in a specific directory inside A. What is best practice for something like this? I can obviously use cp to copy the files over during A's build. Is there a better option here?
<srhb>
pinkypie: Are you not actually out of space?
<pinkypie>
but i have all the storage i need
<srhb>
Ankhers: Symlink?
<pinkypie>
srhb: now
<pinkypie>
nope*
<srhb>
pinkypie: Not in /tmp either?
<noonien>
pinkypie: what filesystem?
<srhb>
NemesisD: Just confirmed by comparing the build of vector from hpkgs.vector vs pkgs.haskellPackages.vector
<pinkypie>
cp: error writing 'dev-nix/.stack-work-prof/install/x86_64-linux/ghc-8.4.4/8.4.4/lib/x86_64-linux-ghc-8.4.4/lister-0.0.0.1-2kaAXRy2OyZ8ifFyIT5YCf/libHSlister-0.0.0.1-2kaAXRy2OyZ8ifFyIT5YCf.a': No space left on device
<Ankhers>
srhb: Right. I meant to add that to my question. Are symlinks the preferred option here?
<pinkypie>
noonien: i figure it /home
<pinkypie>
it's*
knupfer has joined #nixos
<noonien>
is it btrfs by any chance?
drewr has quit [Remote host closed the connection]
<WhittlesJr>
Hey! I'm interested in running deis on NixOS. The project was abandoned by its original owner and taken up in a fork under a new team. The package in nixpkgs references the old fork. If I wanted to package the new one, should I "update" the current deis package or should I start a new package?
<immae>
WhittlesJr: if the package name changed (as is the case here), it seems reasonnable to package with the new name, isn’t it?
das_j_ has joined #nixos
peel_ has joined #nixos
spacefrogg_ has joined #nixos
mbrgm_ has joined #nixos
srhb- has joined #nixos
Shados_ has joined #nixos
tboston_ has joined #nixos
ZeDestructor_ has joined #nixos
xvnvx- has joined #nixos
hyper_ch_ has joined #nixos
hyper_ch_ has joined #nixos
darkf_ has joined #nixos
pmade has joined #nixos
dermetfan has quit [Ping timeout: 240 seconds]
sgraf_ has joined #nixos
samrose_ has joined #nixos
_fusion809 has joined #nixos
mightyby1e has joined #nixos
cswl_ has joined #nixos
gerschtli1 has joined #nixos
{^_^} has quit [Ping timeout: 240 seconds]
Guest4450 has quit [Ping timeout: 240 seconds]
tboston has quit [Ping timeout: 240 seconds]
sgraf has quit [Ping timeout: 240 seconds]
darkf has quit [Ping timeout: 240 seconds]
drakonis has quit [Ping timeout: 240 seconds]
danielrf has quit [Ping timeout: 240 seconds]
unacceptable has quit [Ping timeout: 240 seconds]
Supersonic has quit [Ping timeout: 240 seconds]
mbrgm has quit [Ping timeout: 240 seconds]
mightybyte has quit [Ping timeout: 240 seconds]
mkoenig has quit [Ping timeout: 240 seconds]
das_j has quit [Ping timeout: 240 seconds]
Asmadeus has quit [Ping timeout: 240 seconds]
tv has quit [Ping timeout: 240 seconds]
gerschtli has quit [Ping timeout: 240 seconds]
garbas has quit [Ping timeout: 240 seconds]
aswanson has quit [Ping timeout: 240 seconds]
samrose has quit [Ping timeout: 240 seconds]
akapav has quit [Ping timeout: 240 seconds]
ma27 has quit [Ping timeout: 240 seconds]
sphalerite has quit [Ping timeout: 240 seconds]
hyper_ch has quit [Ping timeout: 240 seconds]
rain1 has quit [Ping timeout: 240 seconds]
anton_ has quit [Quit: No Ping reply in 180 seconds.]
<noonien>
pinkypie: ^
lopsided98 has quit [Remote host closed the connection]
akapav has joined #nixos
srhb has quit [Read error: Connection reset by peer]
dbmikus__ has quit [Ping timeout: 240 seconds]
cswl has quit [Ping timeout: 240 seconds]
fusion809 has quit [Ping timeout: 240 seconds]
elibrokeit has quit [Read error: Connection reset by peer]
andi- has quit [Ping timeout: 240 seconds]
Shados has quit [Ping timeout: 240 seconds]
stigo has quit [Ping timeout: 240 seconds]
devalot has quit [Ping timeout: 240 seconds]
xvnvx has quit [Ping timeout: 240 seconds]
Guest6215 has quit [Ping timeout: 240 seconds]
polar1 has quit [Ping timeout: 240 seconds]
ckauhaus has quit [Ping timeout: 240 seconds]
Vskilet has quit [Ping timeout: 240 seconds]
ejpcmac has quit [Ping timeout: 240 seconds]
Barnabas[m] has quit [Ping timeout: 240 seconds]
zgrep has quit [Ping timeout: 240 seconds]
Czen has quit [Ping timeout: 240 seconds]
peel has quit [Ping timeout: 240 seconds]
ZeDestructor has quit [Ping timeout: 240 seconds]
peter2121[m] has quit [Ping timeout: 240 seconds]
abcrawf has quit [Ping timeout: 240 seconds]
spacefrogg has quit [Ping timeout: 240 seconds]
FRidh[m] has quit [Ping timeout: 240 seconds]
pmade is now known as devalot
ZeDestructor_ is now known as ZeDestructor
sgraf_ is now known as sgraf
darkf_ is now known as darkf
srhb- is now known as srhb
hyper_ch_ is now known as hyper_ch
{^_^} has joined #nixos
polar1 has joined #nixos
peel_ is now known as peel
ztrawhcse has joined #nixos
ckauhaus_ has joined #nixos
cswl_ is now known as cswl
Asmadeus has joined #nixos
zgrep has joined #nixos
Supersonic has joined #nixos
FRidh[m] has joined #nixos
garbas has joined #nixos
tv has joined #nixos
abcrawf has joined #nixos
anton has joined #nixos
ma27 has joined #nixos
ejpcmac has joined #nixos
peter2121[m] has joined #nixos
Barnabas[m] has joined #nixos
mbrgm_ is now known as mbrgm
<WhittlesJr>
immae: The package name hasn't exactly changed, actually. The underlying `deis` tool is the same, but now it's at a 2.XX.X version. https://github.com/deis/workflow
lopsided98 has joined #nixos
Vskilet has joined #nixos
mkoenig has joined #nixos
drakonis has joined #nixos
sphalerite has joined #nixos
anton is now known as Guest55981
Czen has joined #nixos
aswanson has joined #nixos
stigo has joined #nixos
Guest6215 has joined #nixos
danielrf has joined #nixos
andi- has joined #nixos
rain1 has joined #nixos
tg has quit [Ping timeout: 246 seconds]
LogicAside is now known as ThatOtherGuy
jtcs has quit [Ping timeout: 246 seconds]
zupo has joined #nixos
Guest11902 has quit [Ping timeout: 272 seconds]
jtcs has joined #nixos
kgz has quit [Ping timeout: 250 seconds]
rydnr has joined #nixos
tg has joined #nixos
Guest22204 has quit [Quit: Leaving.]
Ariakenom has joined #nixos
<catern>
is there any safe way to inherit a setup hook or something? I'd like to make the pkgs.pythonPackages.pkgconfig package have the same setupHook as pkgs.pkg-config, but will they both get run if they're both in buildInputs?
shibboleth has joined #nixos
fendor_ has joined #nixos
<catern>
or is the hooks setup smart enough to deduplicate hooks by name or something?
sakalli_ has joined #nixos
ddellacosta has quit [Ping timeout: 258 seconds]
ddellacosta has joined #nixos
juliendehos has joined #nixos
fendor has quit [Ping timeout: 272 seconds]
sakalli_ has quit [Client Quit]
kgz has joined #nixos
Lears has joined #nixos
polman has quit [Ping timeout: 246 seconds]
<Ankhers>
Using a symlink to put derivation B into a subdirectory in A, I am getting eaccess errors, presumably unable to read the files properly. Is there anything I can do to fix the permissions on the files, or do I just cp the files over?
[Leary] has quit [Read error: No route to host]
[Leary] has joined #nixos
ztrawhcse is now known as elibrokeit
polman has joined #nixos
sigmundv has joined #nixos
Lears has quit [Read error: No route to host]
shibboleth has quit [Quit: shibboleth]
<infinisil>
Ankhers: symlinking should work, how are you doing this?
sinner has joined #nixos
sinner is now known as Guest56125
hedning has quit [Remote host closed the connection]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Ankhers>
Oh sorry, that is kinda hacky. I put that in temporarily. I was going to try and find a better solution once I have the linking working.
_fusion809 is now known as fusion809
<NemesisD>
hey infinisil! i've progressed quite a bit in my haskell nix stuff since a few days ago when we were talking
<ottidmes>
is `nix eval`'s --arg and --argstr just completely broken, or what? It at least does not work like nix-instantiate used to
<infinisil>
NemesisD: Nice!
<NemesisD>
infinisil: i was able to get a build working and a working docker image. i'm moving onto another project though and i seem to no longer be able to disable profiling and tests so my compile is taking forever: https://gist.github.com/MichaelXavier/bb404b3f2d4be10157ad481e36ae5c3b
<ottidmes>
right now I work around not having --arg in a stupid way, by using nix-instantiate with --argstr to make sure that the string is correct when I inject it in my `nix eval` code... ugly, but at least it works
<infinisil>
NemesisD: Hmm, I'd avoid using nixpkgs config and packageOverrides for that
ixxie has joined #nixos
Duckle has joined #nixos
<infinisil>
NemesisD: Probably just putting `mkDerivation = super.mkDerivation ...` after line 42 works
<Duckle>
srk: Heh, so as I'm a total noob. Anything I should do after "nix-env -i networkmanager"
<Duckle>
?
<Duckle>
network-manager*
<ottidmes>
Duckle: if on NixOS use networking.network-manager.enable = true; instead
<srk>
Duckle: enable it system-wide via networking.network-manager.enable
<srk>
^^
<Duckle>
heh
<Duckle>
will do
grastello has quit [Remote host closed the connection]
__monty__ has quit [Remote host closed the connection]
__monty__ has joined #nixos
camsbury has quit [Remote host closed the connection]
<slabity>
Nice. That might clean up my config a bit
<rycee>
slabity: Yeah. One of these days I'll write something about it in the manual :-)
<srhb>
Duckle: There is a manifest file somewhere, but in general it behaves mostly like regular, imperative package managers
camsbury has joined #nixos
<srhb>
Duckle: (ie you break it you buy it)
<Duckle>
ah
<srhb>
Duckle: The more declarative way of using nix-env is defining your own metapackages that contain the packages you want. But in general, environment.systemPackages probably suits your needs for anything permanent, whereas nix-shell and nix-env are useful for throwaway things.
<pinkypie>
srhb: i see, i guess i'd need just generate the thing myself. i don't suppose i can touch my /etc/odbcinst.ini within nix-build, can i?
<pinkypie>
srhb: thank you btw
<srhb>
pinkypie: Nope, nix-build can only touch /nix/store
<infinisil>
Well this is a new error I haven't seen regarding QT: "/run/current-system/sw/bin/ts3client: relocation error: /run/current-system/sw/bin/ts3client: symbol calloc version Qt_5 not defined in file libQt5WebEngineCore.so.5 with link time reference"
v0|d has quit [Read error: Connection reset by peer]
<pinkypie>
how can i change name of the result link after nix-build?
<srhb>
pinkypie: -o myResult
<srhb>
pinkypie: or just mv result myResult
<srhb>
Actually, no, the first is the correct approach
logand has joined #nixos
<srhb>
The second will break the indirection.
camsbury has quit [Ping timeout: 240 seconds]
<pinkypie>
srhb: thank you
<ixxie>
anybody got a nice example of a default.nix for a python project with a shell hook?
shibboleth has quit [Quit: shibboleth]
<ixxie>
wanna write a bot, and I'm wondering if a nice way to run it is in nix-shell
tmaekawa has joined #nixos
<srhb>
ixxie: Compared to making a proper wrapper, I'd say no.
grumble has quit [Read error: Connection reset by peer]
gurmble is now known as grumble
<ixxie>
srhb: what is 'a proper wrapper'?
Soo_Slow has joined #nixos
<srhb>
ixxie: Essentially an executable that has all relevant bits set for the application to work upon its execution
<srhb>
ixxie: Rather than setting things up in a shell, I mean :)
ddellaco1 has joined #nixos
<srhb>
(Thinking wrapProgram over shellHook)
ddellacosta has quit [Ping timeout: 258 seconds]
<ixxie>
srhb: never heard of wrapProgram.... in anycase I would love an example.
rydnr has quit [Ping timeout: 256 seconds]
_kwstas has joined #nixos
_kwstas has quit [Remote host closed the connection]
<srhb>
ixxie: It allows you to set up a wrapper for an executable that sets eg. env vars etc before executing the original.
<catern>
gchristensen: matthewbauer[m]: I have a good example of a package which should not have been auto-updated to the latest version in nixpkgs, unstable or not. pythonPackages.construct has totally rearranged its API in both of its last two releases, 2.7 -> 2.8 -> 2.9; which has broken everything in nixpkgs which depends on it. but no-one noticed...
_kwstas has joined #nixos
<catern>
partially, I guess, because two of the dependent packages don't run tests... but the third and last dependent package doesn't compile, and who knows how long that has been the case
<catern>
if someone who actually uses construct was updating it when it actually needs to be updated, they would know that there was massive API breakage, and know that we should maybe not even upgrade until it stabilizes
reinhardt has quit [Quit: Leaving]
<pinkypie>
how do i write a file within nix-build do i need to make bash do it?
tmaekawa has quit [Quit: tmaekawa]
<srhb>
catern: Doesn't look auto updated to me. Are you sure?
<pinkypie>
is there lib funciton for that?
ddellaco1 is now known as ddellacosta
<pinkypie>
am i even thinking about it correctly?
<pinkypie>
i feel dumb
<srhb>
pinkypie: Depends what you need, to a first approximation probably pkgs.lib.writeText "name" "contents"
<catern>
srhb: well, admittedly it's not auto-updated. but it certainly wasn't updated with care
<catern>
I expect someone just did a drive-by update
<pinkypie>
btw can i make a result be just a single file?
<WhittlesJr>
Anyone else use magit with nixpkgs? In my experience, it tends to fall on its face when doing anything non-trivial. Has anyone found any performance tweaks that help?
camsbury has quit [Client Quit]
<srhb>
pinkypie: That is what writeText does.
dermetfan has quit [Ping timeout: 246 seconds]
rycwo has joined #nixos
<rycee>
WhittlesJr: I do. Works reasonably for me on an SSD.
<rycee>
But yeah, somewhat slow.
<WhittlesJr>
rycee: Probably doesn't help that I'm on a VM >_<
<colemickens>
Hm, if I build a system configuration manually executing `$out/bin/switch-to-configuration switch` should create the bootloader entry, but it doesn't seem to be for me.
Soo_Slow has quit [Remote host closed the connection]
<rycee>
WhittlesJr: Ow, yeah. I can imagine that slowing things down a bit.
<catern>
srhb: I guess that's not completely driveby, but this package at least causes a bunch of breakage
lucus16 has joined #nixos
<srhb>
catern: No doubt. I was just pointing out that it was probably a bad example for any specific autobreakage. :)
<{^_^}>
[nixpkgs] @NickHu opened pull request #55664 → cups-brother-hl3140cw: init at 1.1.4-0 → https://git.io/fhQ5r
rprije has joined #nixos
<catern>
ugh, hm
<catern>
maybe I'll make a new construct28 package
Guest7777 has quit [Ping timeout: 246 seconds]
seanparsons has quit [Remote host closed the connection]
aswanson has quit [Remote host closed the connection]
shibboleth has joined #nixos
<__monty__>
Broken record I know but: Can anyone spot the difference between md and epub? I don't understand the error. default.nix http://ix.io/1ASl , error http://ix.io/1ASk
Lears has joined #nixos
kreisys has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
npmccallum has joined #nixos
logand` has joined #nixos
akapav_ has joined #nixos
kreisys has joined #nixos
<gchristensen>
is there a way to extract a nar without adding it to the store?
noonien_ has joined #nixos
[Leary] has quit [Ping timeout: 240 seconds]
lopsided98 has quit [Remote host closed the connection]
Guest55981 has quit [Quit: No Ping reply in 180 seconds.]
FRidh[m] has quit [Ping timeout: 240 seconds]
Barnabas[m] has quit [Ping timeout: 240 seconds]
logand has quit [Ping timeout: 240 seconds]
drakonis has quit [Ping timeout: 240 seconds]
stigo has quit [Ping timeout: 240 seconds]
IRCsum has quit [Ping timeout: 240 seconds]
akapav has quit [Ping timeout: 240 seconds]
sphalerite has quit [Ping timeout: 240 seconds]
stigo has joined #nixos
noonien has quit [Ping timeout: 240 seconds]
noonien_ is now known as noonien
Barnabas[m] has joined #nixos
anton has joined #nixos
drakonis has joined #nixos
sphalerite_ has joined #nixos
lopsided98 has joined #nixos
anton is now known as Guest36858
slyfox_ is now known as slyfox
IRCsum has joined #nixos
aswanson has joined #nixos
FRidh[m] has joined #nixos
doyougnu has quit [Quit: WeeChat 2.2]
johanot has quit [Quit: WeeChat 2.2]
<samrose_>
anyone have a good example of using mozilla rust overlay in either a package or module, or both?
shibboleth has quit [Quit: shibboleth]
doyougnu has joined #nixos
ixxie has quit [Ping timeout: 240 seconds]
rpg has joined #nixos
<ottidmes>
samrose_: I had them, but removed them, I have settled for mozilla rust overlay for shell.nix so I get extra tools, and using the nixos-unstable rustc with RUSTC_BOOTSTRAP = 1;
<gchristensen>
answer: nix-store --restore
<samrose_>
ottidmes: is mozilla rust overlay only really meant for shell.nix usage?
<ottidmes>
samrose_: its only meant for local development, be that nix-shell or your own configuration, not for contributing to Nixpkgs
<LnL>
gchristensen: there's also nix cat-nar
<samrose_>
ottidmes: I am creating my own custom packages in my own custom version of nixos, and wondering if there are existing straightforward ways to install and use specific version of rust in that context
<gchristensen>
nice
<ottidmes>
samrose_: there is, its on the README of the mozilla overlay, you can ask it for a specific build of rustc
<slabity>
samrose: I actually do this exact thing with the mozilla overlay.
vk3wtf has quit [Ping timeout: 250 seconds]
<LnL>
gchristensen: I didn't know dump/restore worked outside of the store tho
<{^_^}>
[nixpkgs] @7c6f434c merged pull request #55305 → Lua: moving some package to the luarocks whitelist → https://git.io/fh9ut
<gchristensen>
LnL: cat nar | nix-store --restore ./right-here <- exports it to ./right-here :)
<slabity>
I just put `preferredRustChannel = super.rustChannelOf { date = "..."; channel = "nightly" };' in my local overlay.
<samrose_>
ottidmes: yes, I can get a specific version of rust with rust overlay in shell.nix, but I cannot seem to use it in a nixos module or nixos package in my custom build of nixos
<LnL>
gchristensen: neat, and I assume dump doesn't necessarily take a store path either?
<ottidmes>
which I really recommend to do, I just ook the most basic example, but that does not pin, and then it automatically updated, causing one tool to no longer be available. I tried getting an older version, but that did not bring it back, so do yourself a favour and pin the build if not the overlay itself
stites has quit [Quit: ZNC 1.6.6+deb1ubuntu0.1 - http://znc.in]
ddellacosta has quit [Ping timeout: 250 seconds]
ddellacosta has joined #nixos
samrose_ has quit [Ping timeout: 246 seconds]
samrose has joined #nixos
stites has joined #nixos
ixxie has quit [Ping timeout: 268 seconds]
sphalerite_ is now known as sphalerite
cswl has quit [Quit: Connection closed for inactivity]
ddellacosta has quit [Ping timeout: 245 seconds]
stites has quit [Client Quit]
stites has joined #nixos
q6AA4FD has joined #nixos
ddellacosta has joined #nixos
stites has quit [Client Quit]
stites has joined #nixos
<{^_^}>
[nixpkgs] @amazari opened pull request #55667 → zoneminder: fix build issue when using createLocally database → https://git.io/fhQFI
<ddellacosta>
so I'm trying to follow the instructions for creating a basic nix expression in the manual, and I'm stuck immediately: `error: cannot auto-call a function that has an argument without a default value │ arq1
<ddellacosta>
│ | ('stdenv')` Can anyone help me sort out what this means? Searching hasn't yielded much so far
<ddellacosta>
argh, sorry about the formatting
samrose has quit [Quit: Konversation terminated!]
jabranham has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
<ddellacosta>
nope, that github issue doesn't help me. Anyone have a link to a working example of a very basic nix expression for e.g. installing your own script or the like?
seanparsons has quit [Remote host closed the connection]
<__monty__>
That's my release.nix, you could also put it in default.nix though. It's a matter of taste.
<ddellacosta>
__monty__: okay. I appreciate it, but I have absolutely no context for that and I'd like to get a better sense of how this all fits together. I'll file that away though in case I figure out how it all works at some point...
<__monty__>
ddellacosta: You need the callPackage call because the example derivation's actually written as a package in nixpkgs, which basically does callPackage for you. callPackage is what fills in the arguments like { stdenv }: ...
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
<ddellacosta>
__monty__: okay, thanks for the explanation, that was helpful
rpg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
o1lo01ol1o has quit [Remote host closed the connection]
<dmj`>
I have a nixos test that runs in qemu, anybody know why it would be 4-5 time faster on a NixOS machine than on ubuntu? Assume both have KVM installed (/dev/kvm present), same memory / processor
sigmundv has joined #nixos
<noonien>
dmj`: have you tried profiling your test?
<dmj`>
noonien: I didn't know I could to that
<dmj`>
noonien: how do I profile it?
<noonien>
wait, what do you mean by "nixos test"?
<dmj`>
noonien: like it runs the nixos testing framework, boots nixos in qemu, mounts the /nix/store and goes to town
eadwu has quit [Quit: WeeChat 2.3]
<noonien>
ooh, i was confused, i think it's called a "nix test", since you can run it in ubuntu as well, not just nixos
<noonien>
that being said, i'm a new, don't know much about the testing framework, but there's plenty of tools to profile progams in linux, afaik
jackdk has joined #nixos
<dmj`>
noonien: ok, thanks
npmccallum_ has quit [Ping timeout: 250 seconds]
<noonien>
people usually recommend pprof, i've not tried it myself, i'd probably start by running it with strace
Thra11 has quit [Ping timeout: 245 seconds]
shibboleth has joined #nixos
<noonien>
how can i compute the sha256 of a directory, so i can pass it to a nix derivation?
asymmetric has quit [Quit: Leaving]
work_ has joined #nixos
<noonien>
ah, `nix-hash --base32 --type sha256 .` seems to do what i want
<ifndef_define>
Hi everyone. Does anyone know why Virtualbox compiles from source when using `virtualisation.virtualbox.host.enable = true;` in nixos configuration, but fetches a binary from the cache when using `environment.systemPackages = [ pkgs.virtualbox ];` or just through nix-env