17 stdenv.mkDerivation rec {
19 version = "unstable-2020-06-17";
21 src = fetchFromGitHub {
24 rev = "e82d1a653ca94aa4ed12441424da6ce780b1e530";
25 sha256 = "0ndn6dwc87slvyqp2cnbb02a6hkjwb6zjhs6viysykv06hq7ihy6";
29 substituteInPlace src/prog/gpm-root.y --replace __sigemptyset sigemptyset
40 buildInputs = [ ncurses ];
42 hardeningDisable = [ "format" ];
46 # pull request telmich/gpm#42
47 url = "https://github.com/kaction/gpm/commit/217b4fe4c9b62298a4e9a54c1f07e3b52b013a09.patch";
48 sha256 = "1f74h12iph4z1dldbxk9imcq11805c3ai2xhbsqvx8jpjrcfp19q";
51 # Pull fix pending upstream inclusion to fix parallel installation:
52 # https://github.com/telmich/gpm/pull/43
54 name = "parallel-install.patch";
55 url = "https://github.com/telmich/gpm/commit/a88fb82a7afe96e872bb31c554e9ad5888f5a451.patch";
56 sha256 = "0g1jhz9bjw7vqjv922xkhs8xkjxdqh11nj38jj3c8nv5lcil76nx";
65 "--localstatedir=/var"
66 (if withNcurses then "--with-curses" else "--without-curses")
69 enableParallelBuilding = true;
71 # Provide libgpm.so for compatibility
73 ln -sv $out/lib/libgpm.so.2 $out/lib/libgpm.so
76 passthru.tests.static = pkgsStatic.gpm;
79 homepage = "https://www.nico.schottelius.org/software/gpm/";
80 description = "Daemon that provides mouse support on the Linux console";
81 license = licenses.gpl2Plus;
82 platforms = platforms.linux ++ platforms.cygwin;