Commit graph

38 commits

Author SHA1 Message Date
Jake Hamilton a75b76e86e
feat: add portable submodule type
Some checks failed
buildbot/nix-eval Build done.
2024-10-08 12:09:38 -07:00
Austreelis 866b8902c9 fix(lib): swapped entries in test dag.sort.topological."sorts a graph" (#9)
Some checks failed
buildbot/nix-eval Build done.
I figure it's a simple typo. This test expects entries `"a"`, `"b"`, `"c"`, `"d"` to be lexicographically sorted but fails. The actual result is that entries are sorted in this order: `c, b, a, d`. This is because the test adds the entry `"b" = lib.dag.entry.between [ "c" ] [ "a" ] "b"`, i.e. after `"c"` and before `"a"`. I haven't checked if it was a logic error in the sort implementation, as other pieces of labs rely on it (and use `lib.dag.entry.between` with the arguments flipped relative to the test, which makes sense), and the arguments of the function `lib.dag.entry.between` are named "after", *then* "before".

Co-authored-by: Austreelis <dev.austreelis@swhaele.net>
Reviewed-on: #9
Reviewed-by: Jake Hamilton <jake.hamilton@hey.com>
Co-authored-by: Austreelis <austreelis@noreply.git.auxolotl.org>
Co-committed-by: Austreelis <austreelis@noreply.git.auxolotl.org>
2024-10-08 18:44:31 +00:00
Austreelis cadfaabc85 "Fix lib.types.derivations.shell's check" (#7)
Some checks failed
buildbot/nix-eval Build done.
"`lib.types.derivations.shell` uses `lib.packages.isDerivation` but didn't passed an argument, making code using it fail with `error: value is a function while a Boolean was expected`"

Co-authored-by: Austreelis <dev@austreelis.net>
Reviewed-on: #7
Reviewed-by: isabel roses <isabel@isabelroses.com>
Reviewed-by: Jake Hamilton <jake.hamilton@hey.com>
Co-authored-by: Austreelis <austreelis@noreply.git.auxolotl.org>
Co-committed-by: Austreelis <austreelis@noreply.git.auxolotl.org>
2024-08-15 16:06:20 +00:00
Jake Hamilton 7d94b7f665
feat: package extend, dynamic propagation 2024-07-09 02:54:33 -07:00
Jake Hamilton 3f9d287065
refactor: format 2024-07-09 01:49:44 -07:00
Jake Hamilton 62bc2f4eee
feat: propagating hooks and context 2024-07-08 23:07:59 -07:00
Jake Hamilton 0ad14e8795
refactor: make dag helpers easier to reason about 2024-07-07 15:10:37 -07:00
Jake Hamilton 0a63667459
refactor(format): apply formatting 2024-07-07 15:03:48 -07:00
Jake Hamilton 008632bc8b
feat: working transient deps 2024-07-07 15:03:41 -07:00
Jake Hamilton 0f602b1cb7
wip: working single dependency reference via coercion 2024-07-07 15:03:38 -07:00
Alex Kladov 8233d4aedf use correct name for topological sort (#5)
I am 0.8 sure this is a typo, I've never seen this being referred to as topographic sorting!

Reviewed-on: #5
Reviewed-by: Jake Hamilton <jake.hamilton@hey.com>
Co-authored-by: Alex Kladov <aleksey.kladov@gmail.com>
Co-committed-by: Alex Kladov <aleksey.kladov@gmail.com>
2024-06-23 18:39:30 +00:00
Jake Hamilton a707b0f06b
refactor: format all nix code 2024-06-22 10:58:44 -07:00
Jake Hamilton 3479354ec9
refactor: add formatting script 2024-06-22 10:56:18 -07:00
Jake Hamilton 9316874396
fix: add missing prefix for submodules, incorrect var name 2024-06-22 09:11:33 -07:00
Jake Hamilton dc2ce818b8
feat: apply dag defaults 2024-06-22 09:11:32 -07:00
Jake Hamilton 9850da8aa9
fix: resolve issue with extending cross package 2024-06-16 02:24:21 -07:00
Jake Hamilton 0312e3c4cc
feat: working gcc build 2024-06-15 07:08:45 -07:00
Jake Hamilton 1c67c40213
feat: cross compilation package set 2024-06-15 03:58:25 -07:00
Jake Hamilton 2989fdc4fe
refactor: more elegant shorthand support 2024-06-15 02:35:37 -07:00
Jake Hamilton aa1c58f6ee
feat: support submodule longhand 2024-06-14 17:26:58 -07:00
Jake Hamilton fea8c2cd9c
feat: working package export 2024-06-14 04:47:54 -07:00
Jake Hamilton ea0ed58a7e
feat: working module packages 2024-06-14 01:26:16 -07:00
Jake Hamilton 856b88321e
fix: correct broken submodules 2024-06-13 10:22:57 -07:00
Jake Hamilton f9ce7ff68b
feat: system info 2024-06-12 22:00:03 -07:00
Jake Hamilton cd12786be1
docs: update source urls 2024-06-12 06:31:09 -07:00
Jake Hamilton 04bc516868
feat: dag, internal inputs solution, license update 2024-06-12 02:04:53 -07:00
Jake Hamilton f24f0876a9
feat: customizable gnu mirror, remove inputs for monorepo, potluck base 2024-06-11 04:39:26 -07:00
Jake Hamilton 284b8de0d5
refactor: types.package renamed to types.derivation, add lib extend 2024-06-09 06:28:32 -07:00
Jake Hamilton 135bd39ef1
feat: make lib a dynamic arg 2024-06-08 05:23:33 -07:00
Jake Hamilton 64985d6058
feat: bison, gnum4, linux-headers, zlib, python, busybox, glibc, patchelf 2024-06-07 20:53:54 -07:00
Jake Hamilton 3a6d4526a6
feat: tinycc-musl 2024-06-06 23:14:11 -07:00
Jake Hamilton 84633e1eb8
feat: add nyacc 2024-06-05 04:32:04 -07:00
Jake Hamilton 1642b2173b
refactor: code cleanup, move sources to separate module 2024-06-05 04:10:35 -07:00
Jake Hamilton 3fe60580da
feat: add foundation 2024-06-04 19:04:40 -07:00
Jake Hamilton 39ea93b671
docs: add missing documentation 2024-06-03 17:03:28 -07:00
Jake Hamilton f7d6c846f6
chore: initial commit 2024-06-03 03:03:54 -07:00
Jake Hamilton b7456195bd
feat(lib): withDynamicArgs, add basic module system tests 2024-06-02 01:01:38 -07:00
Jake Hamilton 0409563e32
chore: initial commit 2024-06-01 04:00:53 -07:00