2021-01-17 10:17:16 +01:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, libX11 }:
|
2016-05-31 14:55:55 +02:00
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "runningx";
|
2016-05-31 14:55:55 +02:00
|
|
|
version = "1.0";
|
2021-01-15 10:19:50 +01:00
|
|
|
|
2016-05-31 14:55:55 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.fiction.net/blong/programs/mutt/autoview/RunningX.c";
|
|
|
|
sha256 = "1mikkhrx6jsx716041qdy3nwjac08pxxvxyq2yablm8zg9hrip0d";
|
|
|
|
};
|
|
|
|
|
2021-01-17 10:17:16 +01:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2016-05-31 14:55:55 +02:00
|
|
|
|
|
|
|
buildInputs = [ libX11 ];
|
|
|
|
|
2021-07-17 21:26:51 +02:00
|
|
|
dontUnpack = true;
|
2016-05-31 14:55:55 +02:00
|
|
|
|
|
|
|
buildPhase = ''
|
2016-08-12 07:09:15 +02:00
|
|
|
cc -O2 -o RunningX $(pkg-config --cflags --libs x11) $src
|
2016-05-31 14:55:55 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out"/bin
|
|
|
|
cp -vai RunningX "$out/bin"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://www.fiction.net/blong/programs/mutt/";
|
2016-05-31 14:55:55 +02:00
|
|
|
description = "A program for testing if X is running";
|
2021-01-15 10:19:50 +01:00
|
|
|
license = lib.licenses.free;
|
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
maintainers = [ lib.maintainers.romildo ];
|
2022-04-01 21:34:55 +02:00
|
|
|
mainProgram = "RunningX";
|
2016-05-31 14:55:55 +02:00
|
|
|
};
|
|
|
|
}
|