mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
Merge pull request #59378 from romildo/upd.deepin.deepin-anything
deepin.deepin-anything: init at 0.0.7
This commit is contained in:
commit
1c137e36ea
4 changed files with 89 additions and 0 deletions
64
pkgs/desktops/deepin/deepin-anything/default.nix
Normal file
64
pkgs/desktops/deepin/deepin-anything/default.nix
Normal file
|
@ -0,0 +1,64 @@
|
|||
{ stdenv, fetchFromGitHub, pkgconfig, qtbase, udisks2-qt5, utillinux,
|
||||
dtkcore, deepin }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "${pname}-${version}";
|
||||
pname = "deepin-anything";
|
||||
version = "0.0.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "linuxdeepin";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "1qggqjjqz2y51pag0v5qniv6763mgrmzjmr7248xx2paw3a923vk";
|
||||
};
|
||||
|
||||
outputs = [ "out" "modsrc" ];
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkgconfig
|
||||
deepin.setupHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
dtkcore
|
||||
qtbase
|
||||
udisks2-qt5
|
||||
utillinux
|
||||
];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
makeFlags = [
|
||||
"DEB_HOST_MULTIARCH="
|
||||
"PREFIX=${placeholder ''out''}"
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
searchHardCodedPaths # for debugging
|
||||
fixPath $modsrc /usr/src Makefile
|
||||
fixPath $out /usr Makefile
|
||||
fixPath $out /usr server/tool/tool.pro
|
||||
fixPath $out /etc server/tool/tool.pro
|
||||
fixPath $out /usr/bin \
|
||||
server/tool/deepin-anything-tool.service \
|
||||
server/tool/com.deepin.anything.service \
|
||||
server/monitor/deepin-anything-monitor.service
|
||||
sed -e 's,/lib/systemd,$$PREFIX/lib/systemd,' -i server/monitor/src/src.pro server/tool/tool.pro
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
searchHardCodedPaths $out # for debugging
|
||||
searchHardCodedPaths $modsrc # for debugging
|
||||
'';
|
||||
|
||||
passthru.updateScript = deepin.updateScript { inherit name; };
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Deepin file search tool";
|
||||
homepage = https://github.com/linuxdeepin/deepin-anything;
|
||||
license = licenses.gpl3;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ romildo ];
|
||||
};
|
||||
}
|
|
@ -15,6 +15,7 @@ let
|
|||
dde-polkit-agent = callPackage ./dde-polkit-agent { };
|
||||
dde-qt-dbus-factory = callPackage ./dde-qt-dbus-factory { };
|
||||
dde-session-ui = callPackage ./dde-session-ui { };
|
||||
deepin-anything = callPackage ./deepin-anything { };
|
||||
deepin-desktop-base = callPackage ./deepin-desktop-base { };
|
||||
deepin-desktop-schemas = callPackage ./deepin-desktop-schemas { };
|
||||
deepin-gettext-tools = callPackage ./deepin-gettext-tools { };
|
||||
|
|
22
pkgs/os-specific/linux/deepin-anything/default.nix
Normal file
22
pkgs/os-specific/linux/deepin-anything/default.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{ stdenv, deepin, kernel }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "deepin-anything-module";
|
||||
version = "${deepin.deepin-anything.version}-${kernel.version}";
|
||||
src = deepin.deepin-anything.modsrc;
|
||||
|
||||
nativeBuildInputs = kernel.moduleBuildDependencies;
|
||||
|
||||
buildPhase = ''
|
||||
make -C src/deepin-anything-0.0 kdir=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
install -m 644 -D -t $out/lib/modules/${kernel.modDirVersion}/extra src/deepin-anything-0.0/*.ko
|
||||
'';
|
||||
|
||||
meta = deepin.deepin-anything.meta // {
|
||||
description = deepin.deepin-anything.meta.description + " (kernel modules)";
|
||||
badPlatforms = [ "aarch64-linux" ]; # the kernel module is not building
|
||||
};
|
||||
}
|
|
@ -15131,6 +15131,8 @@ in
|
|||
|
||||
cpupower = callPackage ../os-specific/linux/cpupower { };
|
||||
|
||||
deepin-anything = callPackage ../os-specific/linux/deepin-anything { };
|
||||
|
||||
dpdk = callPackage ../os-specific/linux/dpdk { };
|
||||
|
||||
exfat-nofuse = callPackage ../os-specific/linux/exfat { };
|
||||
|
|
Loading…
Reference in a new issue