diff options
author | Robin Gloster <mail@glob.in> | 2017-08-11 11:40:08 +0200 |
---|---|---|
committer | Robin Gloster <mail@glob.in> | 2017-08-11 11:40:36 +0200 |
commit | 28cc2642f09419b0a8345d6349329b851d11ad98 (patch) | |
tree | 4b107b35809712540a0962b53dc2f75dfd2fdda0 /pkgs/tools/security/omapd | |
parent | 72457cdebbeeafbc48cba517f07351ff02cc0dab (diff) |
treewide: use less `phases` if not necessary
This removes some skipping of e.g. fixupPhase and cleans up occurences where this led to duplicating code
Diffstat (limited to 'pkgs/tools/security/omapd')
-rw-r--r-- | pkgs/tools/security/omapd/default.nix | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/pkgs/tools/security/omapd/default.nix b/pkgs/tools/security/omapd/default.nix index ae1c2c05f147c..9e01e8f0a9f39 100644 --- a/pkgs/tools/security/omapd/default.nix +++ b/pkgs/tools/security/omapd/default.nix @@ -1,6 +1,6 @@ -{ stdenv, fetchurl, cmake, qt4, gdb, zlib }: -stdenv.mkDerivation rec { +{ stdenv, fetchurl, qt4, gdb, zlib }: +stdenv.mkDerivation rec { name = "omapd-${version}"; version = "0.9.2"; @@ -11,23 +11,20 @@ stdenv.mkDerivation rec { patches = [ ./zlib.patch ]; - buildInputs = [ cmake qt4 zlib gdb ]; - - phases = [ "unpackPhase" "patchPhase" "buildPhase" "installPhase" ]; + buildInputs = [ qt4 zlib gdb ]; buildPhase = '' (cd plugins/RAMHashTables; qmake; make) qmake make - ''; + ''; installPhase = '' - mkdir -p $out $out/bin $out/etc $out/usr/lib/omapd/plugins - cp omapd $out/bin/. - cp omapd.conf $out/etc/. - cp plugins/libRAMHashTables.so $out/usr/lib/omapd/plugins/. + install -vD omapd $out/bin/omapd + install -vD omapd.conf $out/etc/omapd.conf + install -vD plugins/libRAMHashTables.so $out/usr/lib/omapd/plugins/libRAMHashTables.so ln -s $out/usr/lib/omapd/plugins $out/bin/plugins - ''; + ''; meta = with stdenv.lib; { homepage = http://code.google.com/p/omapd; |