nixpkgs/pkgs/by-name/xl/xlogo/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

38 lines
912 B
Nix

{ lib
, stdenv
, fetchFromGitLab
, xorg
, autoreconfHook
, pkg-config
, xorg-autoconf
}:
stdenv.mkDerivation rec {
pname = "xlogo";
version = "1.0.6";
src = fetchFromGitLab {
domain = "gitlab.freedesktop.org";
group = "xorg";
owner = "app";
repo = "xlogo";
rev = "refs/tags/xlogo-${version}";
hash = "sha256-S7Z2nGQt07YBHlbA1u/+rvDwtzT381e90jieoiun+E8=";
};
nativeBuildInputs = [ xorg-autoconf autoreconfHook pkg-config ];
configureFlags = [ "--with-appdefaultdir=$out/share/X11/app-defaults" ];
buildInputs = [ xorg.libX11 xorg.libXext xorg.libSM xorg.libXmu xorg.libXaw xorg.libXt ];
meta = with lib; {
description = "X Window System logo display demo";
homepage = "https://gitlab.freedesktop.org/xorg/app/xlogo";
maintainers = with maintainers; [ raboof ];
platforms = platforms.unix;
license = licenses.mit;
mainProgram = "xlogo";
};
}