1
Fork 0
mirror of https://github.com/RGBCube/GitHub2Forgejo synced 2025-05-14 03:54:58 +00:00
GitHub2Forgejo/package.nix

44 lines
789 B
Nix

{
lib,
stdenvNoCC,
nushell,
}:
stdenvNoCC.mkDerivation {
name = "github2forgejo";
version = "master";
src = ./.;
dontBuild = true;
dontConfigure = true;
nativeBuildInputs = [ nushell ];
installPhase = ''
runHook preInstall
mkdir -p $out/bin
cp github2forgejo $out/bin
runHook postInstall
'';
fixupPhase = ''
runHook preFixup
substituteInPlace $out/bin/github2forgejo \
--replace '/usr/bin/env nu' '${nushell}/bin/nu'
runHook postFixup
'';
meta = with lib; {
description = "GitHub to Forgejo migration script";
homepage = "https://git.rgbcu.be/RGBCube/GitHub2Forgejo";
license = licenses.gpl3Only;
mainProgram = "github2forgejo";
maintainers = with maintainers; [ RGBCube ];
};
}