nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitLab,
5 rustPlatform,
6 cargo,
7 desktop-file-utils,
8 glib,
9 meson,
10 ninja,
11 pkg-config,
12 rustc,
13 wrapGAppsHook4,
14 libadwaita,
15 libxml2,
16 nix-update-script,
17}:
18
19stdenv.mkDerivation rec {
20 pname = "emblem";
21 version = "1.5.0";
22
23 src = fetchFromGitLab {
24 domain = "gitlab.gnome.org";
25 group = "World";
26 owner = "design";
27 repo = "emblem";
28 rev = version;
29 sha256 = "sha256-knq8OKoc8Xv7lOr0ub9+2JfeQE84UlTHR1q4SFFF8Ug=";
30 };
31
32 cargoDeps = rustPlatform.fetchCargoVendor {
33 inherit pname version src;
34 hash = "sha256-CsISaVlRGtVVEna1jyGZo/IdWcJdwHJv6LXcXYha2UE=";
35 };
36
37 nativeBuildInputs = [
38 desktop-file-utils
39 glib
40 meson
41 ninja
42 pkg-config
43 wrapGAppsHook4
44 rustPlatform.cargoSetupHook
45 cargo
46 rustc
47 ];
48
49 buildInputs = [
50 libadwaita
51 libxml2
52 ];
53
54 env.NIX_CFLAGS_COMPILE = toString (
55 lib.optionals stdenv.hostPlatform.isDarwin [
56 "-Wno-error=incompatible-function-pointer-types"
57 ]
58 );
59
60 passthru = {
61 updateScript = nix-update-script { };
62 };
63
64 meta = {
65 description = "Generate project icons and avatars from a symbolic icon";
66 mainProgram = "emblem";
67 homepage = "https://gitlab.gnome.org/World/design/emblem";
68 license = lib.licenses.gpl3Plus;
69 platforms = lib.platforms.unix;
70 maintainers = [ ];
71 teams = [ lib.teams.gnome-circle ];
72 };
73}