From e68e9d8306c7ec8439db06b16c6727abce045912 Mon Sep 17 00:00:00 2001 From: Vladimir Timofeenko Date: Sun, 24 Nov 2024 19:17:10 -0800 Subject: [PATCH 1/2] nickel: 1.8.1 -> 1.9.0 (cherry picked from commit 5c182f857e5f877234f632414dd643f0846676a7) Signed-off-by: Matthias Beyer --- pkgs/by-name/ni/nickel/package.nix | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/ni/nickel/package.nix b/pkgs/by-name/ni/nickel/package.nix index 16a9662656212..3f5e12fdb9146 100644 --- a/pkgs/by-name/ni/nickel/package.nix +++ b/pkgs/by-name/ni/nickel/package.nix @@ -8,16 +8,16 @@ rustPlatform.buildRustPackage rec { pname = "nickel"; - version = "1.8.1"; + version = "1.9.0"; src = fetchFromGitHub { owner = "tweag"; repo = "nickel"; rev = "refs/tags/${version}"; - hash = "sha256-hlcF04m3SI66d1C9U1onog2QoEMfqtHb7V++47ZmeW4="; + hash = "sha256-chIpZqs1tyXk4YQBlF4K/Ofrn1CrijbYant9+SSppGU="; }; - cargoHash = "sha256-VFjZb7lsqOSt5Rc94dhS4Br/5i/HXPHZMqC1c0/LzHU="; + cargoHash = "sha256-MaMzwvvWP+vmdBVCefXI6dehuTyPcPW2b6KdarxjBjA="; cargoBuildFlags = [ "-p nickel-lang-cli" @@ -33,6 +33,16 @@ rustPlatform.buildRustPackage rec { "nls" ]; + # This fixes the way comrak is defined as a dependency, without the sed the build fails: + # + # cargo metadata failure: error: Package `nickel-lang-core v0.10.0 + # (/build/source/core)` does not have feature `comrak`. It has an optional + # dependency with that name, but that dependency uses the "dep:" syntax in + # the features table, so it does not have an implicit feature with that name. + preBuild = '' + sed -i 's/dep:comrak/comrak/' core/Cargo.toml + ''; + postInstall = '' mkdir -p $nls/bin mv $out/bin/nls $nls/bin/nls From e15bd6e076f88bb55ee676ab20d82fef35e6278e Mon Sep 17 00:00:00 2001 From: Vladimir Timofeenko Date: Sat, 21 Dec 2024 10:29:11 -0800 Subject: [PATCH 2/2] nickel: 1.9.0 -> 1.9.1 (cherry picked from commit 00855294f2a12fb8a8ee97193643cf01c8d2c32d) Signed-off-by: Matthias Beyer --- pkgs/by-name/ni/nickel/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/ni/nickel/package.nix b/pkgs/by-name/ni/nickel/package.nix index 3f5e12fdb9146..137567fc46445 100644 --- a/pkgs/by-name/ni/nickel/package.nix +++ b/pkgs/by-name/ni/nickel/package.nix @@ -8,16 +8,16 @@ rustPlatform.buildRustPackage rec { pname = "nickel"; - version = "1.9.0"; + version = "1.9.1"; src = fetchFromGitHub { owner = "tweag"; repo = "nickel"; rev = "refs/tags/${version}"; - hash = "sha256-chIpZqs1tyXk4YQBlF4K/Ofrn1CrijbYant9+SSppGU="; + hash = "sha256-oOcVbAWNj0iVC3128QF4lKYfZbasqegwIfzv7qD8fDs="; }; - cargoHash = "sha256-MaMzwvvWP+vmdBVCefXI6dehuTyPcPW2b6KdarxjBjA="; + cargoHash = "sha256-y5ZV6aLXzFZg41ZHGSSL6t+BN30EBHKzXuT6478hQUY="; cargoBuildFlags = [ "-p nickel-lang-cli"