about summary refs log tree commit diff
diff options
context:
space:
mode:
authorsuperherointj <5861043+superherointj@users.noreply.github.com>2024-05-17 12:47:18 -0300
committerJohn Titor <50095635+JohnRTitor@users.noreply.github.com>2024-05-17 21:58:50 +0530
commitfaf799b9d2000c4d625073d00991fdbd4ddc4427 (patch)
tree27b5f1929780a67d7de3e0be9331d2c467e5a3e8
parent337326cac10b58ce45799a710c537d8d192d0a3a (diff)
plymouth-matrix-theme: cleanup derivation
* add install hooks
* move postPatch to match phases order

* skip a line after version
-rw-r--r--pkgs/by-name/pl/plymouth-matrix-theme/package.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/by-name/pl/plymouth-matrix-theme/package.nix b/pkgs/by-name/pl/plymouth-matrix-theme/package.nix
index 448bc7e91f657..5db5be9c3f467 100644
--- a/pkgs/by-name/pl/plymouth-matrix-theme/package.nix
+++ b/pkgs/by-name/pl/plymouth-matrix-theme/package.nix
@@ -4,9 +4,11 @@
   lib,
   unstableGitUpdater,
 }:
+
 stdenvNoCC.mkDerivation {
   pname = "plymouth-matrix-theme";
   version = "0.1.0-unstable-19-02-2017";
+
   src = fetchFromGitHub {
     owner = "storax";
     repo = "plymouth-matrix-theme";
@@ -14,17 +16,19 @@ stdenvNoCC.mkDerivation {
     hash = "sha256-JmMmpw1By5U6OTaSPnJOZZxrieSnXivMmdt/JPazjpI=";
   };
 
-  dontBuild = true;
-
   postPatch = ''
     # Remove not needed files
     rm README.rst LICENSE Makefile
   '';
 
+  dontBuild = true;
+
   installPhase = ''
+    runHook preInstall
     mkdir -p $out/share/plymouth/themes/matrix
     cp * $out/share/plymouth/themes/matrix
     find $out/share/plymouth/themes/ -name \*.plymouth -exec sed -i "s@\/usr\/@$out\/@" {} \;
+    runHook postInstall
   '';
 
   passthru.updateScript = unstableGitUpdater;