Skip to content

Commit

Permalink
Add hooks and use install in installPhase
Browse files Browse the repository at this point in the history
  • Loading branch information
theneosloth committed Oct 31, 2024
1 parent 517da06 commit 6c0b5ec
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkgs/development/tcl-modules/by-name/ji/jimlib/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ mkTclDerivation rec {
'';

installPhase = ''
mkdir -p $out/lib/jimlib
cp $src/jimlib.tcl $out/lib/jimlib/jimlib.tcl
cp $src/pkgIndex.tcl $out/lib/jimlib/pkgIndex.tcl
runHook preInstall
install -Dm644 jimlib.tcl $out/lib/jimlib/jimlib.tcl
install -Dm644 pkgIndex.tcl $out/lib/jimlib/pkgIndex.tcl
runHook postInstall
'';

meta = {
Expand Down

0 comments on commit 6c0b5ec

Please sign in to comment.