mirror of
https://github.com/RGBCube/GitHub2Forgejo
synced 2025-07-26 20:57:44 +00:00
Add package.nix
This commit is contained in:
parent
9e56139a21
commit
b404d0fc8e
2 changed files with 44 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -4,3 +4,4 @@
|
||||||
!github2forgejo
|
!github2forgejo
|
||||||
|
|
||||||
!*.md
|
!*.md
|
||||||
|
!*.nix
|
||||||
|
|
43
package.nix
Normal file
43
package.nix
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
{
|
||||||
|
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 ];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue