From 6656b07f2cbd2e5343afdd82eb9967c4a3f1bb0f Mon Sep 17 00:00:00 2001 From: Artemis Tosini Date: Wed, 10 Jul 2024 04:01:10 +0000 Subject: [PATCH] packages/packetry: init --- flake.nix | 1 + packages/packetry/default.nix | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 packages/packetry/default.nix diff --git a/flake.nix b/flake.nix index 6b6def7..19ec3d8 100644 --- a/flake.nix +++ b/flake.nix @@ -62,6 +62,7 @@ hactoolnet = final.callPackage ./packages/hactoolnet { }; ipsw = final.callPackage ./packages/ipsw { }; jlink = final.callPackage ./packages/jlink { }; + packetry = final.callPackage ./packages/packetry { }; stlink-tool = final.callPackage ./packages/stlink-tool { }; zephyrPackages = final.callPackage ./packages/zephyr { }; diff --git a/packages/packetry/default.nix b/packages/packetry/default.nix new file mode 100644 index 0000000..6ca128b --- /dev/null +++ b/packages/packetry/default.nix @@ -0,0 +1,30 @@ +{ + rustPlatform, + fetchFromGitHub, + pkg-config, + gtk4, + pango, +}: + +rustPlatform.buildRustPackage rec { + pname = "packetry"; + version = "unstable-2024-07-08"; + + src = fetchFromGitHub { + owner = "greatscottgadgets"; + repo = pname; + rev = "dffa1bd671ed22cd0b1cdd07c10d1916bea60ba5"; + hash = "sha256-UOn3GevMDRC88MgK7YeIl9AOo6wqRSekA5pLufH3u1k="; + }; + + cargoHash = "sha256-sh3m0AJpR/4w+gqxz84HF5FvvwOHP0G+/GM+X7ep94o="; + + nativeBuildInputs = [ pkg-config ]; + buildInputs = [ + gtk4 + pango + ]; + + # Failures from fontconfig in tests + doCheck = false; +}