aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/data/misc/nixos-artwork/wallpapers.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/data/misc/nixos-artwork/wallpapers.nix')
-rw-r--r--nixpkgs/pkgs/data/misc/nixos-artwork/wallpapers.nix41
1 files changed, 40 insertions, 1 deletions
diff --git a/nixpkgs/pkgs/data/misc/nixos-artwork/wallpapers.nix b/nixpkgs/pkgs/data/misc/nixos-artwork/wallpapers.nix
index a6a368e26e0..36242db4621 100644
--- a/nixpkgs/pkgs/data/misc/nixos-artwork/wallpapers.nix
+++ b/nixpkgs/pkgs/data/misc/nixos-artwork/wallpapers.nix
@@ -3,12 +3,18 @@
let
mkNixBackground = { name, src, description }:
- stdenv.mkDerivation {
+ let
+ pkg = stdenv.mkDerivation {
inherit name src;
dontUnpack = true;
installPhase = ''
+ # GNOME
+ mkdir -p $out/share/backgrounds/nixos
+ ln -s $src $out/share/backgrounds/nixos/${src.name}
+
+ # TODO: is this path still needed?
mkdir -p $out/share/artwork/gnome
ln -s $src $out/share/artwork/gnome/${src.name}
@@ -22,6 +28,11 @@ X-KDE-PluginInfo-Name=${name}
_EOF
'';
+ passthru = {
+ gnomeFilePath = "${pkg}/share/backgrounds/nixos/${src.name}";
+ kdeFilePath = "${pkg}/share/wallpapers/${name}/contents/images/${src.name}";
+ };
+
meta = with stdenv.lib; {
inherit description;
homepage = "https://github.com/NixOS/nixos-artwork";
@@ -29,11 +40,21 @@ _EOF
platforms = platforms.all;
};
};
+in pkg;
in
rec {
+ dracula = mkNixBackground {
+ name = "dracula-2020-07-02";
+ description = "Nix background based on the Dracula color palette";
+ src = fetchurl {
+ url = "https://raw.githubusercontent.com/NixOS/nixos-artwork/03c6c20be96c38827037d2238357f2c777ec4aa5/wallpapers/nix-wallpaper-dracula.png";
+ sha256 = "07ly21bhs6cgfl7pv4xlqzdqm44h22frwfhdqyd4gkn2jla1waab";
+ };
+ };
+
gnome-dark = simple-dark-gray-bottom;
mosaic-blue = mkNixBackground {
@@ -45,6 +66,24 @@ rec {
};
};
+ nineish = mkNixBackground {
+ name = "nineish-2019-12-04";
+ description = "Nix background inspired by simpler times";
+ src = fetchurl {
+ url = "https://raw.githubusercontent.com/NixOS/nixos-artwork/da01f68d21ddfdc9f1c6e520c2170871c81f1cf5/wallpapers/nix-wallpaper-nineish.png";
+ sha256 = "1mwvnmflp0z1biyyhfz7mjn7i1nna94n7jyns3na2shbfkaq7i0h";
+ };
+ };
+
+ nineish-dark-gray = mkNixBackground {
+ name = "nineish-dark-gray-2020-07-02";
+ description = "Dark gray Nix background inspired by simpler times";
+ src = fetchurl {
+ url = "https://raw.githubusercontent.com/NixOS/nixos-artwork/f07707cecfd89bc1459d5dad76a3a4c5315efba1/wallpapers/nix-wallpaper-nineish-dark-gray.png";
+ sha256 = "07zl1dlxqh9dav9pibnhr2x1llywwnyphmzcdqaby7dz5js184ly";
+ };
+ };
+
simple-blue = mkNixBackground {
name = "simple-blue-2016-02-19";
description = "Simple blue background for Nix";