From bf497ec712b0266f207fc0f2e033b7728e5aed13 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Sat, 30 Mar 2024 23:31:22 -0700 Subject: [PATCH] Quote `url` value in `fetchCrateGit` output The special URL syntax is deprecated: https://github.com/NixOS/rfcs/blob/master/rfcs/0045-deprecate-url-syntax.md --- templates/Cargo.nix.tera | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/Cargo.nix.tera b/templates/Cargo.nix.tera index f49d02c5..7675e5b5 100644 --- a/templates/Cargo.nix.tera +++ b/templates/Cargo.nix.tera @@ -66,7 +66,7 @@ in src = fetchCratesIo { inherit name version; sha256 = "{{ crate.source.CratesIo.sha256 }}"; }; {%- elif crate.source.Git.url %} src = fetchCrateGit { - url = {{ crate.source.Git.url }}; + url = "{{ crate.source.Git.url }}"; name = "{{ crate.name }}"; version = "{{ crate.version }}"; rev = "{{ crate.source.Git.rev }}";