berry: 0.1.7 -> 0.1.9

This commit is contained in:
AndersonTorres 2022-01-05 18:07:41 -03:00 committed by Jonathan Ringer
parent 0eef882cf5
commit 7580fbb4be

View File

@ -1,24 +1,35 @@
{ lib, stdenv
{ lib
, stdenv
, fetchFromGitHub
, copyDesktopItems
, fontconfig
, freetype
, libX11
, libXext
, libXft
, libXinerama
, fontconfig
, freetype
, makeDesktopItem
, pkg-config
, which
}:
stdenv.mkDerivation rec {
pname = "berry";
version = "0.1.7";
version = "0.1.9";
src = fetchFromGitHub {
owner = "JLErvin";
repo = pname;
rev = version;
sha256 = "sha256-2kFVOE5l1KQvDb5KDL7y0p4M7awJLrxJF871cyc0YZ8=";
hash = "sha256-E1kjqSv2eylJ/9EGcxQrJ2P7VaehyUiirk0TxlPWSnM=";
};
nativeBuildInputs = [
copyDesktopItems
pkg-config
which
];
buildInputs =[
libX11
libXext
@ -28,16 +39,21 @@ stdenv.mkDerivation rec {
freetype
];
preBuild = ''
makeFlagsArray+=( PREFIX="${placeholder "out"}"
X11INC="${libX11.dev}/include"
X11LIB="${libX11}/lib"
XINERAMALIBS="-lXinerama"
XINERAMAFLAGS="-DXINERAMA"
FREETYPELIBS="-lfontconfig -lXft"
FREETYPEINC="${freetype.dev}/include/freetype2" )
preConfigure = ''
patchShebangs configure
'';
desktopItems = [
(makeDesktopItem {
name = pname;
exec = "berry";
comment = meta.description;
desktopName = "Berry Window Manager";
genericName = "Berry Window Manager";
categories = "Utility;";
})
];
meta = with lib; {
description = "A healthy, bite-sized window manager";
longDescription = ''
@ -59,3 +75,5 @@ stdenv.mkDerivation rec {
platforms = platforms.linux;
};
}
# TODO: report upstream that `which` is not POSIX; the `command` shell builtin
# should be used instead