diff --git a/Cargo.toml b/Cargo.toml index a17c6a8..b8aef1c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "polygon-art" -version = "1.0.0" +version = "1.0.1" authors = ["Ingolf Wagner "] edition = "2018" diff --git a/README.md b/README.md index d5331e4..1085afc 100644 --- a/README.md +++ b/README.md @@ -36,11 +36,6 @@ cargo run --example clipping -- --help # run the examples/clipping ```shell nix build ``` -or (if you haven't enabled flakes yet) - -``` shell -nix-shell -p nixFlake --run "nix build" -``` # How to us it (with flakes) @@ -68,3 +63,14 @@ nix-shell -p nixFlake --run "nix build" } ``` +# How to update + +``` shell +cargo update # to update Cargo.lock +``` +and + +``` shell +nix flake update # to update flake.lock +nix build # to verify if everything is ok +``` diff --git a/default.nix b/default.nix index e9fb6c5..432eec3 100644 --- a/default.nix +++ b/default.nix @@ -1,5 +1,4 @@ { rustPlatform, - fetchgit, lib, cairo, geos, @@ -14,18 +13,8 @@ rustPlatform.buildRustPackage { pname = "polygon-art"; - - version = "1.0.0"; - - # nix-prefetch-git-rendered --rev refs/heads/develop https://git.ingolf-wagner.de/palo/polygon-art.git - #src = fetchgit { - # url = "https://git.ingolf-wagner.de/palo/polygon-art.git"; - # rev = "dfb6e0789ec67ee649050ad3b16d8b6a6b38955d"; - # sha256 = "0iqmikvl93pazxfd120hcr0waxav7zy6px5kmdqxifrjgdbda9xx"; - #}; + version = "1.0.1"; src = ./.; - - #cargoSha256 = "05rkn8iihj4j9k179xx7wn2a07hxks050raj6fbxmj6gdx6aj170"; cargoSha256 = "0sgk4hw77cxqbqzd258fz67r7fpjblkm7cqh14n5f1c43y8vgxa0"; verifyCargoDeps = true; diff --git a/flake.nix b/flake.nix index d92c23b..7c51ce4 100644 --- a/flake.nix +++ b/flake.nix @@ -1,9 +1,6 @@ { description = "Framework with examples to generate plotter friendly SVGs"; - - #inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-21.05"; inputs.flake-utils.url = "github:numtide/flake-utils"; - outputs = { self, nixpkgs, flake-utils , ... }: flake-utils.lib.eachDefaultSystem (system: let @@ -12,6 +9,7 @@ in { packages.polygon-art = polygon-art; defaultPackage = polygon-art; + devShell = import ./shell.nix { inherit pkgs; }; } ); }