1
- { stdenv , autoreconfHook , fetchgit , bison , flex , bluez , pkgconfig , gtk2 } :
1
+ { stdenv , fetchFromGitHub , autoreconfHook , bison , flex , bluez , pkgconfig , gtk2 } :
2
2
3
3
stdenv . mkDerivation rec {
4
- name = "cwiid-2010-02-21-git" ;
5
-
6
- src = fetchgit {
7
- url = https://github.com/abstrakraft/cwiid ;
8
- sha256 = "0qdb0x757k76nfj32xc2nrrdqd9jlwgg63vfn02l2iznnzahxp0h" ;
9
- rev = "fadf11e89b579bcc0336a0692ac15c93785f3f82" ;
4
+ name = "cwiid-${ version } -git" ;
5
+ version = "2010-02-21" ;
6
+
7
+ src = fetchFromGitHub {
8
+ owner = "abstrakraft" ;
9
+ repo = "cwiid" ;
10
+ rev = "fadf11e89b579bcc0336a0692ac15c93785f3f82" ;
11
+ sha256 = "0qdb0x757k76nfj32xc2nrrdqd9jlwgg63vfn02l2iznnzahxp0h" ;
10
12
} ;
11
13
12
14
hardeningDisable = [ "format" ] ;
@@ -17,18 +19,20 @@ stdenv.mkDerivation rec {
17
19
sed -i -e '/$(LDCONFIG)/d' common/include/lib.mak.in
18
20
'' ;
19
21
20
- buildInputs = [ autoreconfHook bison flex bluez pkgconfig gtk2 ] ;
22
+ buildInputs = [ bison flex bluez gtk2 ] ;
23
+
24
+ nativeBuildInputs = [ autoreconfHook pkgconfig ] ;
21
25
22
26
postInstall = ''
23
27
# Some programs (for example, cabal-install) have problems with the double 0
24
28
sed -i -e "s/0.6.00/0.6.0/" $out/lib/pkgconfig/cwiid.pc
25
29
'' ;
26
30
27
- meta = {
31
+ meta = with stdenv . lib ; {
28
32
description = "Linux Nintendo Wiimote interface" ;
29
- homepage = http://cwiid.org ;
30
- license = stdenv . lib . licenses . gpl2Plus ;
31
- maintainers = [ stdenv . lib . maintainers . bennofs ] ;
32
- platforms = stdenv . lib . platforms . linux ;
33
+ homepage = http://cwiid.org ;
34
+ license = licenses . gpl2Plus ;
35
+ maintainers = with maintainers ; [ bennofs ] ;
36
+ platforms = platforms . linux ;
33
37
} ;
34
38
}
0 commit comments