mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
nixos-artwork: only download the necessary artwork
This commit is contained in:
parent
69829dd4ff
commit
248a1b4d51
@ -1,24 +1,23 @@
|
|||||||
{ stdenv, fetchFromGitHub }:
|
{ stdenv, fetchurl }:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "nixos-artwork-2015-02-27";
|
name = "nixos-artwork-2015-02-27";
|
||||||
# Remember to check the default lightdm wallpaper when updating
|
# Remember to check the default lightdm wallpaper when updating
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
GnomeDark = fetchurl {
|
||||||
owner = "NixOS";
|
url = https://raw.githubusercontent.com/NixOS/nixos-artwork/7ece5356398db14b5513392be4b31f8aedbb85a2/gnome/Gnome_Dark.png;
|
||||||
repo = "nixos-artwork";
|
sha256 = "0c7sl9k4zdjwvdz3nhlm8i4qv4cjr0qagalaa1a438jigixx27l7";
|
||||||
rev = "e71b6846023919136795ede22b16d73b2cf1693d";
|
|
||||||
sha256 = "167yvhm2qy7qgyrqqs4hv98mmlarhgxpcsyv0r8a9g3vkblfdczb";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
unpackPhase = "true";
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/share/artwork
|
mkdir -p $out/share/artwork/gnome
|
||||||
cp -r * $out/share/artwork
|
ln -s $GnomeDark $out/share/artwork/gnome/Gnome_Dark.png
|
||||||
find $out -name \*.xcf -exec rm {} \;
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = "https://github.com/NixOS/nixos-artwork";
|
homepage = https://github.com/NixOS/nixos-artwork;
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user