Skip to content

Commit

Permalink
add package to flake
Browse files Browse the repository at this point in the history
  • Loading branch information
aveltras committed Dec 12, 2024
1 parent 1803f4d commit 2db3326
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.direnv
result

# Added by cargo

Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "android-tablet-bridge"
version = "0.1.0"
edition = "2024"
edition = "2021"

[dependencies]
adb_client = "2.0.6"
Expand Down
8 changes: 8 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{ lib, rustPlatform }:

rustPlatform.buildRustPackage rec {
pname = "android-tablet-bridge";
version = "0.1.0";
src = ./.;
cargoHash = "sha256-zFWOSn9MN3BNqCWdMYB5hkXWA3n4PeIE2Rv8oFgBcY0=";
}
3 changes: 3 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
]);
in
{
packages.default = pkgs.callPackage ./. {};

devShells.default =
pkgs.mkShell {
ANDROID_HOME = "${android-sdk}/share/android-sdk";
Expand All @@ -49,6 +51,7 @@
(rust-bin.selectLatestNightlyWith (
toolchain:
toolchain.default.override {
targets = [ "x86_64-unknown-linux-gnu" ];
extensions = [
"rust-analyzer"
"rust-src"
Expand Down

0 comments on commit 2db3326

Please sign in to comment.