Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

share-preview: init at 0.3.0 #256453

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 70 additions & 0 deletions pkgs/by-name/sh/share-preview/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
{ fetchFromGitHub
, rustPlatform
, pkg-config
, lib
, openssl
, glib
, graphene
, pango
, gdk-pixbuf
, gtk4
, libadwaita
, meson
, desktop-file-utils
, ninja
, wrapGAppsHook
}:

rustPlatform.buildRustPackage rec {
pname = "share-preview";
version = "0.3.0";

src = fetchFromGitHub {
owner = "rafaelmardojai";
repo = "share-preview";
rev = "refs/tags/${version}";
hash = "sha256-CsnWQxE2r+uWwuEzHpY/lpWS5i8OXvhRKvy2HzqnQ5U=";
};

buildPhase = ''
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should not be needed

runHook preBuild

meson builddir --prefix=$out
meson builddir --reconfigure
cd builddir

runHook postBuild
'';

nativeBuildInputs = [
pkg-config
meson
glib
gtk4
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
gtk4
wrapGAppsHook4

desktop-file-utils
ninja
];
buildInputs = [
openssl
glib
graphene
pango
gdk-pixbuf
gtk4
libadwaita
wrapGAppsHook
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
wrapGAppsHook

];

cargoHash = "sha256-H0IDKf5dz+zPnh/zHYP7kCYWHLeP33zHip6K+KCq4is=";

meta = with lib; {
description = "Test social media cards locally";
longDescription = ''
Preview and debug websites metadata tags for social media share
'';
homepage = "https://github.com/rafaelmardojai/share-preview";
license = licenses.gpl3Only;
maintainers = with maintainers; [ gaykitty ];
platforms = platforms.all;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mainProgram is always needed now, despite being the same with pname.

};
}
Loading