nixpkgs/pkgs/by-name/xt/xtrace/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

32 lines
806 B
Nix

{ lib, stdenv, autoreconfHook, fetchFromGitLab, libX11, xauth, makeWrapper }:
stdenv.mkDerivation rec {
pname = "xtrace";
version = "1.4.0";
src = fetchFromGitLab {
domain = "salsa.debian.org";
owner = "debian";
repo = pname;
rev = "xtrace-${version}";
sha256 = "1yff6x847nksciail9jly41mv70sl8sadh0m5d847ypbjmxcwjpq";
};
nativeBuildInputs = [ autoreconfHook makeWrapper ];
buildInputs = [ libX11 ];
postInstall = ''
wrapProgram "$out/bin/xtrace" \
--prefix PATH ':' "${xauth}/bin"
'';
meta = with lib; {
homepage = "https://salsa.debian.org/debian/xtrace";
description = "Tool to trace X11 protocol connections";
license = licenses.gpl2Only;
maintainers = [ ];
platforms = with platforms; linux;
mainProgram = "xtrace";
};
}