Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 buildPackages, 6}: 7 8stdenv.mkDerivation rec { 9 pname = "libevdevc"; 10 version = "2.0.1"; 11 src = fetchFromGitHub { 12 owner = "hugegreenbug"; 13 repo = "libevdevc"; 14 rev = "v${version}"; 15 sha256 = "0ry30krfizh87yckmmv8n082ad91mqhhbbynx1lfidqzb6gdy2dd"; 16 }; 17 18 postPatch = '' 19 substituteInPlace common.mk \ 20 --replace-fail /bin/echo ${buildPackages.coreutils}/bin/echo 21 substituteInPlace include/module.mk \ 22 --replace-fail /usr/include /include 23 ''; 24 25 makeFlags = [ 26 "DESTDIR=$(out)" 27 "LIBDIR=/lib" 28 ]; 29 30 # causes redefinition of _FORTIFY_SOURCE 31 hardeningDisable = [ "fortify3" ]; 32 33 meta = with lib; { 34 description = "ChromiumOS libevdev. Renamed to avoid conflicts with the standard libevdev found in Linux distros"; 35 license = licenses.bsd3; 36 platforms = platforms.linux; 37 homepage = "https://chromium.googlesource.com/chromiumos/platform/libevdev/"; 38 maintainers = with maintainers; [ kcalvinalvin ]; 39 }; 40}