This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
62 lines
1006 B
Nix
62 lines
1006 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
desktop-file-utils,
|
|
nix-update-script,
|
|
fetchFromGitHub,
|
|
flatpak,
|
|
gettext,
|
|
glib,
|
|
granite7,
|
|
gtk4,
|
|
meson,
|
|
ninja,
|
|
pkg-config,
|
|
vala,
|
|
libxml2,
|
|
wrapGAppsHook4,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "sideload";
|
|
version = "6.3.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "elementary";
|
|
repo = "sideload";
|
|
tag = version;
|
|
hash = "sha256-mFaMKY4SdnSdRsHy5vIbJFdMx2FGxYCWmSAWkb99yUI=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
desktop-file-utils
|
|
gettext
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
vala
|
|
wrapGAppsHook4
|
|
];
|
|
|
|
buildInputs = [
|
|
flatpak
|
|
glib
|
|
granite7
|
|
gtk4
|
|
libxml2
|
|
];
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script { };
|
|
};
|
|
|
|
meta = {
|
|
homepage = "https://github.com/elementary/sideload";
|
|
description = "Flatpak installer, designed for elementary OS";
|
|
license = lib.licenses.gpl3Plus;
|
|
platforms = lib.platforms.linux;
|
|
teams = [ lib.teams.pantheon ];
|
|
mainProgram = "io.elementary.sideload";
|
|
};
|
|
}
|