nixpkgs/pkgs/os-specific/linux/libevdevc/default.nix
Jonathan Ringer 9bb3fccb5b treewide: pkgs.pkgconfig -> pkgs.pkg-config, move pkgconfig to alias.nix
continuation of #109595

pkgconfig was aliased in 2018, however, it remained in
all-packages.nix due to its wide usage. This cleans
up the remaining references to pkgs.pkgsconfig and
moves the entry to aliases.nix.

python3Packages.pkgconfig remained unchanged because
it's the canonical name of the upstream package
on pypi.
2021-01-19 01:16:25 -08:00

29 lines
902 B
Nix

{ lib, stdenv, fetchFromGitHub, coreutils, pkg-config, glib, jsoncpp }:
stdenv.mkDerivation rec {
name = "libevdevc";
version = "2.0.1";
src = fetchFromGitHub {
owner = "hugegreenbug";
repo = "libevdevc";
rev = "v${version}";
sha256 = "0ry30krfizh87yckmmv8n082ad91mqhhbbynx1lfidqzb6gdy2dd";
};
postPatch = ''
substituteInPlace common.mk \
--replace /bin/echo ${coreutils}/bin/echo
substituteInPlace include/module.mk \
--replace /usr/include /include
'';
makeFlags = [ "DESTDIR=$(out)" "LIBDIR=/lib" ];
meta = with lib; {
description = "ChromiumOS libevdev. Renamed to avoid conflicts with the standard libevdev found in Linux distros";
license = licenses.bsd3;
platforms = platforms.linux;
homepage = "https://chromium.googlesource.com/chromiumos/platform/libevdev/";
maintainers = with maintainers; [ kcalvinalvin ];
};
}