summary refs log tree commit diff
path: root/pkgs/tools/filesystems/mtdutils
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2010-09-17 18:57:38 +0000
committerLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2010-09-17 18:57:38 +0000
commit83bfd425349459898b1cf16330518c9a330b32ec (patch)
tree943990860d3f6aa637ee361763b7cfb717fbf4ba /pkgs/tools/filesystems/mtdutils
parent8ee5697147ebbb0a0cbc2a1a750f8401796d4c06 (diff)
downloadnixpkgs-83bfd425349459898b1cf16330518c9a330b32ec.tar
nixpkgs-83bfd425349459898b1cf16330518c9a330b32ec.tar.gz
nixpkgs-83bfd425349459898b1cf16330518c9a330b32ec.tar.bz2
nixpkgs-83bfd425349459898b1cf16330518c9a330b32ec.tar.lz
nixpkgs-83bfd425349459898b1cf16330518c9a330b32ec.tar.xz
nixpkgs-83bfd425349459898b1cf16330518c9a330b32ec.tar.zst
nixpkgs-83bfd425349459898b1cf16330518c9a330b32ec.zip
Fixing the mtdutils package (install to proper LSB like directories, and remove 'v' in front
of the version, which annoyed nix-env name matching)

svn path=/nixpkgs/trunk/; revision=23839
Diffstat (limited to 'pkgs/tools/filesystems/mtdutils')
-rw-r--r--pkgs/tools/filesystems/mtdutils/default.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/tools/filesystems/mtdutils/default.nix b/pkgs/tools/filesystems/mtdutils/default.nix
index 521c1452e1c..4dbd9fe4439 100644
--- a/pkgs/tools/filesystems/mtdutils/default.nix
+++ b/pkgs/tools/filesystems/mtdutils/default.nix
@@ -1,19 +1,19 @@
 {stdenv, fetchgit, libuuid, lzo, zlib, acl}:
 
 let
-  version = "v1.3.1";
+  version = "1.3.1";
 in
 stdenv.mkDerivation {
   name = "mtd-utils-${version}";
 
   src = fetchgit {
     url = git://git.infradead.org/mtd-utils.git;
-    rev = version;
+    rev = "v" + version;
     sha256 = "0pjjs9x03bgvphqwlw99c2cpkpjsx0vkqi79vjl7fcb9pyrghgd1";
   };
 
-  preBuild = ''
-    makeFlags="DESTDIR=$out"
+  patchPhase = ''
+    sed -i -e s,/usr/local,, -e s,/usr,$out, common.mk
   '';
 
   buildInputs = [ libuuid lzo zlib acl ];