mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
35763bc43b
Now sets cursor theme and size.
49 lines
1.3 KiB
Nix
49 lines
1.3 KiB
Nix
{ stdenv
|
|
, lib
|
|
, fetchurl
|
|
, glib
|
|
, nixos-artwork
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "mint-artwork";
|
|
version = "1.7.2";
|
|
|
|
src = fetchurl {
|
|
urls = [
|
|
"http://packages.linuxmint.com/pool/main/m/mint-artwork/mint-artwork_${version}.tar.xz"
|
|
"https://web.archive.org/web/20221203023403/http://packages.linuxmint.com/pool/main/m/mint-artwork/mint-artwork_${version}.tar.xz"
|
|
];
|
|
hash = "sha256-I8gLWwwuXZkgc5zZ9QVkSarugcNWLFIz2mU1d4QqJRU=";
|
|
};
|
|
|
|
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,linuxmint-logo-ring-symbolic,cinnamon-symbolic,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
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/linuxmint/mint-artwork";
|
|
description = "Artwork for the cinnamon desktop";
|
|
license = with licenses; [ gpl3Plus cc-by-40 ]; # from debian/copyright
|
|
platforms = platforms.linux;
|
|
maintainers = teams.cinnamon.members;
|
|
};
|
|
}
|