2016-05-31 15:55:55 +03:00
|
|
|
{ stdenv, fetchurl, pkgconfig, libX11 }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "runningx-${version}";
|
|
|
|
version = "1.0";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.fiction.net/blong/programs/mutt/autoview/RunningX.c";
|
|
|
|
sha256 = "1mikkhrx6jsx716041qdy3nwjac08pxxvxyq2yablm8zg9hrip0d";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
|
|
|
|
buildInputs = [ libX11 ];
|
|
|
|
|
|
|
|
phases = [ "buildPhase" "installPhase" ];
|
|
|
|
|
|
|
|
buildPhase = ''
|
2016-08-12 08:09:15 +03:00
|
|
|
cc -O2 -o RunningX $(pkg-config --cflags --libs x11) $src
|
2016-05-31 15:55:55 +03:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out"/bin
|
|
|
|
cp -vai RunningX "$out/bin"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.fiction.net/blong/programs/mutt/;
|
|
|
|
description = "A program for testing if X is running";
|
|
|
|
license = stdenv.lib.licenses.free;
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.romildo ];
|
|
|
|
};
|
|
|
|
}
|