summary refs log tree commit diff
path: root/pkgs/tools/filesystems/jmtpfs
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>2015-05-27 02:56:39 +0200
committerTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>2015-05-27 02:56:39 +0200
commitdda255f938ca9a89b196aa43192f3a5555a89364 (patch)
treeabd2c29532673e6b44e0bb165bfc40d1c1ea12a9 /pkgs/tools/filesystems/jmtpfs
parent60461dee1c55c6305c98dad517db6b5d5444ad2d (diff)
downloadnixlib-dda255f938ca9a89b196aa43192f3a5555a89364.tar
nixlib-dda255f938ca9a89b196aa43192f3a5555a89364.tar.gz
nixlib-dda255f938ca9a89b196aa43192f3a5555a89364.tar.bz2
nixlib-dda255f938ca9a89b196aa43192f3a5555a89364.tar.lz
nixlib-dda255f938ca9a89b196aa43192f3a5555a89364.tar.xz
nixlib-dda255f938ca9a89b196aa43192f3a5555a89364.tar.zst
nixlib-dda255f938ca9a89b196aa43192f3a5555a89364.zip
jmtpfs: fix changed sha256 hash
...by switching to fetchFromGitHub. Also clean up (some
dependencies are no longer needed).
Diffstat (limited to 'pkgs/tools/filesystems/jmtpfs')
-rw-r--r--pkgs/tools/filesystems/jmtpfs/default.nix25
1 files changed, 12 insertions, 13 deletions
diff --git a/pkgs/tools/filesystems/jmtpfs/default.nix b/pkgs/tools/filesystems/jmtpfs/default.nix
index 86dad1cc0fa4..2a2ff0a47a5d 100644
--- a/pkgs/tools/filesystems/jmtpfs/default.nix
+++ b/pkgs/tools/filesystems/jmtpfs/default.nix
@@ -1,23 +1,22 @@
-{ stdenv, fetchurl
-, autoconf, automake
-, unzip, pkgconfig
-, file, fuse, libmtp }:
+{ stdenv, fetchFromGitHub, pkgconfig, file, fuse, libmtp }:
 
-stdenv.mkDerivation rec {
-  version = "0.5";
+let version = "0.5"; in
+stdenv.mkDerivation {
   name = "jmtpfs-${version}";
 
-  src = fetchurl {
-    url = "https://github.com/JasonFerrara/jmtpfs/archive/v0.5.zip";
-    sha256 = "09fw4g350mjz1mnga7ws5nvnsnfzs8s7cscl300mas1m9s6vmhz6";
+  src = fetchFromGitHub {
+    sha256 = "1pm68agkhrwgrplrfrnbwdcvx5lrivdmqw8pb5gdmm3xppnryji1";
+    rev = "v${version}";
+    repo = "jmtpfs";
+    owner = "JasonFerrara";
   };
 
-  buildInputs = [ autoconf automake file fuse libmtp pkgconfig unzip ];
+  buildInputs = [ file fuse libmtp pkgconfig ];
 
-  meta = {
+  meta = with stdenv.lib; {
     description = "A FUSE filesystem for MTP devices like Android phones";
     homepage = https://github.com/JasonFerrara/jmtpfs;
-    license = stdenv.lib.licenses.gpl3;
-    maintainers = [ stdenv.lib.maintainers.coconnor ];
+    license = licenses.gpl3;
+    maintainers = [ maintainers.coconnor ];
   };
 }