Merge pull request #156187 from c0bw3b/pkg/imlib2
This commit is contained in:
@@ -460,6 +460,11 @@ in mkLicense lset) ({
|
||||
spdxId = "imagemagick";
|
||||
};
|
||||
|
||||
imlib2 = {
|
||||
spdxId = "Imlib2";
|
||||
fullName = "Imlib2 License";
|
||||
};
|
||||
|
||||
inria-compcert = {
|
||||
fullName = "INRIA Non-Commercial License Agreement for the CompCert verified compiler";
|
||||
url = "https://compcert.org/doc/LICENSE.txt";
|
||||
@@ -587,6 +592,11 @@ in mkLicense lset) ({
|
||||
fullName = "MIT License";
|
||||
};
|
||||
|
||||
mitAdvertising = {
|
||||
spdxId = "MIT-advertising";
|
||||
fullName = "Enlightenment License (e16)";
|
||||
};
|
||||
|
||||
mpl10 = {
|
||||
spdxId = "MPL-1.0";
|
||||
fullName = "Mozilla Public License 1.0";
|
||||
|
||||
@@ -9,20 +9,27 @@ stdenv.mkDerivation {
|
||||
};
|
||||
|
||||
buildInputs = [ libX11 imlib2 libXinerama ];
|
||||
|
||||
buildPhase = ''
|
||||
gcc -g imlibsetroot.c -o imlibsetroot \
|
||||
`imlib2-config --cflags` `imlib2-config --libs` \
|
||||
-I/include/X11/extensions -lXinerama -lX11
|
||||
runHook preBuild
|
||||
|
||||
gcc -g imlibsetroot.c -o imlibsetroot \
|
||||
-I${imlib2.dev}/include -L${imlib2}/lib -lImlib2 \
|
||||
-I${libX11.dev}/include -lXinerama -lX11
|
||||
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
install -m 755 imlibsetroot $out/bin
|
||||
runHook preInstall
|
||||
install -D -m 0755 imlibsetroot -t $out/bin
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A Xinerama Aware Background Changer";
|
||||
homepage = "http://robotmonkeys.net/2010/03/30/imlibsetroot/";
|
||||
license = licenses.gpl2;
|
||||
license = licenses.mitAdvertising;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ dwarfmaster ];
|
||||
};
|
||||
|
||||
@@ -1,37 +0,0 @@
|
||||
{ lib, stdenv, fetchurl, xlibsWrapper, imlib2 }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "giblib";
|
||||
version = "1.2.4";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://linuxbrit.co.uk/downloads/giblib-${version}.tar.gz";
|
||||
sha256 = "1b4bmbmj52glq0s898lppkpzxlprq9aav49r06j2wx4dv3212rhp";
|
||||
};
|
||||
|
||||
outputs = [ "out" "dev" ];
|
||||
setOutputFlags = false;
|
||||
|
||||
preConfigure = ''
|
||||
configureFlagsArray+=(
|
||||
--includedir=$dev/include
|
||||
)
|
||||
'';
|
||||
|
||||
buildInputs = [ xlibsWrapper ];
|
||||
propagatedBuildInputs = [ imlib2 ];
|
||||
|
||||
postFixup = ''
|
||||
moveToOutput bin/giblib-config "$dev"
|
||||
|
||||
# Doesn't contain useful stuff
|
||||
rm -rf $out/share/doc
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = "http://linuxbrit.co.uk/giblib/";
|
||||
description = "wrapper library for imlib2, and other stuff";
|
||||
platforms = lib.platforms.unix;
|
||||
license = lib.licenses.mit;
|
||||
};
|
||||
}
|
||||
@@ -12,11 +12,11 @@ let
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "imlib2";
|
||||
version = "1.7.3";
|
||||
version = "1.7.5";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/enlightenment/${pname}-${version}.tar.bz2";
|
||||
sha256 = "sha256-FY0LjCC8ESIa+ed6ZKEW/KcFGwPN6ixPMdMfRpOC+Zc=";
|
||||
url = "mirror://sourceforge/enlightenment/${pname}-${version}.tar.xz";
|
||||
hash = "sha256-RY2DAKp6bUzjU1GDi7pdn9+wiES9WxU8WTjs/kP/Ngo=";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
@@ -28,11 +28,6 @@ stdenv.mkDerivation rec {
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
preConfigure = ''
|
||||
substituteInPlace imlib2-config.in \
|
||||
--replace "@my_libs@" ""
|
||||
'';
|
||||
|
||||
# Do not build amd64 assembly code on Darwin, because it fails to compile
|
||||
# with unknow directive errors
|
||||
configureFlags = optional stdenv.isDarwin "--enable-amd64=no"
|
||||
@@ -40,10 +35,6 @@ stdenv.mkDerivation rec {
|
||||
|
||||
outputs = [ "bin" "out" "dev" ];
|
||||
|
||||
postInstall = ''
|
||||
moveToOutput bin/imlib2-config "$dev"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Image manipulation library";
|
||||
|
||||
@@ -56,7 +47,8 @@ stdenv.mkDerivation rec {
|
||||
'';
|
||||
|
||||
homepage = "https://docs.enlightenment.org/api/imlib2/html";
|
||||
license = licenses.mit;
|
||||
changelog = "https://git.enlightenment.org/legacy/imlib2.git/plain/ChangeLog?h=v${version}";
|
||||
license = licenses.imlib2;
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ spwhitt ];
|
||||
};
|
||||
|
||||
@@ -1,25 +1,45 @@
|
||||
{ lib, stdenv, fetchFromGitHub, giblib, xlibsWrapper, autoreconfHook
|
||||
, autoconf-archive, libXfixes, libXcursor, libXcomposite }:
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, autoreconfHook
|
||||
, autoconf-archive
|
||||
, pkg-config
|
||||
, imlib2
|
||||
, libbsd
|
||||
, libXcomposite
|
||||
, libXfixes
|
||||
, xlibsWrapper
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "scrot";
|
||||
version = "1.5";
|
||||
version = "1.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "resurrecting-open-source-projects";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-4vguodLnCj0sOBLM4oJXTfX1p8hIo3WTwIuViPtZxHQ=";
|
||||
hash = "sha256-oVmEPkEK1xDcIRUQjCp6CKf+aKnnVe3L7aRTdSsCmmY=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook autoconf-archive ];
|
||||
buildInputs = [ giblib xlibsWrapper libXfixes libXcursor libXcomposite ];
|
||||
nativeBuildInputs = [
|
||||
autoreconfHook
|
||||
autoconf-archive
|
||||
pkg-config
|
||||
];
|
||||
buildInputs = [
|
||||
imlib2
|
||||
libbsd
|
||||
libXcomposite
|
||||
libXfixes
|
||||
xlibsWrapper
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/resurrecting-open-source-projects/scrot";
|
||||
description = "A command-line screen capture utility";
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ globin ];
|
||||
license = licenses.mit;
|
||||
license = licenses.mitAdvertising;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -313,6 +313,7 @@ mapAliases ({
|
||||
gdk_pixbuf = gdk-pixbuf; # added 2019-05-22
|
||||
gettextWithExpat = gettext; # 2016-02-19
|
||||
getmail = throw "getmail has been removed from nixpkgs, migrate to getmail6."; # added 2022-01-12
|
||||
giblib = throw " giblib has been removed from nixpkgs because upstream is gone."; # added 2022-01-23
|
||||
giflib_4_1 = throw "giflib_4_1 has been removed; use giflib instead"; # 2020-02-12
|
||||
git-bz = throw "giz-bz has been removed from nixpkgs as it is stuck on python2."; # added 2022-01-01
|
||||
gitAndTools = self // { # added 2021-01-14
|
||||
|
||||
@@ -16593,8 +16593,6 @@ with pkgs;
|
||||
|
||||
ggz_base_libs = callPackage ../development/libraries/ggz_base_libs {};
|
||||
|
||||
giblib = callPackage ../development/libraries/giblib { };
|
||||
|
||||
gifticlib = callPackage ../development/libraries/science/biology/gifticlib { };
|
||||
|
||||
gio-sharp = callPackage ../development/libraries/gio-sharp { };
|
||||
|
||||
Reference in New Issue
Block a user