3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/desktops/cinnamon/mint-artwork/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
1.3 KiB
Nix
Raw Normal View History

2020-09-06 01:02:58 +01:00
{ stdenv
2021-11-23 01:25:26 +00:00
, lib
2020-09-06 01:02:58 +01:00
, fetchurl
, glib
, nixos-artwork
}:
stdenv.mkDerivation rec {
pname = "mint-artwork";
2021-11-24 09:15:22 +00:00
version = "1.5.4";
2020-09-06 01:02:58 +01:00
src = fetchurl {
url = "http://packages.linuxmint.com/pool/main/m/mint-artwork/mint-artwork_${version}.tar.xz";
2021-11-24 09:15:22 +00:00
hash = "sha256-ZRJK1fzIF36BdUlVhLwdFdfgQvN2ashzjgpCxoOIbK8=";
2020-09-06 01:02:58 +01:00
};
nativeBuildInputs = [
glib
];
installPhase = ''
mkdir $out
# note: we fuck up a bunch of stuff but idc
find . -type f -exec sed -i \
-e s,/usr/share/backgrounds/linuxmint/default_background.jpg,${nixos-artwork.wallpapers.simple-dark-gray}/share/artwork/gnome/nix-wallpaper-simple-dark-gray.png,g \
-e s,/usr/share,$out/share,g \
-e s,DMZ-White,Vanilla-DMZ,g \
-e s,DMZ-Black,Vanilla-DMZ-AA,g \
-e s,linuxmint-logo-5,cinnamon-symbolic,g \
-e s,^theme-name=Mint-X$,theme-name=Mint-X-Dark,g \
{} +
# fixup broken symlink
ln -sf ./sele_ring.jpg usr/share/backgrounds/linuxmint/default_background.jpg
mv etc $out/etc
mv usr/share $out/share
'';
2021-11-23 01:25:26 +00:00
meta = with lib; {
homepage = "https://github.com/linuxmint/mint-artwork";
description = "Artwork for the cinnamon desktop";
license = licenses.gpl3; # from debian/copyright
platforms = platforms.linux;
maintainers = teams.cinnamon.members;
};
2020-09-06 01:02:58 +01:00
}