!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

853 Members
179 Servers

Load older messages


SenderMessageTime
9 Jul 2021
@thom:uint.onetomcur changed their display name from Thom to tomcur.14:31:06
@vika:matrix.nice.sampler.fivika (she/her) 🏳️‍⚧️ set a profile picture.16:39:07
11 Jul 2021
@rosariopulella:matrix.orgrosariopulella joined the room.15:45:57
12 Jul 2021
@softinio:matrix.orgsoftinio joined the room.06:06:35
@citadelcore:nixos.devAlex Zero joined the room.15:00:31
14 Jul 2021
@kotwys:matrix.orgKočyš Mikajlo joined the room.08:32:40
@paultrial:banditlair.compaultrial joined the room.17:36:01
15 Jul 2021
@Las:matrix.orgLasDoes anyone know if there's a way to verify commits in inputs?08:56:00
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneCan somebody tell me if there's a way to do this better, or if we need to add it to the flake schema?22:04:03
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zone I need to use git describe on some sources. 22:04:13
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zone The flake lock outputs lots of things, but I can't actually use git describe on a given source, because in order to do that I'd need to download the git index, which is highly impure! 22:04:46
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zone * The flake lock describes lots of things, but I can't actually use git describe on a given source, because in order to do that I'd need to download the git index, which is highly impure! 22:04:54
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zonehttps://discourse.nixos.org/t/git-describe-like-attributes-for-flakes/1080522:27:03
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneLooks like someone has asked already22:27:07
@mvtva:matrix.orgmvnetbizSeems not possible unless the description itself is committed into the repo beforehand22:47:07
@mvtva:matrix.orgmvnetbizI think multiple git commit histories could produce the same fixed-output with the way its currently implemented, so that can't be done purely22:50:41
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneWell, it's an interesting case.22:50:57
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneMaybe I can talk about it.22:51:05
@mvtva:matrix.orgmvnetbiz I didin't thikn about it, I was just thinking I could git describe ${self} in the outputs, but it doesn't have the git data itself, I think it was you were saying right? 22:52:02
@mvtva:matrix.orgmvnetbiz * I didin't thikn about it, I was just thinking I could git describe ${self} in an output derivation, but it doesn't have the git data itself, I think that is what you were saying right? 22:52:46
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zone

https://github.com/dolphin-emu/dolphin uses CMake to find git, which in turn sets DOLPHIN_WC_DESCRIBE. This is used at runtime to determine compatibility between clients.

https://github.com/NixOS/nixpkgs/blob/nixos-21.05/pkgs/misc/emulators/dolphin-emu/master.nix#L51

The nixpkg currently requires the maintainer to find this information out by hand and then bind it to the version value on L24.

22:53:21
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zone In order to use git describe you need the .git index. Which is impure. 22:54:00
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zone * In order to use git describe you need the .git index. Which is impure, because if someone adds a branch upstream, then you've mutated the .git index state. 22:54:12
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zone so using leaveDotGit = true; in a package just to do this is a bad idea, as the sha256 will always be mutating. 22:55:23
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zone * so using leaveDotGit = true; in a package just to do this is a bad idea, as the sha256 will always be changing. 22:55:28
@mvtva:matrix.orgmvnetbiz how is that dolphinemu case different than other packages where the version is specified? just because you can go look for a tag easily without the local repo, vs cloning it to do describe? 22:56:23
@mvtva:matrix.orgmvnetbizSeems like a dolphin problem, couldn't it be a problem for the runtime behavior to change based on what is bsically a side effect of the particular VCS in use?22:58:33
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zone
In reply to @mvtva:matrix.org
how is that dolphinemu case different than other packages where the version is specified? just because you can go look for a tag easily without the local repo, vs cloning it to do describe?
It's supposed to happen as part of the build.
22:58:45
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zone The cmake build is supposed to use git describe and use it in order to set this string. 22:59:02
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneI've honestly suggested this is a problem to Dolphin, but I also believe it would be possible to put some data in the flake schema that allows this same string to be resolved without the need for Dolphin to change.22:59:50

Show newer messages


Back to Room ListRoom Version: 6