hosts/packages/alias.nix
2023-02-26 20:08:39 +01:00

11 lines
281 B
Nix

{ stdenv, inputPackage, inputName, outputName }:
stdenv.mkDerivation rec {
pname = outputName;
version = "1.0";
phases = [ "installPhase" ];
installPhase = ''
mkdir -p $out/bin
ln -s ${inputPackage}/bin/${inputName} $out/bin/${outputName}
'';
}