mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-17 06:06:13 +03:00
Merge pull request #279454 from OPNA2608/init/lomiri/lomiri-wallpapers
lomiri.lomiri-wallpapers: init at 20.04.0
This commit is contained in:
commit
6369ad448c
48
pkgs/desktops/lomiri/data/lomiri-wallpapers/default.nix
Normal file
48
pkgs/desktops/lomiri/data/lomiri-wallpapers/default.nix
Normal file
@ -0,0 +1,48 @@
|
||||
{ stdenvNoCC
|
||||
, lib
|
||||
, fetchFromGitLab
|
||||
, gitUpdater
|
||||
}:
|
||||
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "lomiri-wallpapers";
|
||||
version = "20.04.0";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
owner = "ubports";
|
||||
repo = "development/core/lomiri-wallpapers";
|
||||
rev = finalAttrs.version;
|
||||
hash = "sha256-n8+vY+MPVqW6s5kSo4aEtGZv1AsjB3nNEywbmcNWfhI=";
|
||||
};
|
||||
|
||||
dontConfigure = true;
|
||||
dontBuild = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/share
|
||||
|
||||
# release-specific wallpapers
|
||||
cp -r ${lib.versions.majorMinor finalAttrs.version} $out/share/wallpapers
|
||||
rm $out/share/wallpapers/.placeholder
|
||||
|
||||
# eternal hardwired fallback/default
|
||||
install -Dm644 {.,$out/share/wallpapers}/warty-final-ubuntu.png
|
||||
ln -s warty-final-ubuntu.png $out/share/wallpapers/lomiri-default-background.png
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
passthru.updateScript = gitUpdater { };
|
||||
|
||||
meta = with lib; {
|
||||
description = "Wallpapers for the Lomiri Operating Environment, gathered from people of the Ubuntu Touch / UBports community";
|
||||
homepage = "https://gitlab.com/ubports/development/core/lomiri-wallpapers";
|
||||
changelog = "https://gitlab.com/ubports/development/core/lomiri-wallpapers/-/blob/${finalAttrs.version}/ChangeLog";
|
||||
# On update, recheck debian/copyright for which licenses apply to the installed images
|
||||
license = with licenses; [ cc-by-sa-30 ];
|
||||
maintainers = teams.lomiri.members;
|
||||
platforms = platforms.all;
|
||||
};
|
||||
})
|
@ -13,6 +13,7 @@ let
|
||||
#### Data
|
||||
lomiri-schemas = callPackage ./data/lomiri-schemas { };
|
||||
lomiri-sounds = callPackage ./data/lomiri-sounds { };
|
||||
lomiri-wallpapers = callPackage ./data/lomiri-wallpapers { };
|
||||
suru-icon-theme = callPackage ./data/suru-icon-theme { };
|
||||
|
||||
#### Development tools / libraries
|
||||
|
Loading…
Reference in New Issue
Block a user