biopandemic has quit [Read error: Connection reset by peer]
biopandemic has joined #nixos-nur
biopandemic has joined #nixos-nur
biopandemic has quit [Changing host]
yl has quit [Ping timeout: 240 seconds]
biopandemic has quit [Quit: .]
kreisys has joined #nixos-nur
kreisys has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yl has joined #nixos-nur
yl has quit [Ping timeout: 252 seconds]
Dearauba has joined #nixos-nur
Dearauba has quit [Ping timeout: 256 seconds]
cosciad has joined #nixos-nur
<cosciad>
Hello, we are the students from yesterday, we have a problem with the repo : once we try this command : nur.repos.INFO4-19.helloworld it fails with this error : error: attribute 'INFO4-19' missing, at /nix/store/fan4aqrglkl5k1yl xqi0dzydqavcjj63-source/lib/repoSource.nix:17:14 do you have an idea of what we did wrong ?
<tilpner>
cosciad: Your repo is not public enough, or the URL is wrong
<tilpner>
Don't switch to GitHub, I'll see if I can quickly fix it
cosciad has quit [Ping timeout: 256 seconds]
cosciad has joined #nixos-nur
<cosciad>
Sorry I can't see your last messages )=
<tilpner>
I think I fixed it
<cosciad>
oh ! great so no need of a new github ?
<cosciad>
still the same error )= nix-shell -p nur.repos.INFO4-19.helloworld error: attribute 'INFO4-19' missing, at /nix/store/fan4aqrglkl5k1yl xqi0dzydqavcjj63-source/lib/repoSource.nix:17:14
<cosciad>
I would like to download emacs-26.1.tar.gz but there is no hash code it only have the sig file
<cosciad>
the sig file contains a PGP SIGNATURE
<tilpner>
No. You still need the hash
<tilpner>
You can download it, and hash it yourself
<tilpner>
Or just put in a fake hash and let Nix tell you the correct one
<tilpner>
,tofu
<{^_^}>
To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<cosciad>
you mean in my fetchurl i put sha256 = 00..00 and then.. ?
<tilpner>
And then you build it, and then Nix will tell you the right hash in the error
<cosciad>
ah ok !
<cosciad>
nix-build these derivations will be built: /nix/store/mf1zxb297aa0qcc728qn86gaswb9ykx1-emacs-26.1.drv building '/nix/store/mf1zxb297aa0qcc728qn86gaswb9ykx1-emacs-26.1.dr v'... builder for '/nix/store/mf1zxb297aa0qcc728qn86gaswb9ykx1-emacs-26.1 .drv' failed to produce output path '/nix/store/cyvc7b78vk3m0x63ljh 281rmrv25n5f6-emacs-26.1' error: build of '/nix/store/mf1zxb297aa0qcc728qn86gaswb9ykx1-emacs- 26.1.drv' failed
<cosciad>
I'm sorry, do you have an idea ?
<tilpner>
Isn't there more error?
<cosciad>
no just that
<cosciad>
I do : nix-build
<cosciad>
these derivations will be built: /nix/store/mf1zxb297aa0qcc728qn86gaswb9ykx1-emacs-26.1.drv building '/nix/store/mf1zxb297aa0qcc728qn86gaswb9ykx1-emacs-26.1.dr v'...
<cosciad>
builder for '/nix/store/mf1zxb297aa0qcc728qn86gaswb9ykx1-emacs-26.1 .drv' failed to produce output path '/nix/store/cyvc7b78vk3m0x63ljh 281rmrv25n5f6-emacs-26.1'
<cosciad>
error: build of '/nix/store/mf1zxb297aa0qcc728qn86gaswb9ykx1-emacs- 26.1.drv' failed
<tilpner>
I only sent the PR, it still needs to be approved
<cosciad>
ah sorry ^^' thank you !
<tilpner>
And it looks like I got the typing wrong
<tilpner>
I've never used typing in Python before, so that's not really surprising
<cosciad>
yes i just saw the check failed )=
<cosciad>
is it possible to fix it ?
<tilpner>
Yes. I'll be gone for a while, but the PR should be merge-able anyway
cosciad_ has joined #nixos-nur
cosciad has quit [Ping timeout: 256 seconds]
cosciad_ has quit [Ping timeout: 256 seconds]
peel1 has left #nixos-nur ["Kicked by @appservice-irc:matrix.org : OFTC spam preventative kick"]
cosciad has joined #nixos-nur
<cosciad>
Hi again =) did you manage to fix the parser ? =)
cosciad has quit [Ping timeout: 256 seconds]
biopandemic has joined #nixos-nur
biopandemic has joined #nixos-nur
biopandemic has quit [Changing host]
<Mic92>
the pull request was merged
<Mic92>
now there is an evaluation error in your package
cosciad has joined #nixos-nur
biopandemic has quit [Read error: Connection reset by peer]
biopandemic has joined #nixos-nur
<cosciad>
could I know why when I do a nix-build I have an error like that : error: cannot auto-call a function that has an argument without a default value ('stdenv') plz ?
<cosciad>
I don't need to put something on the { } of helloworld ?
<Mic92>
no this file is fine
<cosciad>
ok I think I nailed it =)
<cosciad>
Do you have an idea of why I still have the error --> error: attribute 'INFO4-19' missing, at /nix/store/dvg5wcy00sqj0gc2 rdvhd8gdx6xxjrl3-source/lib/repoSource.nix:17:14
<cosciad>
once I try : nix-shell -p nur.repos.INFO4-19.helloworld
<tilpner>
I was going to suggest rm -rf ~/.cache/nix
<tilpner>
Does the GC clean those too now?
<Mic92>
tilpner: fetchtarball should write to the nix store
<tilpner>
But only if it's fixed-output
<Mic92>
but .cache/nix might be also fine
<Mic92>
Are you sure?
<Mic92>
It worked for me though
<cosciad>
YES !!! It works !!
<tilpner>
AFAICT a not-fixed-output fetchTarball will still go into the store, but be cached for 1h by default
<tilpner>
Yay \o/
<tilpner>
(But no, I'm not really sure)
<cosciad>
Yes, it's maybe ridiculous for you but a big step for us ^^'
<Mic92>
What is the end goal of this project?
<cosciad>
we have to create packages which contains all the software that we use at school in all the different domain of teaching for example java course -> eclipse, ocaml course -> ocaml + emacs... And we also have to put those packages on the nur to make it available for everybody
<cosciad>
do you think that possible ?
<cosciad>
@tilpner you are not sure of what ?
<Mic92>
Yeah, also most the packages you just mentioned are already available.
<tilpner>
Not sure of Nixs exact behaviour around non-fixed-output fetchTarball invocations
<cosciad>
yes but the goal of the project is also to make our own packages and not use the one available =)
<tilpner>
That sounds painful. Why would you do that?
<cosciad>
just one little question. If i want an environment with multiple software do i need to put it on the same pkgs/default.nix and make two differents stdenv derivation or something else ?
<cosciad>
@tilpner I know, it's for eductional reasons I think =)
kreisys has joined #nixos-nur
<tilpner>
What software do you want to combine?
<tilpner>
It depends on if they're independent, or have a plugin relationship
kreisys has quit [Client Quit]
<cosciad>
for example I would like to create a package containing : apache2, libapache2-mod-php5, php5-curl, php5-cli
<cosciad>
do I have to create a package called for example "apache" with a default.nix with four different stdenv.derivation ?
<tilpner>
I don't know how these interact, sorry
<tilpner>
One seems to be a plugin of the other, but I don't know about the two php5*
<cosciad>
okay, I will try next time !
<cosciad>
Thank you both !
kreisys has joined #nixos-nur
biopandemic has quit [Quit: .]
biopandemic has joined #nixos-nur
kreisys has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yl has joined #nixos-nur
cosciad has quit [Ping timeout: 256 seconds]
yl has quit [Quit: WeeChat 2.2]
kreisys has joined #nixos-nur
kreisys has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kreisys has joined #nixos-nur
kreisys has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]