# SPDX-FileCopyrightText: 2020 Luke Granger-Brown <depot@lukegb.com>
#
# SPDX-License-Identifier: Apache-2.0

{ depot, ... }@args:
(depot.third_party.buildGo.package {
  name = "nar";
  path = "hg.lukegb.com/lukegb/depot/go/nix/nar";
  srcs = [
    ./dirfs.go
    ./inmemoryfs.go
    ./narpacker.go
    ./narunpacker.go
  ];
  deps = with depot; [
    go.nix.nixwire
  ];
}) // {
  narinfo = import ./narinfo args;
}