nixpkgs/pkgs/by-name/ju/juno-theme/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

46 lines
1.4 KiB
Nix

{ lib, stdenv, fetchurl, gtk-engine-murrine }:
stdenv.mkDerivation rec {
pname = "juno";
version = "0.0.1";
srcs = [
(fetchurl {
url = "https://github.com/gvolpe/Juno/releases/download/${version}/Juno.tar.xz";
sha256 = "1cghsn9qagcf1nlga5cal0aqch6hkjm5wk6ja791zxhdqy3crx1i";
})
(fetchurl {
url = "https://github.com/gvolpe/Juno/releases/download/${version}/Juno-mirage.tar.xz";
sha256 = "0zh6bc85svmwh8qrhpn8mim0pj322x2x2i9sxnp7p1938p5z5m2b";
})
(fetchurl {
url = "https://github.com/gvolpe/Juno/releases/download/${version}/Juno-ocean.tar.xz";
sha256 = "0m2wgmcn12dfq5badzlpzjc8792ba9hi32c79vfvqawdn1q3hrdx";
})
(fetchurl {
url = "https://github.com/gvolpe/Juno/releases/download/${version}/Juno-palenight.tar.xz";
sha256 = "1hn2l0m76x61ixjd253hi7czm65asdjdhqvvlv7idbccc40pvrak";
})
];
sourceRoot = ".";
propagatedUserEnvPkgs = [ gtk-engine-murrine ];
installPhase = ''
runHook preInstall
mkdir -p $out/share/themes
cp -a Juno* $out/share/themes
rm $out/share/themes/*/{LICENSE,README.md}
runHook postInstall
'';
meta = with lib; {
description = "GTK themes inspired by epic vscode themes";
homepage = "https://github.com/EliverLara/Juno";
license = licenses.gpl3Only;
platforms = platforms.all;
maintainers = [ maintainers.gvolpe ];
};
}