18 stdenv.mkDerivation (finalAttrs: {
19 pname = "share-preview";
22 src = fetchFromGitHub {
23 owner = "rafaelmardojai";
24 repo = "share-preview";
25 rev = finalAttrs.version;
26 hash = "sha256-FqualaTkirB+gBcgkThQpSBHhM4iaXkiGujwBUnUX0E=";
29 cargoDeps = rustPlatform.fetchCargoTarball {
30 inherit (finalAttrs) src;
31 name = "share-preview-${finalAttrs.version}";
32 hash = "sha256-Gh6bQZD1mlkj3XeGp+fF/NShC4PZCZSEqymrsSdX4Ec=";
39 rustPlatform.cargoSetupHook
51 ++ lib.optionals stdenv.hostPlatform.isDarwin [
52 darwin.apple_sdk.frameworks.Foundation
53 darwin.apple_sdk.frameworks.SystemConfiguration
56 env.NIX_CFLAGS_COMPILE = toString (
57 lib.optionals stdenv.hostPlatform.isDarwin [ "-Wno-error=incompatible-function-pointer-types" ]
61 description = "Preview and debug websites metadata tags for social media share";
62 homepage = "https://apps.gnome.org/SharePreview";
63 license = lib.licenses.gpl3Plus;
64 mainProgram = "share-preview";
65 maintainers = lib.teams.gnome-circle.members;
66 platforms = lib.platforms.unix;