nixpkgs/pkgs/by-name/ni/nickel/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

53 lines
1.4 KiB
Nix
Raw Normal View History

2022-04-21 23:51:32 +00:00
{ lib
, rustPlatform
, fetchFromGitHub
2023-07-10 16:15:42 +00:00
, python3
2023-05-17 12:12:23 +00:00
, nix-update-script
2022-04-21 23:51:32 +00:00
}:
rustPlatform.buildRustPackage rec {
pname = "nickel";
2024-06-16 20:13:46 +00:00
version = "1.7.0";
2022-04-21 23:51:32 +00:00
src = fetchFromGitHub {
2022-04-21 23:51:32 +00:00
owner = "tweag";
2023-10-11 21:14:29 +00:00
repo = "nickel";
2023-07-10 16:15:42 +00:00
rev = "refs/tags/${version}";
2024-06-16 20:13:46 +00:00
hash = "sha256-EwiZg0iyF9EQ0Z65Re5WgeV7xgs/wPtTQ9XA0iEMEIQ=";
2022-04-21 23:51:32 +00:00
};
cargoHash = "sha256-JwuBjCWETIlBX5xswdznOAmzkL0Rn6cv7pxM6DwAkOs=";
2023-07-10 16:15:42 +00:00
cargoBuildFlags = [ "-p nickel-lang-cli" "-p nickel-lang-lsp" ];
2023-07-10 16:15:42 +00:00
nativeBuildInputs = [
python3
];
2022-04-21 23:51:32 +00:00
outputs = [ "out" "nls" ];
postInstall = ''
mkdir -p $nls/bin
mv $out/bin/nls $nls/bin/nls
'';
2023-05-17 12:12:23 +00:00
passthru.updateScript = nix-update-script { };
2022-04-21 23:51:32 +00:00
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.
'';
2022-12-18 00:04:11 +00:00
changelog = "https://github.com/tweag/nickel/blob/${version}/RELEASES.md";
2022-04-21 23:51:32 +00:00
license = licenses.mit;
maintainers = with maintainers; [ AndersonTorres felschr matthiasbeyer ];
2024-01-02 21:20:08 +00:00
mainProgram = "nickel";
2022-04-21 23:51:32 +00:00
};
}