Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 56 lines 1.1 kB view raw
1{ 2 stdenv, 3 lib, 4 fetchFromGitHub, 5 cmake, 6 pkg-config, 7 libsForQt5, 8 udisks2-qt5, 9 util-linux, 10 libnl, 11 glib, 12 pcre, 13}: 14 15stdenv.mkDerivation rec { 16 pname = "deepin-anything"; 17 version = "6.2.10"; 18 19 src = fetchFromGitHub { 20 owner = "linuxdeepin"; 21 repo = "deepin-anything"; 22 rev = version; 23 hash = "sha256-eGel+pLAYHYkPXQxzTz+lMPSlgNiDFAev2bzGjj4ZFw="; 24 }; 25 26 postPatch = '' 27 substituteInPlace src/CMakeLists.txt \ 28 --replace-fail 'add_subdirectory("kernelmod")' " " 29 substituteInPlace src/server/backend/CMakeLists.txt \ 30 --replace-fail "/usr" "$out" \ 31 --replace-fail "/etc" "$out/etc" 32 ''; 33 34 nativeBuildInputs = [ 35 cmake 36 pkg-config 37 libsForQt5.wrapQtAppsHook 38 ]; 39 40 buildInputs = [ 41 udisks2-qt5 42 util-linux 43 libnl 44 libsForQt5.polkit-qt 45 glib 46 pcre 47 ]; 48 49 meta = { 50 description = "Deepin Anything file search tool"; 51 homepage = "https://github.com/linuxdeepin/deepin-anything"; 52 license = lib.licenses.gpl3Plus; 53 platforms = lib.platforms.linux; 54 teams = [ lib.teams.deepin ]; 55 }; 56}