ChanServ changed the topic of #nixos-nur to: Nix User Repository || https://github.com/nix-community/NUR || https://logs.nix.samueldr.com/nixos-nur
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> 401 Unauthorized
<cosciad> do you manage to see what there is inside of this url : https://gricad-gitlab.univ-grenoble-alpes.fr/Projets-INFO4/18-19/19/code ?
<tilpner> Yes, but it's possible the gitlab fetcher can't
<tilpner> You have this group structure that I don't recognize
<cosciad> do you think its possible because it is a special gitlab (it is for our university) ?
<tilpner> lib/repoSource.nix parses the URL manually
<cosciad> If I create a github account only for the repo it will work ?
<tilpner> And there aren't many people using that code, so it's entirely possible that it's broken
<tilpner> Yes, it probably would
<tilpner> But... it would be even better to fix that gitlab code
<cosciad> ok but what do you mean by fixing the gitlab code ?
<tilpner> { domain = "gricad-gitlab.univ-grenoble-alpes.fr"; owner = "19"; repo = "code"; }
<tilpner> This is what happenes, it currently parses the URL badly
<tilpner> Because nobody ever tried it with these groups
<cosciad> OK so I will try to create a new github account and rechange the url on the repo.json
<cosciad> do you think that it will work better ?
<tilpner> I already said so. Yes, probably
<cosciad> Ok thank you very much I will try it =)
<tilpner> But it would also be nice to fix the Gitlab URL parsing code
<cosciad> I'm sorry but I don't have the time to do this )=
<tilpner> So it's really just a matter of allowing and escaping more path components for the project
<cosciad> I don't understand, if the zip is downloaded correctly. Why doesn't it work ?
<tilpner> Because that's not the URL it tries to download
<cosciad> OK and do you know what is the url that it tries ?
<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
<tilpner> Yes, patience
<cosciad> sorry =)
<tilpner> I didn't even send the PR yet
<tilpner> It still needs to be merged after that
<tilpner> And then CI needs to run again
<{^_^}> NUR#124 (by tilpner, 12 seconds ago, open): gitlab: allow for deeper paths than owner/repo
<cosciad> thank you ! =)
<cosciad> can you tell me when the pull is done ?
<tilpner> Now we wait for Mic92 to merge it
<cosciad> ok thank you very much =)
<cosciad> other thing, do you know how we can download a tar.gz with a sig file and not a hash =) or if we can download a tar.gz without hash plz ?
<tilpner> What do you mean by sig file?
<cosciad> for example here : http://mirror.ibcp.fr/pub/gnu/emacs/
<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> Paste the source (but not here)
<tilpner> ,paste
<{^_^}> Use a website such as [ https://gist.github.com/ http://ix.io/ https://hastebin.com/ https://paste.ee/ ] or similar services to share anything that's longer than a couple lines.
<cosciad> the second part is the result in the terminal
<cosciad> the sha256 is the one found by the error with the 00.00 sha256 =)
<tilpner> You forgot builder.sh
<cosciad> builder.sh : source $stdenv/setup
<tilpner> Why are you building emacs, and why are you doing that with a custom builder?
<cosciad> I just need the standard builder ?
<cosciad> i'm trying emacs because i try to understand how does it all works ^^'
<Mic92> tilpner: I think this has academic reasons
<tilpner> emacs is not the best place to start
<tilpner> nixpkgs has a long and complicated expression for it already
<tilpner> And you don't need to copy the stdenv builder around, it will use that by default if you don't set a builder
<Mic92> I started with converting AUR PKGBUILDs to nixpkgs.
<tilpner> Mic92: Huh, it still says 401 Unauthorized
<cosciad> Oh really ? )=
<cosciad> the zip is still not downloaded properly ?
<cosciad> but tilpner said that the url created by the parser was correct no ?
<tilpner> Oh no
<tilpner> I somehow assumed the script would use the Nix parser
<tilpner> It doesn't
<cosciad> is there a way to fix it ?
<tilpner> Of course
<cosciad> great =)
<cosciad> personally i have a 404 error with this url =)
<cosciad> oops i didn't delete the ' at the end =)
<cosciad> if this url seems fine, do you know where does the problem come?
<{^_^}> NUR#125 (by tilpner, 8 seconds ago, open): nur: Update python side of GitLab URL parsing
<cosciad> if it works you are my saviour ! =)
<tilpner> Your repo still won't evaluate
<tilpner> But at least now it's your fault instead of the NURs :)
<tilpner> Your helloworld/default.nix uses stdenv, but stdenv is not in scope
<cosciad> on my part I still have the same problem )=
<cosciad> stdenv is not included with "pkgs ? import <nixpkgs> {}" ?
<tilpner> stdenv is in pkgs, yes, but not in scope in that expression
<tilpner> You can do "with pkgs;" to bring everything in pkgs into scope
<tilpner> Or use pkgs.stdenv instead
<tilpner> Or take stdenv and perl as arguments directly
<tilpner> { stdenv, perl }: ...
<cosciad> I did the change and push it to my git but I still have the error: attribute 'INFO4-19' missing )=
<cosciad> I hae this =)
<cosciad> what am i missing ? )=
<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> the source are here : https://paste.ee/p/sXUFm
<{^_^}> nix#1507 (by matthewbauer, 1 year ago, open): nix-build in subdirectories
<Mic92> nix-build -E "with import <nixpkgs> {}; callPackage ./. {}"
<Mic92> or in your nur-repository you can also go to the root and say nix-build -A package-attribute
<tilpner> Mic92: No, it was formatted like that before
<cosciad> DO I have to add something in the all-packages.nix ? I don't understand very well )=
<Mic92> tilpner: the same lint.sh runs on every pull request
<Mic92> cosciad: do you work on your repository or in nixpkgs?
<cosciad> in my repository
<Mic92> then no. However you need to add entries to your default.nix like this: https://github.com/Mic92/nur-packages/blob/master/default.nix
<tilpner> Mic92: Yes, since 13.08.18. But the last change to prefetch.py was 11.08.18
<Mic92> Both lines that where ammended where also changed the same pr.
<cosciad> do I need to copy only the "pkgs ? import <nixpkgs> {}" or do I need to do something else ?
<Mic92> cosciad: in the default nix, just use add { pkgs ? import <nixpkgs> {} } and then use pkgs.callPackage
<cosciad> in the default.nix of the repo. Not the package's one. that's right ?
<Mic92> yes
<tilpner> Mic92: I think we both agree. It's not important why it was like that anyway :)
<cosciad> but how do put perl in the parameter. Could you give me an example plz .
<cosciad> ?
<Mic92> { perl }:
<cosciad> this is my default.nix of my repo : https://paste.ee/p/j0zu1
<cosciad> do I have to change something ?
<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
<Mic92> cosciad: this is because there was an evaluation error at the time your repository was checked in NUR: https://travis-ci.com/nix-community/NUR/builds/103360623
<Mic92> when you run nix-collect-garbage
<Mic92> then it should work
<tilpner> Huh, how's a GC going to help?
<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…]