52 lines
1.4 KiB
Nix
52 lines
1.4 KiB
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, python3
|
|
, nix-update-script
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "nickel";
|
|
version = "1.8.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tweag";
|
|
repo = "nickel";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-hlcF04m3SI66d1C9U1onog2QoEMfqtHb7V++47ZmeW4=";
|
|
};
|
|
|
|
cargoHash = "sha256-VFjZb7lsqOSt5Rc94dhS4Br/5i/HXPHZMqC1c0/LzHU=";
|
|
|
|
cargoBuildFlags = [ "-p nickel-lang-cli" "-p nickel-lang-lsp" ];
|
|
|
|
nativeBuildInputs = [
|
|
python3
|
|
];
|
|
|
|
outputs = [ "out" "nls" ];
|
|
|
|
postInstall = ''
|
|
mkdir -p $nls/bin
|
|
mv $out/bin/nls $nls/bin/nls
|
|
'';
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = with lib; {
|
|
homepage = "https://nickel-lang.org/";
|
|
description = "Better configuration for less";
|
|
longDescription = ''
|
|
Nickel is the cheap configuration language.
|
|
|
|
Its purpose is to automate the generation of static configuration files -
|
|
think JSON, YAML, XML, or your favorite data representation language -
|
|
that are then fed to another system. It is designed to have a simple,
|
|
well-understood core: it is in essence JSON with functions.
|
|
'';
|
|
changelog = "https://github.com/tweag/nickel/blob/${version}/RELEASES.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ AndersonTorres felschr matthiasbeyer ];
|
|
mainProgram = "nickel";
|
|
};
|
|
}
|