Add Nix flake packaging for Colloid GTK theme

This commit is contained in:
Jakob Kokel
2026-08-01 11:09:48 +02:00
parent fd805dbeea
commit 20b9536605
3 changed files with 86 additions and 0 deletions
Generated
+27
View File
@@ -0,0 +1,27 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1785454630,
"narHash": "sha256-LQy14TZp77TwbQf40gg1V3jo8FwJG0jGDkAH+zRHqg8=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "1559d3daa3ecc813a650b79375ea61b6741b8746",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}
+20
View File
@@ -0,0 +1,20 @@
{
description = "Modern and clean Gtk theme";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs }:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
};
in {
packages.${system}.default =
pkgs.callPackage ./nix/default.nix {};
};
}
+39
View File
@@ -0,0 +1,39 @@
{ lib
, stdenv
, bash
, coreutils
, sassc
, ...
}:
stdenv.mkDerivation {
pname = "colloid-gtk-theme";
version = "3.6.2";
src = ../.;
nativeBuildInputs = [
bash
coreutils
sassc
];
patchPhase = ''
patchShebangs install.sh
'';
installPhase = ''
runHook preInstall
HOME="$TMPDIR" ./install.sh \
--dest $out/share/themes
runHook postInstall
'';
meta = {
description = "Colloid GTK Theme";
license = lib.licenses.gpl3;
platforms = lib.platforms.linux;
};
}