78 lines
1.4 KiB
Nix
78 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitLab,
|
|
rustPlatform,
|
|
cargo,
|
|
desktop-file-utils,
|
|
glib,
|
|
meson,
|
|
ninja,
|
|
pkg-config,
|
|
rustc,
|
|
wrapGAppsHook4,
|
|
libadwaita,
|
|
libxml2,
|
|
nix-update-script,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "emblem";
|
|
version = "1.5.0";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.gnome.org";
|
|
group = "World";
|
|
owner = "design";
|
|
repo = "emblem";
|
|
rev = version;
|
|
sha256 = "sha256-knq8OKoc8Xv7lOr0ub9+2JfeQE84UlTHR1q4SFFF8Ug=";
|
|
};
|
|
|
|
cargoDeps = rustPlatform.fetchCargoVendor {
|
|
inherit src;
|
|
name = "${pname}-${version}";
|
|
hash = "sha256-CsISaVlRGtVVEna1jyGZo/IdWcJdwHJv6LXcXYha2UE=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
desktop-file-utils
|
|
glib
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
wrapGAppsHook4
|
|
rustPlatform.cargoSetupHook
|
|
cargo
|
|
rustc
|
|
];
|
|
|
|
buildInputs = [
|
|
libadwaita
|
|
libxml2
|
|
];
|
|
|
|
env.NIX_CFLAGS_COMPILE = toString (
|
|
lib.optionals stdenv.hostPlatform.isDarwin [
|
|
"-Wno-error=incompatible-function-pointer-types"
|
|
]
|
|
);
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script { };
|
|
};
|
|
|
|
meta = {
|
|
description = "Generate project icons and avatars from a symbolic icon";
|
|
mainProgram = "emblem";
|
|
homepage = "https://gitlab.gnome.org/World/design/emblem";
|
|
license = lib.licenses.gpl3Plus;
|
|
platforms = lib.platforms.unix;
|
|
maintainers = with lib.maintainers; [
|
|
figsoda
|
|
foo-dogsquared
|
|
];
|
|
teams = [ lib.teams.gnome-circle ];
|
|
};
|
|
}
|