mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-08 14:03:29 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
44 lines
1006 B
Nix
44 lines
1006 B
Nix
{ lib
|
|
, python3
|
|
, fetchPypi
|
|
, qt5
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "patray";
|
|
version = "0.1.2";
|
|
|
|
src = fetchPypi {
|
|
inherit version pname;
|
|
hash = "sha256-O8CBUexL2V1qI7bB/Lns3yjUvFOpC6spd/6asXa5+pw=";
|
|
};
|
|
|
|
patchPhase = ''
|
|
sed -i '30i entry_points = { "console_scripts": [ "patray = patray.__main__:main" ] },' setup.py
|
|
sed -i 's/production.txt/production.in/' setup.py
|
|
sed -i '/pyside2/d' requirements/production.in
|
|
'';
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
pulsectl
|
|
loguru
|
|
cock
|
|
pyside2
|
|
];
|
|
|
|
doCheck = false;
|
|
|
|
nativeBuildInputs = [ qt5.wrapQtAppsHook ];
|
|
postFixup = ''
|
|
wrapQtApp $out/bin/patray --prefix QT_PLUGIN_PATH : ${qt5.qtbase}/${qt5.qtbase.qtPluginPrefix}
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Yet another tray pulseaudio frontend";
|
|
homepage = "https://github.com/pohmelie/patray";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ domenkozar ];
|
|
mainProgram = "patray";
|
|
};
|
|
}
|