Files
lix/tests/lang
2d1d81114d Add parseFlakeRef and flakeRefToString builtins (#8670)
Over the last year or so I've run into several use cases where I need to
parse and/or serialize URLs for use by `builtins.fetchTree` or
`builtins.getFlake`, largely in order to produce _lockfile-like_ files
for lang2nix frameworks or tools which use `nix` internally to drive
builds.

I've gone through the painstaking process of emulating
`nix::FlakeRef::fromAttrs` and `nix::parseFlakeRef` several times with
mixed success; but these are difficult to create and even harder to
maintain if I hope to stay aligned with changes to the real
parser/serializer.

I understand why adding new `builtins` isn't something we want to do
flagrantly. I'm recommending this addition simply because I keep
encountering use cases where I need to parse/serialize these URIs in
`nix` expressions, and I want a reliable solution.

Co-authored-by: Eelco Dolstra <edolstra@gmail.com>
Co-authored-by: John Ericson <git@JohnEricson.me>
2023-07-25 17:43:33 +00:00
..
2019-05-03 17:23:36 +02:00
2018-02-06 16:48:08 -05:00
2023-07-11 21:43:09 -04:00
2023-07-11 21:43:09 -04:00
2023-07-11 21:43:09 -04:00
2006-03-01 16:26:13 +00:00
2023-07-11 21:43:09 -04:00
2014-09-22 16:05:00 +02:00
2023-07-11 21:43:09 -04:00
2023-07-11 21:43:09 -04:00
2017-07-18 08:04:01 -04:00
2023-07-11 21:43:09 -04:00
2023-07-11 21:43:09 -04:00
2023-07-11 21:43:09 -04:00
2006-05-02 11:20:55 +00:00
2023-07-11 21:43:09 -04:00
2014-09-22 16:05:00 +02:00
2023-07-11 21:43:09 -04:00
2023-07-11 21:43:09 -04:00
2023-07-11 21:43:09 -04:00
2007-01-29 14:23:09 +00:00
2023-07-11 21:43:09 -04:00
2006-10-17 11:16:02 +00:00
2015-07-23 19:23:11 +02:00
2015-07-23 19:23:11 +02:00
2018-05-24 12:51:34 +00:00
2018-05-24 12:51:34 +00:00
2011-07-06 10:58:53 +00:00
2011-07-06 10:58:53 +00:00
2016-02-15 15:01:26 +01:00
2006-03-01 16:26:13 +00:00
2016-11-13 17:20:34 +01:00
2016-11-13 17:20:34 +01:00
2014-10-18 20:34:48 -04:00
2014-09-22 16:05:00 +02:00
2014-09-22 16:05:00 +02:00
2013-12-31 20:59:49 +00:00
2013-12-31 20:59:49 +00:00
2014-02-26 19:08:44 +01:00
2014-02-26 19:08:44 +01:00
2014-02-26 19:08:44 +01:00
2014-02-26 19:08:44 +01:00
2020-03-04 11:43:48 +01:00
2020-03-04 11:43:48 +01:00
2023-07-11 21:43:09 -04:00
2019-06-24 17:09:09 +02:00
2019-06-24 17:09:09 +02:00
2019-05-03 17:23:36 +02:00
2019-05-03 17:23:36 +02:00
2019-05-03 17:23:36 +02:00
2019-05-03 17:23:36 +02:00
2019-05-03 17:23:36 +02:00
2006-03-01 16:26:13 +00:00
2004-10-27 12:41:53 +00:00
2006-03-01 16:26:13 +00:00
2023-07-11 21:43:09 -04:00
2018-02-06 16:48:08 -05:00
2023-07-11 21:43:09 -04:00
2023-07-11 21:43:09 -04:00
2023-07-11 21:43:09 -04:00
2006-05-02 11:15:04 +00:00
2006-05-02 11:20:55 +00:00
2014-05-29 19:04:27 +02:00
2014-09-22 16:05:00 +02:00
2014-09-22 16:05:00 +02:00
2021-11-24 13:40:46 +01:00
2021-11-24 13:40:46 +01:00
2010-05-07 14:46:47 +00:00
2010-05-07 14:46:47 +00:00
2010-05-07 14:46:47 +00:00
2019-03-24 11:36:49 +01:00
2010-03-23 14:51:32 +00:00
2014-05-26 14:26:29 +02:00
2014-05-26 14:26:29 +02:00
2017-11-14 15:10:52 +01:00
2023-07-11 21:43:09 -04:00
2023-07-10 20:58:19 -04:00
2023-07-11 21:43:09 -04:00
2004-10-27 12:41:53 +00:00
2023-07-11 21:43:09 -04:00
2006-08-16 10:29:43 +00:00
2023-07-11 21:43:09 -04:00
2023-07-11 21:43:09 -04:00
2023-07-11 21:43:09 -04:00
2023-07-11 21:43:09 -04:00