Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport 24.11]: nickel: 1.8.0 -> 1.9.1 #367328

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions pkgs/by-name/ni/nickel/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@

rustPlatform.buildRustPackage rec {
pname = "nickel";
version = "1.8.1";
version = "1.9.1";

src = fetchFromGitHub {
owner = "tweag";
repo = "nickel";
rev = "refs/tags/${version}";
hash = "sha256-hlcF04m3SI66d1C9U1onog2QoEMfqtHb7V++47ZmeW4=";
hash = "sha256-oOcVbAWNj0iVC3128QF4lKYfZbasqegwIfzv7qD8fDs=";
};

cargoHash = "sha256-VFjZb7lsqOSt5Rc94dhS4Br/5i/HXPHZMqC1c0/LzHU=";
cargoHash = "sha256-y5ZV6aLXzFZg41ZHGSSL6t+BN30EBHKzXuT6478hQUY=";

cargoBuildFlags = [
"-p nickel-lang-cli"
Expand All @@ -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
Expand Down
Loading