1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-30 22:20:59 +01:00
nix/src
John Ericson 991831227e Clean up Base* code
Make it separate from Hash, since other things can be base-encoded too.

This isn't really needed for Nix, but it makes the code easier to read
e.g. for someone reimplementing this stuff in a different language. (Of
course, Base16/Base64 should be gotten off-the-shelf, but now the hash
code, which is more bespoke, is less cluttered with the parts that would
be from some library.)

Many reimplementations of "Nix32" and our hash type already exist, so
this cleanup is coming years too late, but I say better late than never
/ it is always good to nudge the code in the direction of being a
"living spec".

Co-authored-by: Sergei Zimmerman <sergei@zimmerman.foo>
2025-08-06 11:51:44 -04:00
..
external-api-docs Format .nix files 2025-01-24 17:04:02 +01:00
internal-api-docs nix-cli: Move nix2 binaries sources properly into nix subproject 2025-08-05 02:10:21 +03:00
libcmd meson: Disable PCH for GCC 2025-08-03 00:08:40 +03:00
libexpr meson: Disable PCH for GCC 2025-08-03 00:08:40 +03:00
libexpr-c Apply clang-format universally. 2025-07-18 12:47:27 -04:00
libexpr-test-support Apply clang-format universally. 2025-07-18 12:47:27 -04:00
libexpr-tests Apply clang-format universally. 2025-07-18 12:47:27 -04:00
libfetchers Clean up Base* code 2025-08-06 11:51:44 -04:00
libfetchers-c nix-fetchers-c: Init with settings object 2025-04-02 18:29:42 +02:00
libfetchers-tests Add unit test 2025-07-21 21:56:11 -07:00
libflake Update developer facing links to nix.dev 2025-07-25 10:59:44 +02:00
libflake-c Fix various typos in source code 2025-05-25 20:14:11 +00:00
libflake-tests lib{store,flake}-tests: Add test for spaces in URIs 2025-07-18 21:23:35 +03:00
libmain Apply clang-format universally. 2025-07-18 12:47:27 -04:00
libmain-c Expose the nix component in header include paths 2025-04-01 11:40:42 -04:00
libstore Clean up Base* code 2025-08-06 11:51:44 -04:00
libstore-c docs, messages: Resolve nixos.org/manual/nix/stable redirect 2025-07-25 10:18:13 +02:00
libstore-test-support Apply clang-format universally. 2025-07-18 12:47:27 -04:00
libstore-tests Encapsulate invalidBase32, avoid 0xFF magic number 2025-08-04 15:32:38 -04:00
libutil Clean up Base* code 2025-08-06 11:51:44 -04:00
libutil-c Apply clang-format universally. 2025-07-18 12:47:27 -04:00
libutil-test-support libutil-test-support: Add HasSubstrIgnoreANSIMatcher 2025-07-18 21:23:38 +03:00
libutil-tests Clean up Base* code 2025-08-06 11:51:44 -04:00
nix nix/profile.cc: Fix header include path 2025-08-06 11:01:39 +03:00
perl Restore multiline formatting of lists in meson files 2025-06-20 23:12:36 +03:00
nix-functional-tests Build Functional tests with Meson 2024-08-14 15:35:40 -04:00
nix-manual Build the manual with Meson 2024-10-09 11:58:17 -04:00