@@ -1,12 +1,14 @@
1−{ stdenv, autoreconfHook, fetchgit, bison, flex, bluez, pkgconfig, gtk2 }:
1+{ stdenv, fetchFromGitHub, autoreconfHook, bison, flex, bluez, pkgconfig, gtk2 }:
22
33stdenv.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";
1012 };
1113
1214 hardeningDisable = [ "format" ];
@@ -17,18 +19,20 @@ stdenv.mkDerivation rec {
1719 sed -i -e '/$(LDCONFIG)/d' common/include/lib.mak.in
1820 '';
1921
20− buildInputs = [ autoreconfHook bison flex bluez pkgconfig gtk2 ];
22+ buildInputs = [ bison flex bluez gtk2 ];
23+
24+ nativeBuildInputs = [ autoreconfHook pkgconfig ];
2125
2226 postInstall = ''
2327 # Some programs (for example, cabal-install) have problems with the double 0
2428 sed -i -e "s/0.6.00/0.6.0/" $out/lib/pkgconfig/cwiid.pc
2529 '';
2630
27− meta = {
31+ meta = with stdenv.lib; {
2832 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;
3337 };
3438}