-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpackage.nix
More file actions
46 lines (34 loc) · 791 Bytes
/
package.nix
File metadata and controls
46 lines (34 loc) · 791 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
lib,
stdenvNoCC,
nushell,
}:
stdenvNoCC.mkDerivation {
name = "github2forgejo";
version = "master";
src = builtins.path {
path = ./.;
name = "source";
};
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' '${lib.getExe nushell}'
runHook postFixup
'';
meta = {
description = "GitHub to Forgejo migration script";
homepage = "https://git.rgbcu.be/RGBCube/GitHub2Forgejo";
license = lib.licenses.gpl3Only;
mainProgram = "github2forgejo";
};
}