Improve nix setup

This commit is contained in:
dolphinau 2025-08-27 18:11:12 +02:00
parent 6f85efcd26
commit 580f80b521
No known key found for this signature in database
6 changed files with 113 additions and 33 deletions

16
default.nix Normal file
View file

@ -0,0 +1,16 @@
{pkgs ? import <nixpkgs> {}}: let
manifest = (pkgs.lib.importTOML ./Cargo.toml).package;
in
pkgs.rustPlatform.buildRustPackage {
pname = manifest.name;
version = manifest.version;
cargoLock.lockFile = ./Cargo.lock;
src = pkgs.lib.cleanSource ./.;
nativeBuildInputs = with pkgs; [
pkg-config
];
buildInputs = with pkgs; [
openssl
];
}