···303packaging Dhall code. For example:
304305```ShellSession
306-$ nix-env --install --attr haskellPackages.dhall-nixpkgs
307-308-$ nix-env --install --attr nix-prefetch-git # Used by dhall-to-nixpkgs
309-310-$ dhall-to-nixpkgs github https://github.com/Gabriella439/dhall-semver.git
311{ buildDhallGitHubPackage, Prelude }:
312 buildDhallGitHubPackage {
313 name = "dhall-semver";
···324 dependencies = [ (Prelude.overridePackage { file = "package.dhall"; }) ];
325 }
326```
0000327328The utility takes care of automatically detecting remote imports and converting
329them to package dependencies. You can also use the utility on local
···303packaging Dhall code. For example:
304305```ShellSession
306+$ nix-shell -p haskellPackages.dhall-nixpkgs nix-prefetch-git
307+[nix-shell]$ dhall-to-nixpkgs github https://github.com/Gabriella439/dhall-semver.git
000308{ buildDhallGitHubPackage, Prelude }:
309 buildDhallGitHubPackage {
310 name = "dhall-semver";
···321 dependencies = [ (Prelude.overridePackage { file = "package.dhall"; }) ];
322 }
323```
324+325+:::{.note}
326+`nix-prefetch-git` has to be in `$PATH` for `dhall-to-nixpkgs` to work.
327+:::
328329The utility takes care of automatically detecting remote imports and converting
330them to package dependencies. You can also use the utility on local