124 lines
2.1 KiB
Nix
124 lines
2.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
blueprint-compiler,
|
|
desktop-file-utils,
|
|
meson,
|
|
python3,
|
|
ninja,
|
|
pkg-config,
|
|
wrapGAppsHook4,
|
|
appstream,
|
|
flatpak,
|
|
glib-networking,
|
|
glycin-loaders,
|
|
gtk4,
|
|
gtksourceview5,
|
|
json-glib,
|
|
libadwaita,
|
|
libdex,
|
|
libglycin,
|
|
libglycin-gtk4,
|
|
libproxy,
|
|
libsoup_3,
|
|
libxmlb,
|
|
libxml2,
|
|
libyaml,
|
|
malcontent,
|
|
md4c,
|
|
webkitgtk_6_0,
|
|
libsecret,
|
|
nix-update-script,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "bazaar";
|
|
version = "0.9.1";
|
|
|
|
__structuredAttrs = true;
|
|
strictDeps = true;
|
|
|
|
outputs = [
|
|
"out"
|
|
# for libbge
|
|
"lib"
|
|
"dev"
|
|
];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bazaar-org";
|
|
repo = "bazaar";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-9J+XI5JnV8Yfk3xRI/VM5RSG4eMafbw2rBRpPMIu5yA=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
blueprint-compiler
|
|
desktop-file-utils
|
|
libxml2
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
wrapGAppsHook4
|
|
(python3.withPackages (p: [
|
|
p.babel
|
|
p.pygobject3
|
|
]))
|
|
];
|
|
|
|
buildInputs = [
|
|
appstream
|
|
flatpak
|
|
glib-networking
|
|
gtk4
|
|
gtksourceview5
|
|
json-glib
|
|
libadwaita
|
|
libdex
|
|
libglycin
|
|
libglycin-gtk4
|
|
glycin-loaders
|
|
libproxy
|
|
libsoup_3
|
|
libxmlb
|
|
libyaml
|
|
malcontent
|
|
md4c
|
|
webkitgtk_6_0
|
|
libsecret
|
|
];
|
|
|
|
postInstall = ''
|
|
moveToOutput bin/bge-demo $dev
|
|
'';
|
|
|
|
preFixup = ''
|
|
gappsWrapperArgs+=(
|
|
# bazaar needs bazaar-dl-worker in path
|
|
--prefix PATH : $out/bin
|
|
--prefix LD_LIBRARY_PATH : $lib/lib
|
|
# gsettings schemas are moved to $lib
|
|
--prefix XDG_DATA_DIRS : $lib/share
|
|
)
|
|
|
|
# isn't automatically picked out for some reason, while $dev/bin/bge-demo is...
|
|
wrapGApp $out/bin/bazaar
|
|
'';
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script { };
|
|
};
|
|
|
|
meta = {
|
|
description = "FlatHub-first app store for GNOME";
|
|
homepage = "https://github.com/kolunmi/bazaar";
|
|
license = lib.licenses.gpl3Plus;
|
|
maintainers = with lib.maintainers; [
|
|
dtomvan
|
|
];
|
|
mainProgram = "bazaar";
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
})
|