mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
61 lines
1.2 KiB
Nix
61 lines
1.2 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, appstream-glib
|
|
, desktop-file-utils
|
|
, gobject-introspection
|
|
, libadwaita
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, python3
|
|
, wrapGAppsHook4
|
|
, apx
|
|
, gnome-console
|
|
, vte-gtk4
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "apx-gui";
|
|
version = "1.0.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Vanilla-OS";
|
|
repo = "apx-gui";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-UgDBDk4ChgWFUoz5BAXbn0b4Bngs9/hTmcu1Y4FXLU0=";
|
|
};
|
|
|
|
strictDeps = true;
|
|
|
|
nativeBuildInputs = [
|
|
appstream-glib
|
|
desktop-file-utils
|
|
gobject-introspection
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
(python3.withPackages (ps: [ ps.pygobject3 ps.requests ]))
|
|
wrapGAppsHook4
|
|
];
|
|
|
|
buildInputs = [
|
|
libadwaita
|
|
vte-gtk4
|
|
];
|
|
|
|
preFixup = ''
|
|
gappsWrapperArgs+=(
|
|
--prefix PATH : "${lib.makeBinPath [ apx gnome-console ]}"
|
|
)
|
|
'';
|
|
|
|
meta = {
|
|
description = "GUI frontend for Apx in GTK 4 and Libadwaita";
|
|
homepage = "https://github.com/Vanilla-OS/apx-gui";
|
|
license = lib.licenses.gpl3Only;
|
|
platforms = lib.platforms.linux;
|
|
maintainers = with lib.maintainers; [ chewblacka ];
|
|
mainProgram = "apx-gui";
|
|
};
|
|
})
|