mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 13:57:10 +03:00
runningx: init at 1.0
This commit is contained in:
parent
36cc45782b
commit
93a371ede7
34
pkgs/tools/X11/runningx/default.nix
Normal file
34
pkgs/tools/X11/runningx/default.nix
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
{ 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 = ''
|
||||||
|
gcc -O2 -o RunningX $(pkg-config --cflags --libs x11) $src
|
||||||
|
'';
|
||||||
|
|
||||||
|
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 ];
|
||||||
|
};
|
||||||
|
}
|
@ -3206,6 +3206,8 @@ in
|
|||||||
|
|
||||||
rubber = callPackage ../tools/typesetting/rubber { };
|
rubber = callPackage ../tools/typesetting/rubber { };
|
||||||
|
|
||||||
|
runningx = callPackage ../tools/X11/runningx { };
|
||||||
|
|
||||||
runzip = callPackage ../tools/archivers/runzip { };
|
runzip = callPackage ../tools/archivers/runzip { };
|
||||||
|
|
||||||
rxp = callPackage ../tools/text/xml/rxp { };
|
rxp = callPackage ../tools/text/xml/rxp { };
|
||||||
|
Loading…
Reference in New Issue
Block a user