@@ -0,0 +1,26 @@
1+{ stdenv, lib, fetchFromGitHub, rustPlatform }:
2+
3+rustPlatform.buildRustPackage rec {
4+ pname = "jrsonnet";
5+ version = "0.3.8";
6+
7+ src = fetchFromGitHub {
8+ rev = "v${version}";
9+ owner = "CertainLach";
10+ repo = "jrsonnet";
11+ sha256 = "sha256-u6P/j7j6S7iPQQh00YFtp2G9Kt4xdWJGsxbuBjvHHZ4=";
12+ };
13+
14+ postInstall = ''
15+ ln -s $out/bin/jrsonnet $out/bin/jsonnet
16+ '';
17+
18+ cargoSha256 = "sha256-KGQ3n3BBgLCT3ITIM8p9AxNa62ek4GHymqoD0eQSVKQ=";
19+
20+ meta = {
21+ description = "Purely-functional configuration language that helps you define JSON data";
22+ maintainers = with lib.maintainers; [ lach ];
23+ license = lib.licenses.mit;
24+ homepage = "https://github.com/CertainLach/jrsonnet";
25+ };
26+}