nixpkgs/pkgs/by-name/po/portfolio-filemanager/package.nix
Silvan Mosberger 4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00

88 lines
1.6 KiB
Nix

{
lib,
python3,
fetchFromGitHub,
appstream-glib,
desktop-file-utils,
gettext,
gobject-introspection,
gtk3,
gtk4,
libadwaita,
meson,
ninja,
pkg-config,
wrapGAppsHook4,
nix-update-script,
}:
python3.pkgs.buildPythonApplication rec {
pname = "portfolio";
version = "1.0.1";
format = "other";
src = fetchFromGitHub {
owner = "tchx84";
repo = "Portfolio";
rev = "v${version}";
hash = "sha256-IbzAkHlD6duXkPJRSyD9HJ/JHP8+IR7vIGFp2ESbBug=";
};
postPatch = ''
patchShebangs build-aux/meson
'';
nativeBuildInputs = [
appstream-glib
desktop-file-utils
gettext
gobject-introspection
gtk3 # For gtk-update-icon-cache
meson
ninja
pkg-config
wrapGAppsHook4
];
buildInputs = [
gtk4
libadwaita
];
propagatedBuildInputs = with python3.pkgs; [
pygobject3
];
checkPhase = ''
meson test
'';
postInstall = ''
ln -s dev.tchx84.Portfolio "$out/bin/portfolio"
'';
# Prevent double wrapping
dontWrapGApps = true;
preFixup = ''
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';
passthru = {
updateScript = nix-update-script { };
};
meta = with lib; {
description = "Minimalist file manager for those who want to use Linux mobile devices";
homepage = "https://github.com/tchx84/Portfolio";
changelog = "https://github.com/tchx84/Portfolio/blob/v${version}/CHANGELOG.md";
license = licenses.gpl3Plus;
platforms = platforms.linux;
mainProgram = "dev.tchx84.Portfolio";
maintainers = with maintainers; [
dotlambda
chuangzhu
];
};
}