mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 10:53:11 +00:00
5dfdb09561
While preparing this change, I read the git blame on all of the files I touched. I saw a working lifetime of building this system which we use every day and love dearly and keep maintained ourselves. I saw commits from a 14 year range between 2003 to 2017!! I could not be more thankful for Eelco's work on building large parts of the foundation of nixpkgs that all of us rely on now. However, the end date of that range of the files I looked at the blame on was 2017. I did not see surviving code from any newer date than that. Looking at the Git logs, Eelco has been working on other things, and that's totally fine. However, it means that our maintenance metadata is out of date on a lot of packages, and *that*'s the reason I am submitting this change. There are a lot of packages that don't have anyone with their name on them to be pinged if they need attention, even if they have had recent activity (although it is never clear if recent activity was just someone fixing it because ZHF or because the package actually matters to them). There are a lot of packages with storied history that maybe don't need to be in the set anymore at all since they have not been touched in years; or maybe they are simply finished. Empty maintainer lists should be a sign that we need to figure out who maintains it or potentially remove it if it has rotted, and allowing the maintainer list to be empty if it is already not maintained is part of a healthy repository ecology. Either way, I would like to have the maintenance metadata not mislead anyone into sending Eelco emails about packages he doesn't, in practice, work on anymore. I have not removed his name from everything; there are some things that he is the upstream for or has worked on more recently, for instance, like Nix, which I have left alone.
66 lines
1.9 KiB
Nix
66 lines
1.9 KiB
Nix
{ lib, stdenv, fetchFromGitHub, automake, autoconf, libtool, flex, bison, texinfo, fetchpatch, pkgsStatic
|
|
, withNcurses ? true, ncurses
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gpm";
|
|
version = "unstable-2020-06-17";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "telmich";
|
|
repo = "gpm";
|
|
rev = "e82d1a653ca94aa4ed12441424da6ce780b1e530";
|
|
sha256 = "0ndn6dwc87slvyqp2cnbb02a6hkjwb6zjhs6viysykv06hq7ihy6";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace src/prog/gpm-root.y --replace __sigemptyset sigemptyset
|
|
'';
|
|
|
|
nativeBuildInputs = [ automake autoconf libtool flex bison texinfo ];
|
|
buildInputs = [ ncurses ];
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
patches = [
|
|
(fetchpatch { # pull request telmich/gpm#42
|
|
url = "https://github.com/kaction/gpm/commit/217b4fe4c9b62298a4e9a54c1f07e3b52b013a09.patch";
|
|
sha256 = "1f74h12iph4z1dldbxk9imcq11805c3ai2xhbsqvx8jpjrcfp19q";
|
|
})
|
|
|
|
# Pull fix pending upstream inclusion to fix parallel installation:
|
|
# https://github.com/telmich/gpm/pull/43
|
|
(fetchpatch {
|
|
name = "parallel-install.patch";
|
|
url = "https://github.com/telmich/gpm/commit/a88fb82a7afe96e872bb31c554e9ad5888f5a451.patch";
|
|
sha256 = "0g1jhz9bjw7vqjv922xkhs8xkjxdqh11nj38jj3c8nv5lcil76nx";
|
|
})
|
|
];
|
|
preConfigure = ''
|
|
./autogen.sh
|
|
'';
|
|
|
|
configureFlags = [
|
|
"--sysconfdir=/etc"
|
|
"--localstatedir=/var"
|
|
(if withNcurses then "--with-curses" else "--without-curses")
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
# Provide libgpm.so for compatibility
|
|
postInstall = ''
|
|
ln -sv $out/lib/libgpm.so.2 $out/lib/libgpm.so
|
|
'';
|
|
|
|
passthru.tests.static = pkgsStatic.gpm;
|
|
|
|
meta = with lib; {
|
|
homepage = "https://www.nico.schottelius.org/software/gpm/";
|
|
description = "Daemon that provides mouse support on the Linux console";
|
|
license = licenses.gpl2Plus;
|
|
platforms = platforms.linux ++ platforms.cygwin;
|
|
maintainers = [ ];
|
|
};
|
|
}
|