nixpkgs/pkgs/development/interpreters/nickel/default.nix

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

35 lines
1 KiB
Nix
Raw Normal View History

2022-04-21 23:51:32 +00:00
{ lib
, rustPlatform
, fetchFromGitHub
}:
rustPlatform.buildRustPackage rec {
pname = "nickel";
2022-12-17 20:34:27 +00:00
version = "0.3.1";
2022-04-21 23:51:32 +00:00
src = fetchFromGitHub {
owner = "tweag";
repo = pname;
rev = "refs/tags/${version}"; # because pure ${version} doesn't work
2022-12-17 20:34:27 +00:00
hash = "sha256-bUUQP7ze0j8d+VEckexDOferAgAHdKZbdKR3q0TNOeE=";
2022-04-21 23:51:32 +00:00
};
2022-12-17 20:34:27 +00:00
cargoSha256 = "sha256-E8eIUASjCIVsZhptbU41VfK8bFmA4FTT3LVagLrgUso=";
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 ];
};
}