mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-27 15:23:26 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
36 lines
825 B
Nix
36 lines
825 B
Nix
{ lib, stdenv, fetchurl, pkg-config, libX11 }:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "runningx";
|
|
version = "1.0";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.fiction.net/blong/programs/mutt/autoview/RunningX.c";
|
|
sha256 = "1mikkhrx6jsx716041qdy3nwjac08pxxvxyq2yablm8zg9hrip0d";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ libX11 ];
|
|
|
|
dontUnpack = true;
|
|
|
|
buildPhase = ''
|
|
cc -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 = "Program for testing if X is running";
|
|
license = lib.licenses.free;
|
|
platforms = lib.platforms.unix;
|
|
maintainers = [ lib.maintainers.romildo ];
|
|
mainProgram = "RunningX";
|
|
};
|
|
}
|