chore: add nix derivation

This commit is contained in:
2026-09-30 20:18:55 +02:00
parent c54774aec1
commit f93da5b9ec
4 changed files with 135 additions and 0 deletions

27
package.nix Normal file
View File

@@ -0,0 +1,27 @@
{
pkgs,
lib,
}:
let
cargo = (fromTOML (builtins.readFile ./Cargo.toml));
in
pkgs.rustPlatform.buildRustPackage {
pname = cargo.package.name;
version = cargo.package.version;
src = lib.cleanSource ./.;
cargoLock.lockFile = ./Cargo.lock;
nativeBuildInputs = with pkgs; [
clang
pkg-config
rustPlatform.bindgenHook
];
buildInputs = with pkgs; [
libnotify.dev
];
}