From c1ef8cff851b81e10b7d1ecb79df19caa2184091 Mon Sep 17 00:00:00 2001 From: Vincent Demeester Date: Fri, 1 Dec 2023 14:13:11 +0100 Subject: [PATCH] Remove default.nix and link to external package Signed-off-by: Vincent Demeester --- README.md | 12 ++---------- default.nix | 44 -------------------------------------------- 2 files changed, 2 insertions(+), 54 deletions(-) delete mode 100644 default.nix diff --git a/README.md b/README.md index 3df9017..6fae3a1 100644 --- a/README.md +++ b/README.md @@ -47,21 +47,13 @@ yay -S snazy-bin ### [Nix/NixOS](https://nixos.org/) -This repository includes a `flake` (see [NixOS Wiki on -Flakes](https://nixos.wiki/wiki/Flakes)). +The [`vdemeester/chick-group`](https://github.com/vdemeester/chick-group) includes this package. If you have the `nix flake` command enabled (currently on nixos-unstable, `nixos-version` >= 22.05) ```shell -nix run github:chmouel/snazy -- --help # your args are here -``` - -You can also use it to test and develop the source code: - -```shell -nix develop # drops you in a shell with all the thing needed -nix flake check # runs cargo test, rustfmt, … +nix run github:vdemeester/chick-group#snazy -- --help # your args are here ``` ### [Docker](https://github.com/chmouel/snazy/pkgs/container/snazy) diff --git a/default.nix b/default.nix deleted file mode 100644 index 04a9a57..0000000 --- a/default.nix +++ /dev/null @@ -1,44 +0,0 @@ -{ lib -, naersk -, stdenv -, clangStdenv -, hostPlatform -, targetPlatform -, pkg-config -, libiconv -, rustfmt -, cargo -, rustc -}: - -let - cargoToml = (builtins.fromTOML (builtins.readFile ./Cargo.toml)); -in - -naersk.lib."${targetPlatform.system}".buildPackage rec { - src = ./.; - - buildInputs = [ - rustfmt - pkg-config - cargo - rustc - libiconv - ]; - checkInputs = [ cargo rustc ]; - - doCheck = true; - CARGO_BUILD_INCREMENTAL = "false"; - RUST_BACKTRACE = "full"; - copyLibs = true; - - name = cargoToml.package.name; - version = cargoToml.package.version; - - meta = with lib; { - description = cargoToml.package.description; - homepage = cargoToml.package.homepage; - license = with licenses; [ mit ]; - maintainers = with maintainers; [ ]; - }; -}