mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 09:13:17 +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.
59 lines
1.1 KiB
Nix
59 lines
1.1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, libX11
|
|
, libXmu
|
|
, libXpm
|
|
, gtk2
|
|
, libpng
|
|
, libjpeg
|
|
, libtiff
|
|
, librsvg
|
|
, gdk-pixbuf
|
|
, gdk-pixbuf-xlib
|
|
, pypy2
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "fbpanel";
|
|
version = "7.0";
|
|
src = fetchFromGitHub {
|
|
owner = "aanatoly";
|
|
repo = "fbpanel";
|
|
rev = "478754b687e2b48b111507ea22e8e2a001be5199";
|
|
hash = "sha256-+KcVcrh1aV6kjLGyiDnRHXSzJfelXWrhJS0DitG4yPA=";
|
|
};
|
|
nativeBuildInputs = [ pkg-config pypy2 ];
|
|
buildInputs = [
|
|
libX11
|
|
libXmu
|
|
libXpm
|
|
gtk2
|
|
libpng
|
|
libjpeg
|
|
libtiff
|
|
librsvg
|
|
gdk-pixbuf
|
|
gdk-pixbuf-xlib.dev
|
|
];
|
|
|
|
preConfigure = ''
|
|
sed -re '1i#!${pypy2}/bin/pypy' -i configure .config/*.py
|
|
sed -re 's/\<out\>/outputredirect/g' -i .config/rules.mk
|
|
sed -i 's/struct\ \_plugin_instance \*stam\;//' panel/plugin.h
|
|
'';
|
|
|
|
makeFlags = ["V=1"];
|
|
NIX_CFLAGS_COMPILE = ["-Wno-error" "-I${gdk-pixbuf-xlib.dev}/include/gdk-pixbuf-2.0"];
|
|
|
|
meta = with lib; {
|
|
description = "Stand-alone panel";
|
|
maintainers = with maintainers; [ raskin ];
|
|
platforms = platforms.linux;
|
|
license = licenses.mit;
|
|
mainProgram = "fbpanel";
|
|
};
|
|
|
|
}
|