depot/pkgs/desktops/deepin/artwork/deepin-wallpapers/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

47 lines
1.1 KiB
Nix

{
stdenv,
lib,
fetchFromGitHub,
dde-api,
}:
stdenv.mkDerivation rec {
pname = "deepin-wallpapers";
version = "1.7.16";
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
hash = "sha256-o5rg1l8N6Ch+BdBLp+HMbVBBvrTdRtn8NSgH/9AnB2Q=";
};
nativeBuildInputs = [ dde-api ];
postPatch = ''
substituteInPlace Makefile \
--replace /usr/lib/deepin-api/image-blur ${dde-api}/lib/deepin-api/image-blur
'';
installPhase = ''
runHook preInstall
mkdir -p $out/share/wallpapers/deepin
cp deepin/* $out/share/wallpapers/deepin
mkdir -p $out/share/wallpapers/image-blur
cp image-blur/* $out/share/wallpapers/image-blur
mkdir -p $out/share/backgrounds
ln -s $out/share/wallpapers/deepin/desktop.jpg $out/share/backgrounds/default_background.jpg
runHook postInstall
'';
meta = with lib; {
description = "deepin-wallpapers provides wallpapers of dde";
homepage = "https://github.com/linuxdeepin/deepin-wallpapers";
license = with licenses; [
gpl3Plus
cc-by-sa-30
];
platforms = platforms.linux;
maintainers = teams.deepin.members;
};
}