about summary refs log tree commit diff
path: root/pkgs/shells/rc-9front
diff options
context:
space:
mode:
authorJacob Moody <moody@posixcafe.org>2023-08-06 17:14:19 -0500
committerJacob Moody <moody@posixcafe.org>2023-08-06 17:14:19 -0500
commit437b7d71e57db899b64e707a377c07bed4085e9c (patch)
tree5a14872ee4c1c7ea593a3da821b3e6fb5b67045d /pkgs/shells/rc-9front
parent5c5bdd7b938b0e055e980faa95f6fab1a2112fab (diff)
rc-9front: tidy make and install phases
Diffstat (limited to 'pkgs/shells/rc-9front')
-rw-r--r--pkgs/shells/rc-9front/default.nix9
1 files changed, 5 insertions, 4 deletions
diff --git a/pkgs/shells/rc-9front/default.nix b/pkgs/shells/rc-9front/default.nix
index 2c3d565db5b9a..a7d2f1e54e3e7 100644
--- a/pkgs/shells/rc-9front/default.nix
+++ b/pkgs/shells/rc-9front/default.nix
@@ -22,16 +22,17 @@ stdenv.mkDerivation {
   nativeBuildInputs = [ byacc installShellFiles ];
   enableParallelBuilding = true;
   patches = [ ./path.patch ];
-
-  buildPhase = ''
-    make PREFIX=$out
-  '';
+  makeFlags = [ "PREFIX=$(out)" ];
 
   installPhase = ''
+    runHook preInstall
+
     install -Dm755 -t $out/bin/ rc
     installManPage rc.1
     mkdir -p $out/lib
     install -m644 rcmain.unix $out/lib/rcmain
+
+    runHook postInstall
   '';
 
   passthru = {