From 802da70056a0d6001e2b52bda3823c192c4ef4a6 Mon Sep 17 00:00:00 2001
From: Awiteb
Date: Thu, 7 Aug 2025 19:50:35 +0000
Subject: [PATCH] chore(flake): Add `packages.default` output
Signed-off-by: Awiteb
---
flake.nix | 29 ++++++++++++++++++++++++++---
1 file changed, 26 insertions(+), 3 deletions(-)
diff --git a/flake.nix b/flake.nix
index 83ad191..5f3ede5 100644
--- a/flake.nix
+++ b/flake.nix
@@ -32,13 +32,36 @@
];
nativeBuildInputs = [
- (lib.hiPrio rust-bin.nightly."2025-07-05".rustfmt)
+ (lib.hiPrio rust-bin.nightly."2025-08-07".rustfmt)
rust-bin.stable.latest.default
rust-analyzer
];
-
- buildInputs = [ ];
};
+
+ packages.default =
+ let
+ manifest = (pkgs.lib.importTOML ./Cargo.toml).package;
+ in
+ with pkgs;
+ rustPlatform.buildRustPackage {
+ pname = manifest.name;
+ version = manifest.version;
+ cargoLock.lockFile = ./Cargo.lock;
+ src = lib.cleanSource ./.;
+
+ nativeBuildInputs = [
+ pkg-config
+ ];
+
+ buildInputs = [
+ dbus
+ ];
+
+ meta = {
+ inherit (manifest) description homepage;
+ license = lib.licenses.gpl3Plus;
+ };
+ };
}
);
}