summaryrefslogtreecommitdiffstats
path: root/pkgs/development/libraries
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries')
-rw-r--r--pkgs/development/libraries/bashup-events/3.2.nix26
-rw-r--r--pkgs/development/libraries/bashup-events/4.4.nix20
-rw-r--r--pkgs/development/libraries/bashup-events/default.nix6
-rw-r--r--pkgs/development/libraries/bashup-events/generic.nix83
-rw-r--r--pkgs/development/libraries/fcft/default.nix17
-rw-r--r--pkgs/development/libraries/libinfinity/default.nix8
-rw-r--r--pkgs/development/libraries/poly2tri-c/default.nix2
7 files changed, 152 insertions, 10 deletions
diff --git a/pkgs/development/libraries/bashup-events/3.2.nix b/pkgs/development/libraries/bashup-events/3.2.nix
new file mode 100644
index 000000000000..f7e88c382511
--- /dev/null
+++ b/pkgs/development/libraries/bashup-events/3.2.nix
@@ -0,0 +1,26 @@
+{ callPackage, fetchFromGitHub }:
+
+callPackage ./generic.nix {
+ variant = "3.2";
+ version = "2019-07-27";
+ branch = "master";
+ src = fetchFromGitHub {
+ owner = "bashup";
+ repo = "events";
+ rev = "83744c21bf720afb8325343674c62ab46a8f3d94";
+ hash = "sha256-0VDjd+1T1JBmSDGovWOOecUZmNztlwG32UcstfdigbI=";
+ };
+ fake = {
+ # Note: __ev.encode is actually defined, but it happens in a
+ # quoted arg to eval, which resholve currently doesn't (and may
+ # never) parse into. See abathur/resholve/issues/2.
+ function = [ "__ev.encode" ];
+ };
+ keep = {
+ # allow vars in eval
+ eval = [ "e" "f" "q" "r" ];
+ # allow vars executed as commands
+ "$f" = true;
+ "$n" = true;
+ };
+}
diff --git a/pkgs/development/libraries/bashup-events/4.4.nix b/pkgs/development/libraries/bashup-events/4.4.nix
new file mode 100644
index 000000000000..f880009ea71a
--- /dev/null
+++ b/pkgs/development/libraries/bashup-events/4.4.nix
@@ -0,0 +1,20 @@
+{ callPackage, fetchFromGitHub }:
+
+callPackage ./generic.nix {
+ variant = "4.4";
+ version = "2020-04-04";
+ branch = "bash44";
+ src = fetchFromGitHub {
+ owner = "bashup";
+ repo = "events";
+ rev = "e97654f5602fc4e31083b27afa18dcc89b3e8296";
+ hash = "sha256-51OSIod3mEg3MKs4rrMgRcOimDGC+3UIr4Bl/cTRyGM=";
+ };
+ keep = {
+ # allow vars in eval
+ eval = [ "e" "bashup_ev" "n" ];
+ # allow vars executed as commands
+ "$f" = true;
+ "$n" = true;
+ };
+}
diff --git a/pkgs/development/libraries/bashup-events/default.nix b/pkgs/development/libraries/bashup-events/default.nix
new file mode 100644
index 000000000000..bcefdd0fcacf
--- /dev/null
+++ b/pkgs/development/libraries/bashup-events/default.nix
@@ -0,0 +1,6 @@
+{ callPackage }:
+
+{
+ bashup-events32 = callPackage ./3.2.nix { };
+ bashup-events44 = callPackage ./4.4.nix { };
+}
diff --git a/pkgs/development/libraries/bashup-events/generic.nix b/pkgs/development/libraries/bashup-events/generic.nix
new file mode 100644
index 000000000000..78ef4c2f3369
--- /dev/null
+++ b/pkgs/development/libraries/bashup-events/generic.nix
@@ -0,0 +1,83 @@
+{
+ # general
+ lib
+, callPackage
+, runCommand
+, resholvePackage
+, bash
+, shellcheck
+, doCheck ? true
+, doInstallCheck ? true
+ # variant-specific
+, variant
+, version
+, branch
+, src
+, fake ? false
+, keep
+}:
+let
+ # extracting this so that it's trivial to test in other shells
+ installCheck = shell:
+ ''
+ echo "testing bashup.events in ${shell}"
+ ${shell} <<'EOF'
+ source $out/bin/bashup.events
+ neat(){
+ echo $0: Hi from event \'test event\'. I can have both $1 and $2 arguments.
+ exit 0
+ }
+ event on "test event" @2 neat curried
+ echo event registered
+ event emit "test event" runtime
+ exit 1 # fail if emitting event didn't exit clean
+ EOF
+ '';
+
+in
+resholvePackage rec {
+ # bashup.events doesn't version yet but it has two variants with
+ # differing features/performance characteristics:
+ # - branch master: a variant for bash 3.2+
+ # - branch bash44: a variant for bash 4.4+
+ pname = "bashup-events${variant}-unstable";
+ # should be YYYY-MM-DD
+ inherit version;
+ inherit src;
+
+ installPhase = ''
+ install -Dt $out/bin bashup.events
+ '';
+
+ inherit doCheck;
+ checkInputs = [ shellcheck bash ];
+
+ # check based on https://github.com/bashup/events/blob/master/.dkrc
+ checkPhase = ''
+ SHELLCHECK_OPTS='-e SC2016,SC2145' ${shellcheck}/bin/shellcheck ./bashup.events
+ ${bash}/bin/bash -n ./bashup.events
+ ${bash}/bin/bash ./bashup.events
+ '';
+
+ solutions = {
+ events = {
+ inputs = [ ];
+ interpreter = "none";
+ scripts = [ "bin/bashup.events" ];
+ inherit keep;
+ } // lib.optionalAttrs (lib.isAttrs fake) { inherit fake; };
+ };
+
+ inherit doInstallCheck;
+ installCheckInputs = [ bash ];
+ installCheckPhase = installCheck "${bash}/bin/bash";
+
+ meta = with lib; {
+ inherit branch;
+ description = "An event listener/callback API for creating extensible bash programs";
+ homepage = "https://github.com/bashup/events";
+ license = licenses.cc0;
+ maintainers = with maintainers; [ abathur ];
+ platforms = platforms.all;
+ };
+}
diff --git a/pkgs/development/libraries/fcft/default.nix b/pkgs/development/libraries/fcft/default.nix
index 1ce09b63cbed..fd6f26c9789f 100644
--- a/pkgs/development/libraries/fcft/default.nix
+++ b/pkgs/development/libraries/fcft/default.nix
@@ -1,21 +1,28 @@
{ stdenv, lib, fetchgit, pkg-config, meson, ninja, scdoc
-,freetype, fontconfig, harfbuzz, pixman, tllist, check }:
+, freetype, fontconfig, pixman, tllist, check
+, withHarfBuzz ? true
+, harfbuzz
+}:
stdenv.mkDerivation rec {
pname = "fcft";
- version = "2.3.1";
+ version = "2.3.2";
src = fetchgit {
url = "https://codeberg.org/dnkl/fcft.git";
rev = version;
- sha256 = "sha256-FD3KfaQbSEA1XdmS6YxH+c5fSsra9Ro/KKslb7Brv7U=";
+ sha256 = "0k2i57rakm4g86f7hbhkby8af0vv7v63a70lk3m58mkycpy5q2rm";
};
nativeBuildInputs = [ pkg-config meson ninja scdoc ];
- buildInputs = [ freetype fontconfig pixman tllist harfbuzz ];
+ buildInputs = [ freetype fontconfig pixman tllist ]
+ ++ lib.optional withHarfBuzz harfbuzz;
checkInputs = [ check ];
- mesonFlags = [ "--buildtype=release" ];
+ mesonFlags = [
+ "--buildtype=release"
+ "-Dtext-shaping=${if withHarfBuzz then "enabled" else "disabled"}"
+ ];
doCheck = true;
diff --git a/pkgs/development/libraries/libinfinity/default.nix b/pkgs/development/libraries/libinfinity/default.nix
index e018c1a9f5ea..15d9b05ebd48 100644
--- a/pkgs/development/libraries/libinfinity/default.nix
+++ b/pkgs/development/libraries/libinfinity/default.nix
@@ -13,10 +13,10 @@ let
self = stdenv.mkDerivation rec {
pname = "libinfinity";
- version = "0.7.1";
+ version = "0.7.2";
src = fetchurl {
- url = "http://releases.0x539.de/libinfinity/${pname}-${version}.tar.gz";
- sha256 = "1jw2fhrcbpyz99bij07iyhy9ffyqdn87vl8cb1qz897y3f2f0vk2";
+ url = "https://github.com/gobby/${pname}/releases/download/${version}/${pname}-${version}.tar.gz";
+ sha256 = "17i3g61hxz9pzl3ryd1yr15142r25m06jfzjrpdy7ic1b8vjjw3f";
};
outputs = [ "bin" "out" "dev" "man" "devdoc" ];
@@ -43,7 +43,7 @@ let
};
meta = {
- homepage = "http://gobby.0x539.de/";
+ homepage = "https://gobby.github.io/";
description = "An implementation of the Infinote protocol written in GObject-based C";
license = stdenv.lib.licenses.lgpl2Plus;
maintainers = [ stdenv.lib.maintainers.phreedom ];
diff --git a/pkgs/development/libraries/poly2tri-c/default.nix b/pkgs/development/libraries/poly2tri-c/default.nix
index a3e42b3ae4b2..5799410fe1d6 100644
--- a/pkgs/development/libraries/poly2tri-c/default.nix
+++ b/pkgs/development/libraries/poly2tri-c/default.nix
@@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
outputs = [ "bin" "out" "dev" ];
src = fetchFromGitHub {
- owner = "Paul-Browne";
+ owner = "Mattey40";
repo = "poly2tri-c";
rev = "p2tc-${version}";
sha256 = "158vm3wqfxs22b74kqc4prlvjny38qqm3kz5wrgasmx0qciwh0g8";