about summary refs log tree commit diff
path: root/pkgs/by-name/an/ananicy-rules-cachyos/package.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/by-name/an/ananicy-rules-cachyos/package.nix')
-rw-r--r--pkgs/by-name/an/ananicy-rules-cachyos/package.nix45
1 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/by-name/an/ananicy-rules-cachyos/package.nix b/pkgs/by-name/an/ananicy-rules-cachyos/package.nix
new file mode 100644
index 0000000000000..e8cd712eda1d2
--- /dev/null
+++ b/pkgs/by-name/an/ananicy-rules-cachyos/package.nix
@@ -0,0 +1,45 @@
+{
+  lib,
+  stdenvNoCC,
+  fetchFromGitHub,
+  unstableGitUpdater,
+}:
+
+stdenvNoCC.mkDerivation {
+  pname = "ananicy-rules-cachyos";
+  version = "0-unstable-2024-06-14";
+
+  src = fetchFromGitHub {
+    owner = "CachyOS";
+    repo = "ananicy-rules";
+    rev = "e3638ebb2320202ede9facfc9657cc8af2098a2d";
+    hash = "sha256-lIhXeqPJKC3brxVhIK04K9AAU+RqqqOwN/gUevYmaDM=";
+  };
+
+  dontConfigure = true;
+  dontBuild = true;
+
+  installPhase = ''
+    runHook preInstall
+    mkdir -p $out/etc/ananicy.d
+    rm README.md LICENSE
+    cp -r * $out/etc/ananicy.d
+    runHook postInstall
+  '';
+
+  passthru.updateScript = unstableGitUpdater {
+    hardcodeZeroVersion = true;
+  };
+
+  meta = {
+    homepage = "https://github.com/CachyOS/ananicy-rules";
+    description = "CachyOS' ananicy-rules meant to be used with ananicy-cpp";
+    license = lib.licenses.gpl3Only;
+    platforms = lib.platforms.linux;
+    maintainers = with lib.maintainers; [
+      artturin
+      diniamo
+      johnrtitor
+    ];
+  };
+}