--- a/Cargo.lock +++ b/Cargo.lock @@ -63,7 +63,7 @@ [[package]] name = "clap" version = "3.0.0-beta.1" -source = "git+https://github.com/clap-rs/clap?rev=48d308a8ab9e96d4b21336e428feee420dbac51d#48d308a8ab9e96d4b21336e428feee420dbac51d" +source = "git+https://github.com/clap-rs/clap?rev=ddd55e57dc4b0205e02c121f1116704bd1b51956#ddd55e57dc4b0205e02c121f1116704bd1b51956" dependencies = [ "atty", "bitflags", @@ -81,7 +81,7 @@ [[package]] name = "clap_derive" version = "3.0.0-beta.1" -source = "git+https://github.com/clap-rs/clap?rev=48d308a8ab9e96d4b21336e428feee420dbac51d#48d308a8ab9e96d4b21336e428feee420dbac51d" +source = "git+https://github.com/clap-rs/clap?rev=ddd55e57dc4b0205e02c121f1116704bd1b51956#ddd55e57dc4b0205e02c121f1116704bd1b51956" dependencies = [ "heck", "proc-macro-error", --- 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" --- 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" --- /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 +} --- /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; }); +}