Skip to content

Commit 7ced4d9

Browse files
authored
nabi: 1.0.0 -> 1.0.1 (#392355)
2 parents 97e6665 + cb03450 commit 7ced4d9

File tree

1 file changed

+28
-11
lines changed

1 file changed

+28
-11
lines changed

pkgs/by-name/na/nabi/package.nix

Lines changed: 28 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,51 @@
11
{
22
lib,
33
stdenv,
4-
fetchurl,
4+
fetchFromGitHub,
55
pkg-config,
66
gtk2,
77
libhangul,
8+
autoconf,
9+
automake,
810
}:
911

1012
stdenv.mkDerivation rec {
1113
pname = "nabi";
12-
version = "1.0.0";
14+
version = "1.0.1";
1315

14-
src = fetchurl {
15-
url = "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/nabi/nabi-${version}.tar.gz";
16-
sha256 = "0craa24pw7b70sh253arv9bg9sy4q3mhsjwfss3bnv5nf0xwnncw";
16+
src = fetchFromGitHub {
17+
owner = "libhangul";
18+
repo = "nabi";
19+
tag = "nabi-${version}";
20+
hash = "sha256-C6K8sXVCGf45VZtGSCB5emFzZPV21kG9JxAwBHRiFsY=";
1721
};
1822

19-
nativeBuildInputs = [ pkg-config ];
23+
nativeBuildInputs = [
24+
pkg-config
25+
autoconf
26+
automake
27+
];
28+
2029
buildInputs = [
2130
gtk2
2231
libhangul
2332
];
2433

25-
meta = with lib; {
34+
postPatch = ''
35+
patchShebangs ./autogen.sh
36+
'';
37+
38+
preConfigure = ''
39+
./autogen.sh
40+
'';
41+
42+
meta = {
2643
description = "Easy Hangul XIM";
2744
mainProgram = "nabi";
28-
homepage = "https://github.com/choehwanjin/nabi";
45+
homepage = "https://github.com/libhangul/nabi";
2946
changelog = "https://github.com/libhangul/nabi/blob/nabi-${version}/NEWS";
30-
license = licenses.gpl2Plus;
31-
maintainers = [ maintainers.ianwookim ];
32-
platforms = platforms.linux;
47+
license = lib.licenses.gpl2Plus;
48+
maintainers = with lib.maintainers; [ ianwookim ];
49+
platforms = lib.platforms.linux;
3350
};
3451
}

0 commit comments

Comments
 (0)