mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-14 16:14:50 +00:00
![stuebinm](/assets/img/avatar_default.png)
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
74 lines
1.6 KiB
Nix
74 lines
1.6 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchurl
|
|
, directoryListingUpdater
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, wrapGAppsHook
|
|
, desktop-file-utils
|
|
, feedbackd
|
|
, gtk4
|
|
, libadwaita
|
|
, lm_sensors
|
|
, phoc
|
|
, phosh
|
|
, wayland-protocols
|
|
, json-glib
|
|
, gsound
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "phosh-mobile-settings";
|
|
version = "0.37.0";
|
|
|
|
src = fetchurl {
|
|
# This tarball includes the meson wrapped subproject 'gmobile'.
|
|
url = "https://sources.phosh.mobi/releases/${pname}/${pname}-${version}.tar.xz";
|
|
hash = "sha256-HW3wM/lb8pvr+eDoeqa0iHXiKhBQ8ybBIy0wwHPsrOg=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
phosh
|
|
pkg-config
|
|
wrapGAppsHook
|
|
];
|
|
|
|
buildInputs = [
|
|
desktop-file-utils
|
|
feedbackd
|
|
gtk4
|
|
libadwaita
|
|
lm_sensors
|
|
phoc
|
|
wayland-protocols
|
|
json-glib
|
|
gsound
|
|
];
|
|
|
|
postPatch = ''
|
|
# There are no schemas to compile.
|
|
substituteInPlace meson.build \
|
|
--replace 'glib_compile_schemas: true' 'glib_compile_schemas: false'
|
|
'';
|
|
|
|
postInstall = ''
|
|
# this is optional, but without it phosh-mobile-settings won't know about lock screen plugins
|
|
ln -s '${phosh}/lib/phosh' "$out/lib/phosh"
|
|
'';
|
|
|
|
passthru.updateScript = directoryListingUpdater { };
|
|
|
|
meta = with lib; {
|
|
description = "A settings app for mobile specific things";
|
|
mainProgram = "phosh-mobile-settings";
|
|
homepage = "https://gitlab.gnome.org/World/Phosh/phosh-mobile-settings";
|
|
changelog = "https://gitlab.gnome.org/World/Phosh/phosh-mobile-settings/-/blob/v${version}/debian/changelog";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ rvl ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|