nixpkgs/pkgs/by-name/xa/xawtv/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

67 lines
1.1 KiB
Nix

{ lib
, stdenv
, fetchurl
, ncurses
, libjpeg
, libX11
, libXt
, alsa-lib
, aalib
, libXft
, xorgproto
, libv4l
, libFS
, libXaw
, libXpm
, libXext
, libSM
, libICE
, perl
}:
stdenv.mkDerivation rec {
pname = "xawtv";
version = "3.107";
src = fetchurl {
url = "https://linuxtv.org/downloads/xawtv/xawtv-${version}.tar.bz2";
sha256 = "055p0wia0xsj073l8mg4ifa6m81dmv6p45qyh99brramq5iylfy5";
};
patches = [
./0001-Fix-build-for-glibc-2.32.patch
];
buildInputs = [
ncurses
libjpeg
libX11
libXt
libXft
xorgproto
libFS
perl
alsa-lib
aalib
libXaw
libXpm
libXext
libSM
libICE
libv4l
];
makeFlags = [
"SUID_ROOT=" # do not try to setuid
"resdir=${placeholder "out"}/share/X11"
];
meta = {
description = "TV application for Linux with apps and tools such as a teletext browser";
license = lib.licenses.gpl2;
homepage = "https://www.kraxel.org/blog/linux/xawtv/";
maintainers = with lib.maintainers; [ domenkozar ];
platforms = lib.platforms.linux;
};
}