1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/tools/X11/runningx/default.nix

35 lines
820 B
Nix
Raw Normal View History

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