From f13e8be9f32c5ca7f70dc809e3d43144f8e31396 Mon Sep 17 00:00:00 2001 From: Akshay Date: Sun, 7 May 2023 17:11:48 +0530 Subject: progress --- flake.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 28b7a60..a617508 100644 --- a/flake.nix +++ b/flake.nix @@ -1,5 +1,5 @@ { - description = "build rust binaries"; + description = "a unixy rss/atom reader"; outputs = { self, nixpkgs }: let @@ -13,7 +13,7 @@ { overlays.default = final: prev: { - rust-bin = + syn = let packageMeta = (final.lib.importTOML ./Cargo.toml).package; in @@ -21,15 +21,17 @@ pname = packageMeta.name; inherit (packageMeta) version; src = self; + nativeBuildInputs = [ final.pkg-config ]; + buildInputs = [ final.openssl ]; cargoLock.lockFile = ./Cargo.lock; }; }; packages = forAllSystems (system: { - inherit (nixpkgsFor."${system}") rust-bin; + inherit (nixpkgsFor."${system}") syn; }); - defaultPackage = forAllSystems (system: self.packages."${system}".rust-bin); + defaultPackage = forAllSystems (system: self.packages."${system}".syn); devShell = forAllSystems (system: let -- cgit v1.2.3