summary refs log tree commit diff
path: root/pkgs/applications/misc/xcruiser
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2018-11-27 19:55:08 -0600
committerMatthew Bauer <mjbauer95@gmail.com>2018-11-28 20:14:34 -0600
commit3d3f87365c160f27bd6d1455ef1bd3fc4cebe915 (patch)
tree6a3344c22dca6ee2ded4d5d7c5423456e9939723 /pkgs/applications/misc/xcruiser
parenta858113076b9012664237eb619b9289936b187a9 (diff)
downloadnixpkgs-3d3f87365c160f27bd6d1455ef1bd3fc4cebe915.tar
nixpkgs-3d3f87365c160f27bd6d1455ef1bd3fc4cebe915.tar.gz
nixpkgs-3d3f87365c160f27bd6d1455ef1bd3fc4cebe915.tar.bz2
nixpkgs-3d3f87365c160f27bd6d1455ef1bd3fc4cebe915.tar.lz
nixpkgs-3d3f87365c160f27bd6d1455ef1bd3fc4cebe915.tar.xz
nixpkgs-3d3f87365c160f27bd6d1455ef1bd3fc4cebe915.tar.zst
nixpkgs-3d3f87365c160f27bd6d1455ef1bd3fc4cebe915.zip
xcruiser: add setup hook
Cleans things up a bit here.
Diffstat (limited to 'pkgs/applications/misc/xcruiser')
-rw-r--r--pkgs/applications/misc/xcruiser/default.nix14
1 files changed, 7 insertions, 7 deletions
diff --git a/pkgs/applications/misc/xcruiser/default.nix b/pkgs/applications/misc/xcruiser/default.nix
index 3a25147971a..945072ce026 100644
--- a/pkgs/applications/misc/xcruiser/default.nix
+++ b/pkgs/applications/misc/xcruiser/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, gccmakedep, xorg }:
+{ stdenv, fetchurl, gccmakedep, xorg, imake, libXt, libXaw, libXpm, libXext }:
 
 stdenv.mkDerivation {
   name = "xcruiser-0.30";
@@ -8,13 +8,13 @@ stdenv.mkDerivation {
       sha256 = "1r8whva38xizqdh7jmn6wcmfmsndc67pkw22wzfzr6rq0vf6hywi";
     };
 
-  buildInputs = with xorg; [ gccmakedep imake libXt libXaw libXpm libXext ];
+  nativeBuildInputs = [ gccmakedep imake ];
+  buildInputs = [ libXt libXaw libXpm libXext ];
 
-  configurePhase = "xmkmf -a";
-
-  preBuild = ''
-    makeFlagsArray=( BINDIR=$out/bin XAPPLOADDIR=$out/etc/X11/app-defaults)
-  '';
+  makeFlags = [
+    "BINDIR=$(out)/bin"
+    "XAPPLOADDIR=$(out)/etc/X11/app-defaults"
+  ];
 
   meta = with stdenv.lib; {
     description = "Filesystem visualization utility";