mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 09:13:17 +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.
83 lines
1.7 KiB
Nix
83 lines
1.7 KiB
Nix
{ lib
|
|
, python3Packages
|
|
, fetchFromGitHub
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, wrapGAppsHook4
|
|
, appstream-glib
|
|
, desktop-file-utils
|
|
, gobject-introspection
|
|
, libadwaita
|
|
, gst_all_1
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "cozy";
|
|
version = "1.3.0";
|
|
pyproject = false; # built with meson
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "geigi";
|
|
repo = "cozy";
|
|
rev = version;
|
|
hash = "sha256-oMgdz2dny0u1XV13aHu5s8/pcAz8z/SAOf4hbCDsdjw";
|
|
};
|
|
|
|
# FIX: The "Support Debian non-standard python paths" resolves to store path of python
|
|
postPatch = ''
|
|
substituteInPlace meson.build \
|
|
--replace-fail \
|
|
'from distutils.sysconfig import get_python_lib; print(get_python_lib(prefix=""))' \
|
|
"print(\"$out/${python3Packages.python.sitePackages}\")"
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
wrapGAppsHook4
|
|
appstream-glib
|
|
desktop-file-utils
|
|
gobject-introspection
|
|
];
|
|
|
|
buildInputs = [
|
|
libadwaita
|
|
] ++ (with gst_all_1; [
|
|
gstreamer
|
|
gst-plugins-good
|
|
gst-plugins-ugly
|
|
gst-plugins-base
|
|
gst-plugins-bad
|
|
]);
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
distro
|
|
mutagen
|
|
peewee
|
|
pygobject3
|
|
pytz
|
|
requests
|
|
];
|
|
|
|
dontWrapGApps = true;
|
|
|
|
preFixup = ''
|
|
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
|
'';
|
|
|
|
postFixup = ''
|
|
ln -s $out/bin/com.github.geigi.cozy $out/bin/cozy
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Modern audio book player for Linux";
|
|
homepage = "https://cozy.geigi.de/";
|
|
maintainers = with maintainers; [ makefu aleksana ];
|
|
license = licenses.gpl3Plus;
|
|
mainProgram = "com.github.geigi.cozy";
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|