nixpkgs/pkgs/by-name/ka/kazam/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
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.
2024-11-09 20:04:51 +08:00

64 lines
1.4 KiB
Nix

{ lib
, fetchFromGitHub
, substituteAll
, python3Packages
, gst_all_1
, wrapGAppsHook3
, gobject-introspection
, gtk3
, libwnck
, keybinder3
, intltool
, libcanberra-gtk3
, libappindicator-gtk3
, libpulseaudio
, libgudev
}:
python3Packages.buildPythonApplication rec {
pname = "kazam";
version = "unstable-2021-06-22";
src = fetchFromGitHub {
owner = "niknah";
repo = "kazam";
rev = "13f6ce124e5234348f56358b9134a87121f3438c";
sha256 = "1jk6khwgdv3nmagdgp5ivz3156pl0ljhf7b6i4b52w1h5ywsg9ah";
};
nativeBuildInputs = [ gobject-introspection python3Packages.distutils-extra intltool wrapGAppsHook3 ];
buildInputs = [
gst_all_1.gstreamer
gst_all_1.gst-plugins-base
gst_all_1.gst-plugins-good
gtk3
libwnck
keybinder3
libappindicator-gtk3
libgudev
];
propagatedBuildInputs = with python3Packages; [ pygobject3 pyxdg pycairo dbus-python xlib ];
patches = [
# Fix paths
(substituteAll {
src = ./fix-paths.patch;
libcanberra = libcanberra-gtk3;
inherit libpulseaudio;
})
];
# no tests
doCheck = false;
meta = with lib; {
description = "Screencasting program created with design in mind";
homepage = "https://github.com/niknah/kazam";
license = licenses.lgpl3;
platforms = platforms.linux;
maintainers = [ maintainers.domenkozar ];
mainProgram = "kazam";
};
}