Skip to content

Commit 2ac834a

Browse files
committed
feat: Support nixpkgs# and pkgs# URIs
1 parent c2deae0 commit 2ac834a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/util.ml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ module Util = struct
7171
let parse_target target =
7272
let parse_uri uri attr_opt =
7373
match String.split_on_char ':' uri with
74+
| [ "nixpkgs" ] | [ "pkgs" ] ->
75+
RemoteResource (sprintf_uri_attr_opt "nixpkgs" attr_opt)
7476
| [ path ] ->
7577
let path = Unix.realpath path
7678
and is_multiattr maybe_multiattr =

0 commit comments

Comments
 (0)