libcaca: 0.99.beta19 -> 0.99.beta20
This commit is contained in:
parent
2ac78e7a22
commit
99f5cab192
1 changed files with 19 additions and 19 deletions
|
@ -1,40 +1,32 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, fetchFromGitHub
|
||||
, autoreconfHook
|
||||
, imlib2
|
||||
, libX11
|
||||
, libXext
|
||||
, ncurses
|
||||
, pkg-config
|
||||
, x11Support ? !stdenv.isDarwin
|
||||
, zlib
|
||||
, x11Support ? !stdenv.isDarwin
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libcaca";
|
||||
version = "0.99.beta19";
|
||||
version = "0.99.beta20";
|
||||
|
||||
src = fetchurl {
|
||||
urls = [
|
||||
"http://fossies.org/linux/privat/${pname}-${version}.tar.gz"
|
||||
"http://caca.zoy.org/files/libcaca/${pname}-${version}.tar.gz"
|
||||
];
|
||||
hash = "sha256-EotGfE7QMmTBh0BRcqToMEk0LMjML2VfU6LQ7p03cvQ=";
|
||||
src = fetchFromGitHub {
|
||||
owner = "cacalabs";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-N0Lfi0d4kjxirEbIjdeearYWvStkKMyV6lgeyNKXcVw=";
|
||||
};
|
||||
|
||||
outputs = [ "bin" "dev" "out" "man" ];
|
||||
|
||||
configureFlags = [
|
||||
(if x11Support then "--enable-x11" else "--disable-x11")
|
||||
];
|
||||
|
||||
NIX_CFLAGS_COMPILE = lib.optionalString (!x11Support) "-DX_DISPLAY_MISSING";
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoreconfHook
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
ncurses
|
||||
zlib
|
||||
|
@ -44,6 +36,14 @@ stdenv.mkDerivation rec {
|
|||
libXext
|
||||
];
|
||||
|
||||
outputs = [ "bin" "dev" "out" "man" ];
|
||||
|
||||
configureFlags = [
|
||||
(if x11Support then "--enable-x11" else "--disable-x11")
|
||||
];
|
||||
|
||||
NIX_CFLAGS_COMPILE = lib.optionalString (!x11Support) "-DX_DISPLAY_MISSING";
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $dev/bin
|
||||
mv $bin/bin/caca-config $dev/bin/caca-config
|
||||
|
|
Loading…
Reference in a new issue