summary refs log tree commit diff
path: root/pkgs/tools/security/ssdeep/default.nix
diff options
context:
space:
mode:
authorAustin Seipp <aseipp@pobox.com>2014-03-29 19:28:39 -0500
committerAustin Seipp <aseipp@pobox.com>2014-03-29 19:28:39 -0500
commit81b4248d8d56863a0054ab19ea02a15e3a41d720 (patch)
tree2dc414003c678ae00e14097107fdb87089255ea5 /pkgs/tools/security/ssdeep/default.nix
parent090ee41e6bc1a0fae5c0e85ed213e9ae97211cc3 (diff)
downloadnixpkgs-81b4248d8d56863a0054ab19ea02a15e3a41d720.tar
nixpkgs-81b4248d8d56863a0054ab19ea02a15e3a41d720.tar.gz
nixpkgs-81b4248d8d56863a0054ab19ea02a15e3a41d720.tar.bz2
nixpkgs-81b4248d8d56863a0054ab19ea02a15e3a41d720.tar.lz
nixpkgs-81b4248d8d56863a0054ab19ea02a15e3a41d720.tar.xz
nixpkgs-81b4248d8d56863a0054ab19ea02a15e3a41d720.tar.zst
nixpkgs-81b4248d8d56863a0054ab19ea02a15e3a41d720.zip
ssdeep: Fix darwin build
Signed-off-by: Austin Seipp <aseipp@pobox.com>
Diffstat (limited to 'pkgs/tools/security/ssdeep/default.nix')
-rw-r--r--pkgs/tools/security/ssdeep/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/tools/security/ssdeep/default.nix b/pkgs/tools/security/ssdeep/default.nix
index c59e50f4ae4..c5c47441704 100644
--- a/pkgs/tools/security/ssdeep/default.nix
+++ b/pkgs/tools/security/ssdeep/default.nix
@@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
     sha256 = "1p7dgchq8hgadnxz5qh95ay17k5j74l4qyd15wspc54lb603p2av";
   };
 
-  postFixup = ''
+  postFixup = stdenv.lib.optionalString stdenv.isLinux ''
     patchelf --set-rpath "$(patchelf --print-rpath $out/bin/ssdeep):$out/lib" $out/bin/ssdeep
   '';
 
@@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
     description = "A program for calculating fuzzy hashes";
     homepage    = "http://www.ssdeep.sf.net";
     license     = stdenv.lib.licenses.gpl2;
-    platforms   = stdenv.lib.platforms.linux;
+    platforms   = stdenv.lib.platforms.unix;
     maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
   };
 }