nixpkgs/pkgs/by-name/xb/xboard/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

70 lines
1.2 KiB
Nix

{ lib
, stdenv
, fetchurl
, fetchpatch
, libX11
, xorgproto
, libXt
, libXaw
, libSM
, libICE
, libXmu
, libXext
, gnuchess
, texinfo
, libXpm
, pkg-config
, librsvg
, cairo
, pango
, gtk2
}:
stdenv.mkDerivation rec {
pname = "xboard";
version = "4.9.1";
src = fetchurl {
url = "mirror://gnu/xboard/xboard-${version}.tar.gz";
sha256 = "sha256-Ky5T6EKK2bbo3IpVs6UYM4GRGk2uLABy+pYpa7sZcNY=";
};
patches = [
# Pull patch pending upstream inclusion for -fno-common toolchain support:
# https://savannah.gnu.org/patch/index.php?10211
(fetchpatch {
name = "fno-common.patch";
url = "https://savannah.gnu.org/patch/download.php?file_id=53275";
sha256 = "sha256-ZOo9jAy1plFjhC5HXJQvXL+Zf7FL14asV3G4AwfgqTY=";
})
];
nativeBuildInputs = [ pkg-config ];
buildInputs = [
libX11
xorgproto
libXt
libXaw
libSM
libICE
libXmu
libXext
gnuchess
texinfo
libXpm
librsvg
cairo
pango
gtk2
];
meta = with lib; {
description = "GUI for chess engines";
mainProgram = "xboard";
homepage = "https://www.gnu.org/software/xboard/";
maintainers = with maintainers; [ raskin ];
platforms = platforms.unix;
license = licenses.gpl3Plus;
};
}