difftreelog
build add nix flake
in: master
5 files changed
Cargo.lockdiffbeforeafterboth63[[package]]63[[package]]64name = "clap"64name = "clap"65version = "3.0.0-beta.1"65version = "3.0.0-beta.1"66source = "git+https://github.com/clap-rs/clap?rev=48d308a8ab9e96d4b21336e428feee420dbac51d#48d308a8ab9e96d4b21336e428feee420dbac51d"66source = "git+https://github.com/clap-rs/clap?rev=ddd55e57dc4b0205e02c121f1116704bd1b51956#ddd55e57dc4b0205e02c121f1116704bd1b51956"67dependencies = [67dependencies = [68 "atty",68 "atty",69 "bitflags",69 "bitflags",81[[package]]81[[package]]82name = "clap_derive"82name = "clap_derive"83version = "3.0.0-beta.1"83version = "3.0.0-beta.1"84source = "git+https://github.com/clap-rs/clap?rev=48d308a8ab9e96d4b21336e428feee420dbac51d#48d308a8ab9e96d4b21336e428feee420dbac51d"84source = "git+https://github.com/clap-rs/clap?rev=ddd55e57dc4b0205e02c121f1116704bd1b51956#ddd55e57dc4b0205e02c121f1116704bd1b51956"85dependencies = [85dependencies = [86 "heck",86 "heck",87 "proc-macro-error",87 "proc-macro-error",cmds/jrsonnet/Cargo.tomldiffbeforeafterboth--- a/cmds/jrsonnet/Cargo.toml
+++ b/cmds/jrsonnet/Cargo.toml
@@ -22,4 +22,4 @@
[dependencies.clap]
git = "https://github.com/clap-rs/clap"
-rev = "48d308a8ab9e96d4b21336e428feee420dbac51d"
+rev = "ddd55e57dc4b0205e02c121f1116704bd1b51956"
crates/jrsonnet-cli/Cargo.tomldiffbeforeafterboth--- a/crates/jrsonnet-cli/Cargo.toml
+++ b/crates/jrsonnet-cli/Cargo.toml
@@ -13,4 +13,4 @@
[dependencies.clap]
git = "https://github.com/clap-rs/clap"
-rev = "48d308a8ab9e96d4b21336e428feee420dbac51d"
+rev = "ddd55e57dc4b0205e02c121f1116704bd1b51956"
flake.lockdiffbeforeafterboth--- /dev/null
+++ b/flake.lock
@@ -0,0 +1,43 @@
+{
+ "nodes": {
+ "flake-utils": {
+ "locked": {
+ "lastModified": 1597053966,
+ "narHash": "sha256-f9lbPS/GJ1His8fsDqM6gfa8kSqREU4eKiMCS5hrKg4=",
+ "owner": "numtide",
+ "repo": "flake-utils",
+ "rev": "ec20f52e2ff61e9c36c2b894b62fc1b4bd04c71b",
+ "type": "github"
+ },
+ "original": {
+ "owner": "numtide",
+ "repo": "flake-utils",
+ "type": "github"
+ }
+ },
+ "nixpkgs": {
+ "locked": {
+ "lastModified": 1597057899,
+ "narHash": "sha256-U144beTNlMdersGcr49IGU2YP1HjeS3pT3+FbOXN7r8=",
+ "owner": "NixOS",
+ "repo": "nixpkgs",
+ "rev": "32b46dd897ab2143a609988a04d87452f0bbef59",
+ "type": "github"
+ },
+ "original": {
+ "owner": "NixOS",
+ "ref": "nixos-unstable",
+ "repo": "nixpkgs",
+ "type": "github"
+ }
+ },
+ "root": {
+ "inputs": {
+ "flake-utils": "flake-utils",
+ "nixpkgs": "nixpkgs"
+ }
+ }
+ },
+ "root": "root",
+ "version": 7
+}
flake.nixdiffbeforeafterboth--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,18 @@
+{
+ description = "Rust jsonnet implementation";
+
+ inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
+ inputs.flake-utils.url = "github:numtide/flake-utils";
+
+ outputs = { self, nixpkgs, flake-utils }:
+ flake-utils.lib.eachDefaultSystem (system:
+ let
+ pkgs = nixpkgs.legacyPackages.${system};
+ jrsonnet = pkgs.rustPlatform.buildRustPackage rec {
+ pname = "jrsonnet";
+ version = "0.1.0";
+ src = self;
+ cargoSha256 = "13fc96lvcg8riv8s8k44nshyc9jj390x5wmizfplny8lrxcr14lk";
+ };
+ in { defaultPackage = jrsonnet; });
+}