Skip to content

Commit

Permalink
diversion: Refactor
Browse files Browse the repository at this point in the history
Changed how the phases are set and removed setting path during
install phase
  • Loading branch information
kggx committed Jan 30, 2025
1 parent 8c7f2e4 commit 6fa6eba
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pkgs/by-name/di/diversion-cli/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,15 @@ stdenv.mkDerivation {
sha256 = srcs.${stdenv.hostPlatform.system}.sha256;
};

phases = [ "installPhase" ];
dontUnpack = true;
dontConfigure = true;
dontBuild = true;

installPhase = ''
runHook preInstall
mkdir -p "$out/bin"
install -D $src $out/bin/dv
export PATH="$out/bin:$PATH"
runHook postInstall
'';

# nix-shell maintainers/scripts/update.nix --argstr package diversion-cli
Expand Down

0 comments on commit 6fa6eba

Please sign in to comment.