From b2e3c05c4879cdef9e98e80bcd768c98f2704105 Mon Sep 17 00:00:00 2001
From: devhell <^@regexmail.net>
Date: Mon, 26 Oct 2015 17:36:50 +0000
Subject: [PATCH] mp3val: Better installPhase

As mentioned by @aszlig, it's more elegant and sane to use coreutils'
`install`. This commit also changes `platforms` to `unix` since this
should also compile on Darwin for example.
---
 pkgs/applications/audio/mp3val/default.nix | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/pkgs/applications/audio/mp3val/default.nix b/pkgs/applications/audio/mp3val/default.nix
index 76aaeaf8e6b4..0957420b6585 100644
--- a/pkgs/applications/audio/mp3val/default.nix
+++ b/pkgs/applications/audio/mp3val/default.nix
@@ -12,8 +12,7 @@ stdenv.mkDerivation rec {
   makefile = "Makefile.linux";
 
   installPhase = ''
-    mkdir -p $out/bin/
-    cp mp3val $out/bin/
+    install -Dv mp3val "$out/bin/mp3val"
   '';
 
   meta = {
@@ -30,7 +29,7 @@ stdenv.mkDerivation rec {
     '';
     homepage = http://mp3val.sourceforge.net/index.shtml;
     license = stdenv.lib.licenses.gpl2;
-    platforms = stdenv.lib.platforms.linux;
+    platforms = stdenv.lib.platforms.unix;
     maintainers = [ stdenv.lib.maintainers.devhell ];
   };
 }