| 30 Jan 2022 |
joepie91 🏳️🌈 | * wasn't deprecated according to the manual, at least | 00:06:47 |
joepie91 🏳️🌈 | it does have a caveat on what it is and isn't suitable for | 00:07:23 |
Jan Tojnar | yeah, one probably would want to use the lib wrappers around it anyway | 00:08:27 |
Jan Tojnar | or something like https://github.com/numtide/nix-filter | 00:08:38 |
joepie91 🏳️🌈 | once flakes stabilize, I will probably update the cheatsheet to include such single-responsibility libraries | 00:09:21 |
Jan Tojnar | typo in dirOf: director | 00:10:02 |
joepie91 🏳️🌈 | whoops :D | 00:10:24 |
Jan Tojnar | I would probably list stdenv.mkDerivation first | 00:13:00 |
Jan Tojnar | if list the builtin at all | 00:13:13 |
Jan Tojnar | I have already seen some beginners confused by it | 00:13:33 |
Jan Tojnar | similarly the fetching section – people will want nixpkgs fetchers 99 % of the time | 00:14:17 |
Jan Tojnar | * similarly the fetching section – people will want nixpkgs fetchers 90 % of the time | 00:14:35 |
joepie91 🏳️🌈 | the nixpkgs fetchers! I knew I was forgetting something | 00:14:57 |
joepie91 🏳️🌈 | swapped around the derivation functions and added a note to only use the builtin if nixpkgs is not available | 00:15:21 |
joepie91 🏳️🌈 | will add the nixpkgs fetchers at some later time :p | 00:15:42 |
joepie91 🏳️🌈 | I've left a FIXME in my sheet | 00:15:49 |
Jan Tojnar | DocBook is spelt with capital B e.g. in literalDocBook | 00:16:19 |
joepie91 🏳️🌈 | oops | 00:16:48 |
joepie91 🏳️🌈 | fixed | 00:17:04 |
Jan Tojnar | there is also pkgs.nix-gitignore if you want to avoid flakes https://nixos.org/manual/nixpkgs/stable/#sec-pkgs-nix-gitignore | 00:21:20 |
joepie91 🏳️🌈 | ah, handy | 00:22:39 |
joepie91 🏳️🌈 | will have a look at that later | 00:22:49 |
Jan Tojnar | but the functions I had in mind and actually used are lib.sources.cleanSource & co. | 00:23:05 |
Jan Tojnar | which are based on builtins.path | 00:23:13 |
joepie91 🏳️🌈 | are those documented? | 00:23:21 |
Jan Tojnar | not sure, I mostly just look to code for docs | 00:23:53 |
joepie91 🏳️🌈 | right :p | 00:24:20 |
Jan Tojnar | looks like it is incomplete for some reason | 00:25:51 |
Jan Tojnar | https://nixos.org/manual/nixpkgs/stable/#sec-functions-library-sources | 00:25:52 |
joepie91 🏳️🌈 | yeah that section looked weirdly empty to me | 00:26:46 |