bign-handheld-thumbnailer: build with meson

This commit is contained in:
ilkecan
2026-02-08 17:19:59 +03:00
parent 3efb0b8ab5
commit adf23eb13e
@@ -1,15 +1,20 @@
{
lib,
bign-handheld-thumbnailer,
cargo,
fetchFromGitHub,
glib,
meson,
ninja,
nix-update-script,
pkg-config,
rustPlatform,
rustc,
stdenv,
testers,
}:
rustPlatform.buildRustPackage (finalAttrs: {
stdenv.mkDerivation (finalAttrs: {
pname = "bign-handheld-thumbnailer";
version = "1.2.0";
@@ -20,14 +25,28 @@ rustPlatform.buildRustPackage (finalAttrs: {
hash = "sha256-+iWf5ybCUHlZz3Ybw3bwLKzlsmiVwep2alVDvL9bG2A=";
};
cargoHash = "sha256-vfTbfg1CAbc//UZtI5trw6znqnNGy6AiCSQNE68vch8=";
cargoDeps = rustPlatform.fetchCargoVendor {
inherit (finalAttrs) pname version src;
hash = "sha256-vfTbfg1CAbc//UZtI5trw6znqnNGy6AiCSQNE68vch8=";
};
strictDeps = true;
nativeBuildInputs = [ pkg-config ];
nativeBuildInputs = [
cargo
meson
ninja
pkg-config
rustPlatform.cargoSetupHook
rustc
];
buildInputs = [ glib ];
mesonFlags = [
"-Dupdate_mime_database=false"
];
passthru = {
tests.version = testers.testVersion {
package = bign-handheld-thumbnailer;