nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 blueprint-compiler,
6 desktop-file-utils,
7 meson,
8 ninja,
9 pkg-config,
10 wrapGAppsHook4,
11 appstream,
12 bubblewrap,
13 flatpak,
14 glib-networking,
15 glycin-loaders,
16 gtk4,
17 json-glib,
18 libadwaita,
19 libdex,
20 libglycin,
21 libsoup_3,
22 libxmlb,
23 libyaml,
24 md4c,
25 webkitgtk_6_0,
26 libsecret,
27 nix-update-script,
28}:
29
30stdenv.mkDerivation (finalAttrs: {
31 pname = "bazaar";
32 version = "0.7.6";
33
34 src = fetchFromGitHub {
35 owner = "kolunmi";
36 repo = "bazaar";
37 tag = "v${finalAttrs.version}";
38 hash = "sha256-kLCakA3HNzCYZ3yE5rK05qzhZehoQ74xRLMCQ2DzUDU=";
39 };
40
41 nativeBuildInputs = [
42 blueprint-compiler
43 desktop-file-utils
44 meson
45 ninja
46 pkg-config
47 wrapGAppsHook4
48 ];
49
50 buildInputs = [
51 appstream
52 flatpak
53 glib-networking
54 gtk4
55 json-glib
56 libadwaita
57 libdex
58 libglycin
59 libsoup_3
60 libxmlb
61 libyaml
62 md4c
63 webkitgtk_6_0
64 libsecret
65 ];
66
67 preFixup = ''
68 gappsWrapperArgs+=(
69 --prefix PATH : "$out/bin:${lib.makeBinPath [ bubblewrap ]}"
70 --prefix XDG_DATA_DIRS : "${glycin-loaders}/share"
71 )
72 '';
73
74 passthru = {
75 inherit (libglycin) glycinPathsPatch;
76 updateScript = nix-update-script { };
77 };
78
79 meta = {
80 description = "FlatHub-first app store for GNOME";
81 homepage = "https://github.com/kolunmi/bazaar";
82 license = lib.licenses.gpl3Plus;
83 maintainers = with lib.maintainers; [
84 dtomvan
85 ];
86 mainProgram = "bazaar";
87 platforms = lib.platforms.linux;
88 };
89})