mirror of
https://github.com/RGBCube/github2forgejo
synced 2026-01-13 08:41:03 +00:00
43 lines
753 B
Nix
43 lines
753 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;
|
|
maintainers = with maintainers; [ RGBCube ];
|
|
};
|
|
}
|