2022-04-27 09:35:20 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "nickel";
|
2022-12-17 10:02:37 +00:00
|
|
|
version = "0.3.0";
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tweag";
|
|
|
|
repo = pname;
|
|
|
|
rev = "refs/tags/${version}"; # because pure ${version} doesn't work
|
2022-12-17 10:02:37 +00:00
|
|
|
hash = "sha256-L2MQ0dS9mZ+SOFoS/rclPtEl3/iFyEKn6Bse/ysHyKo=";
|
2022-04-27 09:35:20 +00:00
|
|
|
};
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
cargoSha256 = "sha256-3ucWGmylRatJOl8zktSRMXr5p6L+5+LQV6ALJTtQpiA=";
|
2022-04-27 09:35:20 +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.
|
|
|
|
'';
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
|
|
|
};
|
|
|
|
}
|