2023-02-09 11:40:11 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitLab
|
|
|
|
, rustPlatform
|
2023-04-29 16:46:19 +00:00
|
|
|
, appstream-glib
|
|
|
|
, desktop-file-utils
|
|
|
|
, glib
|
2023-02-09 11:40:11 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
2023-04-29 16:46:19 +00:00
|
|
|
, pkg-config
|
|
|
|
, wrapGAppsHook4
|
|
|
|
, gtk4
|
2023-02-09 11:40:11 +00:00
|
|
|
, libadwaita
|
|
|
|
, libxml2
|
2023-04-29 16:46:19 +00:00
|
|
|
, darwin
|
2023-02-09 11:40:11 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "emblem";
|
2023-04-29 16:46:19 +00:00
|
|
|
version = "1.2.0";
|
2023-02-09 11:40:11 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.gnome.org";
|
2023-04-29 16:46:19 +00:00
|
|
|
group = "World";
|
|
|
|
owner = "design";
|
|
|
|
repo = "emblem";
|
2023-02-09 11:40:11 +00:00
|
|
|
rev = version;
|
2023-04-29 16:46:19 +00:00
|
|
|
sha256 = "sha256-sgo6rGwmybouTTBTPFrPJv8Wo9I6dcoT7sUVQGFUqkQ=";
|
2023-02-09 11:40:11 +00:00
|
|
|
};
|
|
|
|
|
2023-03-27 19:17:25 +00:00
|
|
|
cargoDeps = rustPlatform.importCargoLock {
|
|
|
|
lockFile = ./Cargo.lock;
|
|
|
|
outputHashes = {
|
2023-04-29 16:46:19 +00:00
|
|
|
"librsvg-2.56.0" = "sha256-PIrec3nfeMo94bkYUrp6B7lie9O1RtiBdPMFUKKLtTQ=";
|
2023-03-27 19:17:25 +00:00
|
|
|
};
|
2023-02-09 11:40:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
appstream-glib
|
2023-04-29 16:46:19 +00:00
|
|
|
desktop-file-utils
|
2023-02-09 11:40:11 +00:00
|
|
|
glib
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
wrapGAppsHook4
|
|
|
|
] ++ (with rustPlatform; [
|
|
|
|
cargoSetupHook
|
|
|
|
rust.cargo
|
|
|
|
rust.rustc
|
|
|
|
]);
|
|
|
|
|
|
|
|
buildInputs = [
|
2023-04-29 16:46:19 +00:00
|
|
|
gtk4
|
2023-02-09 11:40:11 +00:00
|
|
|
libadwaita
|
|
|
|
libxml2
|
2023-04-29 16:46:19 +00:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
darwin.apple_sdk.frameworks.Foundation
|
2023-02-09 11:40:11 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Generate project icons and avatars from a symbolic icon";
|
|
|
|
homepage = "https://gitlab.gnome.org/World/design/emblem";
|
|
|
|
license = licenses.gpl3Plus;
|
2023-04-29 16:46:19 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ figsoda foo-dogsquared ];
|
2023-02-09 11:40:11 +00:00
|
|
|
};
|
|
|
|
}
|