deepin.dde-api-proxy: init at 1.0.16
This commit is contained in:
parent
60348797ee
commit
76c5a31efe
50
pkgs/desktops/deepin/core/dde-api-proxy/default.nix
Normal file
50
pkgs/desktops/deepin/core/dde-api-proxy/default.nix
Normal file
@ -0,0 +1,50 @@
|
||||
{
|
||||
stdenv,
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
cmake,
|
||||
pkg-config,
|
||||
libsForQt5,
|
||||
dtkcore,
|
||||
coreutils,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "dde-api-proxy";
|
||||
version = "1.0.16";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "linuxdeepin";
|
||||
repo = "dde-api-proxy";
|
||||
rev = version;
|
||||
hash = "sha256-kWodNftOPLIiQNPHAIC9p3VHFAis8FAI7vLJTqahAtU=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
for file in $(grep -rl "/usr/bin/false"); do
|
||||
substituteInPlace $file --replace-fail "/usr/bin/false" "${coreutils}/bin/false"
|
||||
done
|
||||
for file in $(grep -rl "/usr/lib/dde-api-proxy"); do
|
||||
substituteInPlace $file --replace-fail "/usr/lib/dde-api-proxy" "$out/lib/dde-api-proxy"
|
||||
done
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
pkg-config
|
||||
libsForQt5.wrapQtAppsHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
dtkcore
|
||||
libsForQt5.qtbase
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Proxy service for dde";
|
||||
homepage = "https://github.com/linuxdeepin/dde-api-proxy";
|
||||
license = lib.licenses.gpl3Plus;
|
||||
platforms = lib.platforms.linux;
|
||||
maintainers = lib.teams.deepin.members;
|
||||
};
|
||||
}
|
@ -62,6 +62,7 @@ let
|
||||
dde-shell = callPackage ./core/dde-shell { };
|
||||
dde-grand-search = callPackage ./core/dde-grand-search { };
|
||||
dde-tray-loader = callPackage ./core/dde-tray-loader { };
|
||||
dde-api-proxy = callPackage ./core/dde-api-proxy { };
|
||||
|
||||
#### Dtk Application
|
||||
deepin-album = callPackage ./apps/deepin-album { };
|
||||
|
Loading…
Reference in New Issue
Block a user