2020-09-25 04:45:31 +00:00
|
|
|
{ stdenv
|
2021-12-06 16:07:01 +00:00
|
|
|
, lib
|
2020-09-25 04:45:31 +00:00
|
|
|
, fetchurl
|
|
|
|
, glib
|
|
|
|
, nixos-artwork
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "mint-artwork";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "1.8.2";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-12-02 08:20:57 +00:00
|
|
|
urls = [
|
|
|
|
"http://packages.linuxmint.com/pool/main/m/mint-artwork/mint-artwork_${version}.tar.xz"
|
2024-05-15 15:35:15 +00:00
|
|
|
"https://web.archive.org/web/20240505123538/http://packages.linuxmint.com/pool/main/m/mint-artwork/mint-artwork_${version}.tar.xz"
|
2022-12-02 08:20:57 +00:00
|
|
|
];
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-MegMFrnU8Gcc2v5y3BQCIZS31JdpfSM5FIJJNcyt4LY=";
|
2020-09-25 04:45:31 +00: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 \
|
2022-12-02 08:20:57 +00:00
|
|
|
-e s,linuxmint-logo-ring-symbolic,cinnamon-symbolic,g \
|
2020-09-25 04:45:31 +00:00
|
|
|
{} +
|
|
|
|
|
|
|
|
# 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-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/linuxmint/mint-artwork";
|
|
|
|
description = "Artwork for the cinnamon desktop";
|
2022-12-02 08:20:57 +00:00
|
|
|
license = with licenses; [ gpl3Plus cc-by-40 ]; # from debian/copyright
|
2021-12-06 16:07:01 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = teams.cinnamon.members;
|
|
|
|
};
|
2020-09-25 04:45:31 +00:00
|
|
|
}
|