mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-09 14:33:22 +00:00
571c71e6f7
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.
60 lines
1.4 KiB
Nix
60 lines
1.4 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchurl
|
|
, libX11
|
|
, libXft
|
|
, libXi
|
|
, xorgproto
|
|
, libSM
|
|
, libICE
|
|
, freetype
|
|
, pkg-config
|
|
, which
|
|
, nixosTests
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "mrxvt";
|
|
version = "0.5.4";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/materm/mrxvt-${version}.tar.gz";
|
|
sha256 = "1mqhmnlz32lvld9rc6c1hyz7gjw4anwf39yhbsjkikcgj1das0zl";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ libX11 libXft libXi xorgproto libSM libICE freetype which ];
|
|
|
|
configureFlags = [
|
|
"--with-x"
|
|
"--enable-frills"
|
|
"--enable-xft"
|
|
"--enable-xim"
|
|
# "--with-term=xterm"
|
|
"--with-max-profiles=100"
|
|
"--with-max-term=100"
|
|
"--with-save-lines=10000"
|
|
];
|
|
|
|
preConfigure = ''
|
|
NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${freetype.dev}/include/freetype2";
|
|
'';
|
|
|
|
passthru.tests.test = nixosTests.terminal-emulators.mrxvt;
|
|
|
|
meta = with lib; {
|
|
description = "Lightweight multitabbed feature-rich X11 terminal emulator";
|
|
longDescription = "
|
|
Multitabbed lightweight terminal emulator based on rxvt.
|
|
Supports transparency, backgroundimages, freetype fonts, ...
|
|
";
|
|
homepage = "https://sourceforge.net/projects/materm";
|
|
license = licenses.gpl2;
|
|
platforms = platforms.linux;
|
|
maintainers = [ ];
|
|
knownVulnerabilities = [
|
|
"Usage of ANSI escape sequences causes unexpected newline-termination, leading to unexpected command execution (https://www.openwall.com/lists/oss-security/2021/05/17/1)"
|
|
];
|
|
};
|
|
}
|