Author: eelco
Date: Sun Aug 21 00:10:12 2011
New Revision: 28716
URL: https://svn.nixos.org/websvn/nix/?rev=28716&sc=1
Log:
Added:
nixpkgs/trunk/pkgs/tools/misc/heimdall/
nixpkgs/trunk/pkgs/tools/misc/heimdall/default.nix
Modified:
nixpkgs/trunk/pkgs/top-level/all-packages.nix
Added: nixpkgs/trunk/pkgs/tools/misc/heimdall/default.nix
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ nixpkgs/trunk/pkgs/tools/misc/heimdall/default.nix Sun Aug 21 00:10:12
2011 (r28716)
@@ -0,0 +1,57 @@
+{ stdenv, fetchgit, pkgconfig, libusb1, udev
+, enableGUI ? true, qt4 ? null
+}:
+
+stdenv.mkDerivation {
+ name = "heimdall-1.3.0";
+
+ src = fetchgit {
+ url = git://github.com/Benjamin-Dobell/Heimdall.git;
+ rev = "ed9b08e5d9e3db60d52bccf6cb6919fb4bd47602";
+ sha256 =
"e65f18299a05699595548cb27393a01b4e1dbbced82d4add8d0d55ef6514a691";
+ };
+
+ buildInputs =
+ [ pkgconfig libusb1 udev ]
+ ++ stdenv.lib.optional enableGUI qt4 ;
+
+ makeFlags = "udevrulesdir=$(out)/lib/udev/rules.d";
+
+ preConfigure =
+ ''
+ pushd libpit
+ ./configure
+ make
+ popd
+
+ cd heimdall
+ substituteInPlace Makefile.in --replace sudo true
+
+ # Give ownership of the Galaxy S USB device to the logged in
+ # user.
+ substituteInPlace 60-heimdall-galaxy-s.rules --replace 'MODE="0666"'
'TAG+="udev-acl"'
+ '';
+
+ postBuild = stdenv.lib.optionalString enableGUI
+ ''
+ pushd ../heimdall-frontend
+ substituteInPlace Source/mainwindow.cpp --replace /usr/bin $out/bin
+ qmake heimdall-frontend.pro OUTPUTDIR=$out/bin
+ make
+ popd
+ '';
+
+ postInstall =
+ ''
+ mkdir -p $out/share/doc/heimdall
+ cp ../Linux/README $out/share/doc/heimdall/
+ '' + stdenv.lib.optionalString enableGUI ''
+ make -C ../heimdall-frontend install
+ '';
+
+ meta = {
+ homepage = http://www.glassechidna.com.au/products/heimdall/;
+ description = "A cross-platform open-source tool suite used to flash
firmware onto Samsung Galaxy S devices";
+ license = "bsd";
+ };
+}
Modified: nixpkgs/trunk/pkgs/top-level/all-packages.nix
==============================================================================
--- nixpkgs/trunk/pkgs/top-level/all-packages.nix Sat Aug 20 23:26:59
2011 (r28715)
+++ nixpkgs/trunk/pkgs/top-level/all-packages.nix Sun Aug 21 00:10:12
2011 (r28716)
@@ -810,6 +810,8 @@
hdf5 = callPackage ../tools/misc/hdf5 { };
+ heimdall = callPackage ../tools/misc/heimdall { };
+
hevea = callPackage ../tools/typesetting/hevea { };
highlight = callPackage ../tools/text/highlight { };
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits