Basic flake icon and theme
This commit is contained in:
commit
35ae6d25b2
20
flake.nix
Normal file
20
flake.nix
Normal file
@ -0,0 +1,20 @@
|
||||
{
|
||||
description = "Windows XP Theme flake";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs }:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
in {
|
||||
packages.${system} = {
|
||||
windows-xp-icons = pkgs.callPackage ./windows-xp-icons.nix { };
|
||||
windows-xp-theme = pkgs.callPackage ./windows-xp-theme.nix { };
|
||||
default = self.packages.${system}.windows-xp-theme;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
44
windows-xp-icons.nix
Normal file
44
windows-xp-icons.nix
Normal file
@ -0,0 +1,44 @@
|
||||
|
||||
{ lib
|
||||
, stdenvNoCC
|
||||
, fetchFromGitHub
|
||||
, gtk3
|
||||
, hicolor-icon-theme
|
||||
}:
|
||||
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
pname = "Windows-xp-icon-theme";
|
||||
version = "2025-07-10";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "foglar";
|
||||
repo = "Windows-XP";
|
||||
rev = "master";
|
||||
hash = "sha256-BM/pWQKJ8cOBrYkJ5+tu4BW7WQjCeNuzDng/cILV5tI=";
|
||||
#domain = "gitea.homework.zip";
|
||||
#owner = "shinya";
|
||||
#repo = "WinXP-Icons";
|
||||
#rev = "master";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ gtk3 ];
|
||||
|
||||
dontBuildIconCache = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
mkdir -p $out/share/icons/ # copy everything to the icon directory
|
||||
cp -r . $out/share/icons/${pname}
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Windows XP icon theme for Linux (B00merang Artwork)";
|
||||
homepage = "https://github.com/B00merang-Artwork/Windows-XP";
|
||||
license = licenses.gpl3Only;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
29
windows-xp-theme.nix
Normal file
29
windows-xp-theme.nix
Normal file
@ -0,0 +1,29 @@
|
||||
{ stdenv, fetchFromGitHub, lib }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "windows-xp-gtk-theme";
|
||||
version = "3.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "B00merang-Project";
|
||||
repo = "Windows-XP";
|
||||
rev = version;
|
||||
sha256 = "sha256-VVNYf2jTa5lqL6RvKT7Hq2NqwUHpdqvjhMCjY3h6Hjs=";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
mkdir -p $out/share/themes
|
||||
rm README.md LICENSE.md
|
||||
cp -r * $out/share/themes/
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Windows-XP like GTK theme";
|
||||
homepage = "https://github.com/B00merang-Project/Windows-XP";
|
||||
license = licenses.gpl2Plus;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user