Skip to content

Commit 1b0698f

Browse files
committed
rebased: init at 1.1.5
1 parent 70aa40e commit 1b0698f

1 file changed

Lines changed: 77 additions & 0 deletions

File tree

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
{
2+
lib,
3+
stdenv,
4+
appimageTools,
5+
fetchurl,
6+
makeDesktopItem,
7+
git,
8+
}:
9+
10+
let
11+
pname = "rebased";
12+
version = "1.1.5";
13+
14+
src = fetchurl {
15+
url =
16+
{
17+
x86_64-linux = "https://github.com/DetachHead/rebased/releases/download/${version}/Rebased-x86_64.AppImage";
18+
aarch64-linux = "https://github.com/DetachHead/rebased/releases/download/${version}/Rebased-aarch64.AppImage";
19+
}
20+
.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
21+
hash =
22+
{
23+
x86_64-linux = "sha256-AJumwyhrt0kD+TrG5uFFSymJt+YupXhoEtjIRNlYzuc=";
24+
aarch64-linux = "sha256-G4YT1SCzRM5cjuT2RH4o1UL1Jv4AMT0iqqjyHrSuknA=";
25+
}
26+
.${stdenv.hostPlatform.system};
27+
};
28+
29+
appimageContents = appimageTools.extract {
30+
inherit pname version src;
31+
};
32+
33+
desktopItem = makeDesktopItem {
34+
name = "rebased";
35+
exec = "rebased %U";
36+
icon = "rebased";
37+
desktopName = "Rebased";
38+
comment = "A git client based on the IntelliJ platform";
39+
categories = [
40+
"Development"
41+
"IDE"
42+
];
43+
startupWMClass = "jetbrains-rebased";
44+
startupNotify = true;
45+
};
46+
in
47+
(appimageTools.wrapType2 {
48+
inherit pname version src;
49+
50+
extraPkgs = pkgs: [
51+
git
52+
];
53+
54+
extraInstallCommands = ''
55+
install -Dm444 ${appimageContents}/usr/bin/idea.svg \
56+
$out/share/icons/hicolor/scalable/apps/rebased.svg
57+
install -Dm444 ${desktopItem}/share/applications/*.desktop \
58+
-t $out/share/applications
59+
'';
60+
61+
meta = {
62+
description = "Git client based on the IntelliJ platform";
63+
homepage = "https://github.com/DetachHead/rebased";
64+
license = lib.licenses.asl20;
65+
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
66+
platforms = [
67+
"x86_64-linux"
68+
"aarch64-linux"
69+
];
70+
mainProgram = "rebased";
71+
maintainers = with lib.maintainers; [ Oops418 ];
72+
};
73+
}).overrideAttrs
74+
(_: {
75+
strictDeps = true;
76+
__structuredAttrs = true;
77+
})

0 commit comments

Comments
 (0)