nixpkgs/pkgs/desktops/pantheon/artwork/elementary-wallpapers/default.nix

39 lines
845 B
Nix
Raw Normal View History

2018-08-20 21:31:18 +01:00
{ stdenv, fetchFromGitHub, pantheon }:
stdenv.mkDerivation rec {
pname = "elementary-wallpapers";
2018-08-20 21:31:18 +01:00
version = "5.3";
repoName = "wallpapers";
2018-08-20 21:31:18 +01:00
src = fetchFromGitHub {
owner = "elementary";
repo = repoName;
2018-08-20 21:31:18 +01:00
rev = version;
sha256 = "1i0zf9gzhwm8hgq5cp1xnxipqjvgzd9wfiicz612hgp6ivc0z0ag";
};
passthru = {
updateScript = pantheon.updateScript {
inherit repoName;
attrPath = pname;
2018-08-20 21:31:18 +01:00
};
};
dontBuild = true;
installPhase = ''
mkdir -p $out/share/backgrounds/elementary
cp -av *.jpg $out/share/backgrounds/elementary
'';
meta = with stdenv.lib; {
description = "Collection of wallpapers for elementary";
homepage = https://github.com/elementary/wallpapers;
license = licenses.publicDomain;
platforms = platforms.linux;
maintainers = pantheon.maintainers;
};
}