21 May 2021 |
Melg8 | i have custom derivations which don't have proper bash even, sou i cant just do that. But yea drvAttrs i'll try it | 00:15:11 |
Melg8 | sterni: thanks | 00:15:33 |
| unclechu joined the room. | 00:21:44 |
| Lavender joined the room. | 00:30:12 |
| hjulle joined the room. | 01:21:36 |
| @vborja:matrix.org joined the room. | 02:24:32 |
| yusdacra changed their profile picture. | 05:10:19 |
| alarsyo set a profile picture. | 08:21:20 |
sterni | In reply to @sternenseemann:systemli.org
derivation.drvAttrs contains everything you need theoretically, but you'd still convert it to environment values (i. e. strings) correctly I think the conversion to strings is very similar to toString if not the same thing (guess you have to check the source to find out) | 08:49:15 |
| higebu joined the room. | 10:20:36 |
| rizary_andika (@rizary_:matrix.org) (@rizary:matrix.org) joined the room. | 11:54:15 |
| Domen Kožar joined the room. | 12:15:12 |
| plabadens joined the room. | 12:35:17 |
Melg8 | sterni: somewhat similar question, if i have nix-store -qR $(nix-instantiate ./default.nix) | grep '[.]drv$' - so i need list of all derivations in order, that i should build to build some concrete derivation X (yea i know that nix-instantiate here uses whole default.nix but you get the idea). So.. can same thing be chieved (without just using this command) on raw (no stdenv.mkDerivation) derivations and gathered? what approach would be? | 12:42:47 |
Melg8 | * sterni: somewhat similar question, if i have nix-store -qR $(nix-instantiate ./default.nix) | grep '[.]drv$' - so i need list of all derivations in order, that i should build to build some concrete derivation X (yea i know that nix-instantiate here uses whole default.nix but you get the idea). So.. can same thing be achived (without just using this command) on raw (no stdenv.mkDerivation) derivations and gathered? what approach would be? | 12:43:22 |
sterni | Nix doesn't really offer this kind of introspection in the language. It would probably be possible to achieve, but would require you to reimplement parts of the package manager in pure nix which is bound to result in implementation errors. Also some things required for this like inspecting string context are essentially implementation details and the nix language doesn't really know anything about realizing derivations | 12:47:59 |
sterni | you probably should use nix show-derivation and nix-store --requisites for what you are trying to find out | 12:48:17 |
sterni | getting a list of derivations your derivation depends on in nix is rather difficult and error prone | 12:48:53 |
Melg8 | Okay, i see... thanks | 12:56:38 |
Melg8 | sterni: on the option of making my live harder, can https://github.com/NixOS/nix/issues/1245#issuecomment-401642781 this be used as foundation for "reimplement parts of package manager"? | 13:10:09 |
sterni | this seems like the most sensible approach to the problem actually | 13:21:53 |
sterni | although “sensible” is relative here ofc | 13:22:06 |
sterni | but consider if you can solve your problem (whatever it is) without resorting to this kind of thing since it is not really intended to work | 13:22:39 |
sterni | * but consider if you can solve your problem (whatever it is) without resorting to this kind of thing since it is not really intended | 13:22:47 |
figsoda | what's the point of the global flake registry? | 15:23:38 |
figsoda | nixpkgs seems to be the only flake that is used | 15:23:54 |
Roos | I have added the flake of my own dotfiles to my NixOS system configuration. | 15:24:56 |
Roos | I wan easily do overrides in my system configuration without switching | 15:25:26 |
Roos | Or even have a lighter default configuration and pull 'customized environments'. | 15:25:46 |
figsoda | i see the point of the system wide registry | 15:25:52 |