Commit 31798c17 authored by Thiago Kenji Okada's avatar Thiago Kenji Okada
Browse files

any-nix-shell: run preInstall/postInstall hooks, remove `with lib`

parent 9a8e69dd
Loading
Loading
Loading
Loading
+10 −3
Original line number Diff line number Diff line
@@ -20,9 +20,14 @@ stdenv.mkDerivation rec {
  };

  strictDeps = true;

  nativeBuildInputs = [ makeWrapper ];

  buildInputs = [ bash ];

  installPhase = ''
    runHook preInstall

    mkdir -p $out/bin
    cp -r bin $out
    wrapProgram $out/bin/any-nix-shell --prefix PATH ":" ${
@@ -32,13 +37,15 @@ stdenv.mkDerivation rec {
        which
      ]
    }

    runHook postInstall
  '';

  meta = with lib; {
  meta = {
    description = "fish, xonsh and zsh support for nix-shell";
    license = licenses.mit;
    license = lib.licenses.mit;
    homepage = "https://github.com/haslersn/any-nix-shell";
    maintainers = with maintainers; [ haslersn ];
    maintainers = with lib.maintainers; [ haslersn ];
    mainProgram = "any-nix-shell";
  };
}