mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-12 02:40:31 +08:00
warehouse: init at 2.0.2
This commit is contained in:
72
pkgs/by-name/wa/warehouse/package.nix
Normal file
72
pkgs/by-name/wa/warehouse/package.nix
Normal file
@@ -0,0 +1,72 @@
|
||||
{
|
||||
lib,
|
||||
blueprint-compiler,
|
||||
desktop-file-utils,
|
||||
fetchFromGitHub,
|
||||
flatpak,
|
||||
flatpak-xdg-utils,
|
||||
glib,
|
||||
gobject-introspection,
|
||||
gtk4,
|
||||
libadwaita,
|
||||
meson,
|
||||
ninja,
|
||||
nix-update-script,
|
||||
pkg-config,
|
||||
python3,
|
||||
stdenv,
|
||||
wrapGAppsHook4,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "warehouse";
|
||||
version = "2.0.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "flattool";
|
||||
repo = "warehouse";
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-EcpHFS0EczUDFs0A/7IuNs1082hsuuS0J6wxSq47vaQ=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
blueprint-compiler
|
||||
desktop-file-utils
|
||||
meson
|
||||
ninja
|
||||
pkg-config
|
||||
wrapGAppsHook4
|
||||
gobject-introspection
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
flatpak
|
||||
flatpak-xdg-utils
|
||||
glib
|
||||
gtk4
|
||||
libadwaita
|
||||
(python3.withPackages (
|
||||
ps: with ps; [
|
||||
pygobject3
|
||||
]
|
||||
))
|
||||
];
|
||||
|
||||
preFixup = ''
|
||||
gappsWrapperArgs+=(
|
||||
--suffix PATH : "${lib.makeBinPath [ flatpak-xdg-utils ]}"
|
||||
)
|
||||
'';
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
changelog = "https://github.com/flattool/warehouse/releases/tag/${finalAttrs.version}";
|
||||
description = "Manage all things Flatpak";
|
||||
homepage = "https://github.com/flattool/warehouse";
|
||||
license = lib.licenses.gpl3Plus;
|
||||
mainProgram = "warehouse";
|
||||
maintainers = with lib.maintainers; [ michaelgrahamevans ];
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user