commit
c65707bc25
@ -1,12 +1,12 @@
|
|||||||
{ lib, fetchFromGitHub }:
|
{ lib, fetchFromGitHub }:
|
||||||
rec {
|
rec {
|
||||||
version = "8.2.0013";
|
version = "8.2.0227";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "vim";
|
owner = "vim";
|
||||||
repo = "vim";
|
repo = "vim";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "00sc9zdjdww6f3svwf0nxpx8q2zp1n1r978h7ijapgvn2ysx2z1f";
|
sha256 = "1yi7l2yd214iv6i8pr52m272mlzps5v3h6xdgr1770xfz4y1yc0h";
|
||||||
};
|
};
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
@ -5,14 +5,14 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "git-remote-gcrypt";
|
pname = "git-remote-gcrypt";
|
||||||
version = "1.2";
|
version = "1.3";
|
||||||
rev = version;
|
rev = version;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
inherit rev;
|
inherit rev;
|
||||||
owner = "spwhitton";
|
owner = "spwhitton";
|
||||||
repo = "git-remote-gcrypt";
|
repo = "git-remote-gcrypt";
|
||||||
sha256 = "0isfg0vlmcphxzj4jm32dycprhym26ina1b28jgc4j57kiqqrdcy";
|
sha256 = "0n8fzvr6y0pxrbvkywlky2bd8jvi0ayp4n9hwi84l1ldmv4a40dh";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = [ "out" "man" ];
|
outputs = [ "out" "man" ];
|
||||||
|
@ -2,13 +2,13 @@
|
|||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "go-jsonnet";
|
pname = "go-jsonnet";
|
||||||
version = "0.14.0";
|
version = "0.15.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "google";
|
owner = "google";
|
||||||
repo = "go-jsonnet";
|
repo = "go-jsonnet";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1q0mpydh8h0zrml605q9r259y8584kbwcr9g4sqcb1n13b4d1sgp";
|
sha256 = "0l6cwky2xl7m8nnc9abp76bhkdcf2ldbbv3r8p30xv2yr5wd1j8i";
|
||||||
};
|
};
|
||||||
|
|
||||||
modSha256 = "1b6hz5a66hhlzpcv1badxr1b4nmk4lw0507d5jks7lqzvvwd0sxq";
|
modSha256 = "1b6hz5a66hhlzpcv1badxr1b4nmk4lw0507d5jks7lqzvvwd0sxq";
|
||||||
|
@ -30,11 +30,11 @@ in
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "go";
|
pname = "go";
|
||||||
version = "1.12.16";
|
version = "1.12.17";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://dl.google.com/go/go${version}.src.tar.gz";
|
url = "https://dl.google.com/go/go${version}.src.tar.gz";
|
||||||
sha256 = "1y0x10fsvgpc1x24b9q9y6kv9b0kwf7879am3p0gym2abgc5wvnf";
|
sha256 = "09cbl90maxry713wd18jdqrms3ivbvcm472csnxc78rsqhc851yy";
|
||||||
};
|
};
|
||||||
|
|
||||||
# perl is used for testing go vet
|
# perl is used for testing go vet
|
||||||
@ -242,7 +242,7 @@ stdenv.mkDerivation rec {
|
|||||||
homepage = http://golang.org/;
|
homepage = http://golang.org/;
|
||||||
description = "The Go Programming language";
|
description = "The Go Programming language";
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
maintainers = with maintainers; [ cstrahan orivej velovix mic92 rvolosatovs ];
|
maintainers = with maintainers; [ cstrahan orivej velovix mic92 rvolosatovs Frostman ];
|
||||||
platforms = platforms.linux ++ platforms.darwin;
|
platforms = platforms.linux ++ platforms.darwin;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -30,11 +30,11 @@ in
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "go";
|
pname = "go";
|
||||||
version = "1.13.7";
|
version = "1.13.8";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://dl.google.com/go/go${version}.src.tar.gz";
|
url = "https://dl.google.com/go/go${version}.src.tar.gz";
|
||||||
sha256 = "1x21kfpzfkvmqd42pan6nl862m7jjl4niqxxpcgm46awbz645bg4";
|
sha256 = "0d7cxffk72568h46srzswrxd0bsdip7amgkf499wzn6l6d3g0fxi";
|
||||||
};
|
};
|
||||||
|
|
||||||
# perl is used for testing go vet
|
# perl is used for testing go vet
|
||||||
@ -239,7 +239,7 @@ stdenv.mkDerivation rec {
|
|||||||
homepage = http://golang.org/;
|
homepage = http://golang.org/;
|
||||||
description = "The Go Programming language";
|
description = "The Go Programming language";
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
maintainers = with maintainers; [ cstrahan orivej velovix mic92 rvolosatovs kalbasit ];
|
maintainers = with maintainers; [ cstrahan orivej velovix mic92 rvolosatovs kalbasit Frostman ];
|
||||||
platforms = platforms.linux ++ platforms.darwin;
|
platforms = platforms.linux ++ platforms.darwin;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
, gd ? null, libpng ? null
|
, gd ? null, libpng ? null
|
||||||
, libidn2
|
, libidn2
|
||||||
, bison
|
, bison
|
||||||
, python3
|
, python3Minimal
|
||||||
}:
|
}:
|
||||||
|
|
||||||
{ name
|
{ name
|
||||||
@ -155,7 +155,7 @@ stdenv.mkDerivation ({
|
|||||||
outputs = [ "out" "bin" "dev" "static" ];
|
outputs = [ "out" "bin" "dev" "static" ];
|
||||||
|
|
||||||
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
||||||
nativeBuildInputs = [ bison python3 ];
|
nativeBuildInputs = [ bison python3Minimal ];
|
||||||
buildInputs = [ linuxHeaders ] ++ lib.optionals withGd [ gd libpng ];
|
buildInputs = [ linuxHeaders ] ++ lib.optionals withGd [ gd libpng ];
|
||||||
|
|
||||||
# Needed to install share/zoneinfo/zone.tab. Set to impure /bin/sh to
|
# Needed to install share/zoneinfo/zone.tab. Set to impure /bin/sh to
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{ stdenv, fetchFromGitHub }:
|
{ stdenv, fetchFromGitHub }:
|
||||||
|
|
||||||
let
|
let
|
||||||
version = "2.9.2";
|
version = "2.9.3";
|
||||||
in stdenv.mkDerivation {
|
in stdenv.mkDerivation {
|
||||||
pname = "http-parser";
|
pname = "http-parser";
|
||||||
inherit version;
|
inherit version;
|
||||||
@ -10,7 +10,7 @@ in stdenv.mkDerivation {
|
|||||||
owner = "nodejs";
|
owner = "nodejs";
|
||||||
repo = "http-parser";
|
repo = "http-parser";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1qs6x3n2nrcj1wiik5pg5i16inykf7rcfdfdy7rwyzf40pvdl3c2";
|
sha256 = "189zi61vczqgmqjd2myjcjbbi5icrk7ccs0kn6nj8hxqiv5j3811";
|
||||||
};
|
};
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = "-Wno-error";
|
NIX_CFLAGS_COMPILE = "-Wno-error";
|
||||||
|
@ -10,13 +10,13 @@ assert xarSupport -> libxml2 != null;
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "libarchive";
|
pname = "libarchive";
|
||||||
version = "3.4.1";
|
version = "3.4.2";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "libarchive";
|
owner = "libarchive";
|
||||||
repo = "libarchive";
|
repo = "libarchive";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0g0kzfl01zy1aabr5jcrh8480mb16vh3pacdhg6mm2bdv2f5w8z1";
|
sha256 = "0mjm77wbqs8sbn9j44lj39nwbg6anmgz6pkyfxsww54a4rs0p3iz";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = [ "out" "lib" "dev" ];
|
outputs = [ "out" "lib" "dev" ];
|
||||||
|
@ -2,13 +2,13 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "libgee";
|
pname = "libgee";
|
||||||
version = "0.20.2";
|
version = "0.20.3";
|
||||||
|
|
||||||
outputs = [ "out" "dev" ];
|
outputs = [ "out" "dev" ];
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||||
sha256 = "0g1mhl7nidg82v4cikkk8dakzc18hg7wv0dsf2pbyijzfm5mq0wy";
|
sha256 = "1pm525wm11dhwz24m8bpcln9547lmrigl6cxf3qsbg4cr3pyvdfh";
|
||||||
};
|
};
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
@ -27,11 +27,11 @@ in
|
|||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "libinput";
|
pname = "libinput";
|
||||||
version = "1.15.0";
|
version = "1.15.1";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://www.freedesktop.org/software/libinput/${pname}-${version}.tar.xz";
|
url = "https://www.freedesktop.org/software/libinput/${pname}-${version}.tar.xz";
|
||||||
sha256 = "1qa3b2fd4pv8ysf0mgwnyhqv9v48zgy3sy0q3a3vxcmwcvpizgxz";
|
sha256 = "05hcjlsrc38yn1g1n7kia9m93nc703hx66gf977kw5vgbi4mfbvb";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = [ "bin" "out" "dev" ];
|
outputs = [ "bin" "out" "dev" ];
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "libmicrohttpd";
|
pname = "libmicrohttpd";
|
||||||
version = "0.9.69";
|
version = "0.9.70";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnu/libmicrohttpd/${pname}-${version}.tar.gz";
|
url = "mirror://gnu/libmicrohttpd/${pname}-${version}.tar.gz";
|
||||||
sha256 = "0zp34zgcahym5kp2r83gfb5wnr8yf643a26k6zk96x3qica6p6zv";
|
sha256 = "01vkjy89b1ylmh22dy5yza2r414nfwcfixxh3v29nvzrjv9s7l4h";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = [ "out" "dev" "devdoc" "info" ];
|
outputs = [ "out" "dev" "devdoc" "info" ];
|
||||||
|
28
pkgs/development/libraries/libuninameslist/default.nix
Normal file
28
pkgs/development/libraries/libuninameslist/default.nix
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
{ stdenv
|
||||||
|
, fetchFromGitHub
|
||||||
|
, autoreconfHook
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "libuninameslist";
|
||||||
|
version = "20190701";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "fontforge";
|
||||||
|
repo = pname;
|
||||||
|
rev = version;
|
||||||
|
sha256 = "sha256:034c8clnskvqbwyiq7si4dad1kbngi3jmnrj064i39msqixmpdzb";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
autoreconfHook
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
homepage = https://github.com/fontforge/libuninameslist/;
|
||||||
|
description = "A Library of Unicode names and annotation data";
|
||||||
|
license = licenses.bsd3;
|
||||||
|
maintainers = with maintainers; [ erictapen ];
|
||||||
|
platforms = platforms.all;
|
||||||
|
};
|
||||||
|
}
|
@ -36,9 +36,7 @@ let
|
|||||||
|
|
||||||
outputs = [ "bin" "dev" "out" "man" ] ++ optional withDocs "doc";
|
outputs = [ "bin" "dev" "out" "man" ] ++ optional withDocs "doc";
|
||||||
setOutputFlags = false;
|
setOutputFlags = false;
|
||||||
separateDebugInfo = !(stdenv.hostPlatform.useLLVM or false)
|
separateDebugInfo = !(stdenv.hostPlatform.useLLVM or false) && stdenv.cc.isGNU;
|
||||||
&& stdenv.hostPlatform == stdenv.buildPlatform # unable to fix infinite recursion on stdenv.cc
|
|
||||||
&& stdenv.cc.isGNU;
|
|
||||||
|
|
||||||
nativeBuildInputs = [ perl ];
|
nativeBuildInputs = [ perl ];
|
||||||
buildInputs = stdenv.lib.optional withCryptodev cryptodev;
|
buildInputs = stdenv.lib.optional withCryptodev cryptodev;
|
||||||
|
@ -4,7 +4,7 @@ with lib;
|
|||||||
|
|
||||||
qtModule {
|
qtModule {
|
||||||
name = "qttools";
|
name = "qttools";
|
||||||
qtInputs = [ qtbase ];
|
qtInputs = [ qtbase qtdeclarative ];
|
||||||
outputs = [ "out" "dev" "bin" ];
|
outputs = [ "out" "dev" "bin" ];
|
||||||
|
|
||||||
# fixQtBuiltinPaths overwrites a builtin path we should keep
|
# fixQtBuiltinPaths overwrites a builtin path we should keep
|
||||||
|
@ -88,12 +88,12 @@ let
|
|||||||
in
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "openblas";
|
pname = "openblas";
|
||||||
version = "0.3.7";
|
version = "0.3.8";
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "xianyi";
|
owner = "xianyi";
|
||||||
repo = "OpenBLAS";
|
repo = "OpenBLAS";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0vs1dlzyla02wajpkfzz8x3lfpgmwiaaizq2nmdjbkzkb7jnxhhz";
|
sha256 = "0s017qqi4n6jzrxl9cyx625wj26smnyn5g8s699s7h8v1srlrw6p";
|
||||||
};
|
};
|
||||||
|
|
||||||
inherit blas64;
|
inherit blas64;
|
||||||
|
@ -1,43 +1,66 @@
|
|||||||
{ lib, stdenv, fetchurl, pkgconfig
|
{ lib, stdenv, fetchurl, meson, pkgconfig, ninja
|
||||||
, libffi, libxml2, wayland
|
, libffi, libxml2, wayland
|
||||||
, expat ? null # Build wayland-scanner (currently cannot be disabled as of 1.7.0)
|
, expat ? null # Build wayland-scanner (currently cannot be disabled as of 1.7.0)
|
||||||
|
, withDocumentation ? false, graphviz-nox, doxygen, libxslt, xmlto, python3
|
||||||
|
, docbook_xsl, docbook_xml_dtd_45, docbook_xml_dtd_42
|
||||||
}:
|
}:
|
||||||
|
|
||||||
# Require the optional to be enabled until upstream fixes or removes the configure flag
|
# Require the optional to be enabled until upstream fixes or removes the configure flag
|
||||||
assert expat != null;
|
assert expat != null;
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
let
|
||||||
|
isCross = stdenv.buildPlatform != stdenv.hostPlatform;
|
||||||
|
in stdenv.mkDerivation rec {
|
||||||
pname = "wayland";
|
pname = "wayland";
|
||||||
version = "1.17.0";
|
version = "1.18.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://wayland.freedesktop.org/releases/${pname}-${version}.tar.xz";
|
url = "https://wayland.freedesktop.org/releases/${pname}-${version}.tar.xz";
|
||||||
sha256 = "194ibzwpdcn6fvk4xngr4bf5axpciwg2bj82fdvz88kfmjw13akj";
|
sha256 = "0k995rn96xkplrapz5k648j651wc43kq817xk1x8280h16gsfxa6";
|
||||||
};
|
};
|
||||||
|
|
||||||
separateDebugInfo = true;
|
separateDebugInfo = true;
|
||||||
|
|
||||||
configureFlags = [
|
mesonFlags = [ "-Ddocumentation=${lib.boolToString withDocumentation}" ];
|
||||||
"--disable-documentation"
|
|
||||||
] ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
|
patches = lib.optional isCross ./fix-wayland-cross-compilation.patch;
|
||||||
"--with-host-scanner"
|
|
||||||
];
|
postPatch = lib.optionalString withDocumentation ''
|
||||||
|
patchShebangs doc/doxygen/gen-doxygen.py
|
||||||
|
'' + lib.optionalString isCross ''
|
||||||
|
substituteInPlace egl/meson.build --replace \
|
||||||
|
"find_program('nm').path()" \
|
||||||
|
"find_program('${stdenv.cc.targetPrefix}nm').path()"
|
||||||
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
pkgconfig
|
meson pkgconfig ninja
|
||||||
] ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
|
] ++ lib.optionals isCross [
|
||||||
# for wayland-scanner during build
|
wayland # For wayland-scanner during the build
|
||||||
wayland
|
] ++ lib.optionals withDocumentation [
|
||||||
|
(graphviz-nox.override { pango = null; }) # To avoid an infinite recursion
|
||||||
|
doxygen libxslt xmlto python3 docbook_xml_dtd_45
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [ libffi /* docbook_xsl doxygen graphviz libxslt xmlto */ expat libxml2 ];
|
buildInputs = [ libffi expat libxml2
|
||||||
|
] ++ lib.optionals withDocumentation [
|
||||||
|
docbook_xsl docbook_xml_dtd_45 docbook_xml_dtd_42
|
||||||
|
];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Reference implementation of the wayland protocol";
|
description = "Core Wayland window system code and protocol";
|
||||||
|
longDescription = ''
|
||||||
|
Wayland is a project to define a protocol for a compositor to talk to its
|
||||||
|
clients as well as a library implementation of the protocol.
|
||||||
|
The wayland protocol is essentially only about input handling and buffer
|
||||||
|
management, but also handles drag and drop, selections, window management
|
||||||
|
and other interactions that must go through the compositor (but not
|
||||||
|
rendering).
|
||||||
|
'';
|
||||||
homepage = https://wayland.freedesktop.org/;
|
homepage = https://wayland.freedesktop.org/;
|
||||||
license = lib.licenses.mit;
|
license = lib.licenses.mit; # Expat version
|
||||||
platforms = lib.platforms.linux;
|
platforms = lib.platforms.linux;
|
||||||
maintainers = with lib.maintainers; [ codyopel ];
|
maintainers = with lib.maintainers; [ primeos codyopel ];
|
||||||
};
|
};
|
||||||
|
|
||||||
passthru.version = version;
|
passthru.version = version;
|
||||||
|
@ -0,0 +1,14 @@
|
|||||||
|
diff --git a/src/meson.build b/src/meson.build
|
||||||
|
index 3e8c9bf..75241cb 100644
|
||||||
|
--- a/src/meson.build
|
||||||
|
+++ b/src/meson.build
|
||||||
|
@@ -55,8 +55,7 @@ pkgconfig.generate(
|
||||||
|
)
|
||||||
|
|
||||||
|
if meson.is_cross_build()
|
||||||
|
- scanner_dep = dependency('wayland-scanner', native: true, version: '>=1.14.0')
|
||||||
|
- wayland_scanner_for_build = find_program(scanner_dep.get_pkgconfig_variable('wayland_scanner'))
|
||||||
|
+ wayland_scanner_for_build = find_program('wayland-scanner', native: true, version: '>=1.14.0')
|
||||||
|
else
|
||||||
|
wayland_scanner_for_build = wayland_scanner
|
||||||
|
endif
|
@ -17,10 +17,17 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Wayland protocol extensions";
|
description = "Wayland protocol extensions";
|
||||||
homepage = https://wayland.freedesktop.org/;
|
longDescription = ''
|
||||||
license = lib.licenses.mit;
|
wayland-protocols contains Wayland protocols that add functionality not
|
||||||
|
available in the Wayland core protocol. Such protocols either add
|
||||||
|
completely new functionality, or extend the functionality of some other
|
||||||
|
protocol either in Wayland core, or some other protocol in
|
||||||
|
wayland-protocols.
|
||||||
|
'';
|
||||||
|
homepage = https://gitlab.freedesktop.org/wayland/wayland-protocols;
|
||||||
|
license = lib.licenses.mit; # Expat version
|
||||||
platforms = lib.platforms.linux;
|
platforms = lib.platforms.linux;
|
||||||
maintainers = with lib.maintainers; [ ];
|
maintainers = with lib.maintainers; [ primeos ];
|
||||||
};
|
};
|
||||||
|
|
||||||
passthru.version = version;
|
passthru.version = version;
|
||||||
|
@ -19,12 +19,12 @@ stdenv.mkDerivation rec {
|
|||||||
+ lib.optionalString useNcurses "-cursesUI"
|
+ lib.optionalString useNcurses "-cursesUI"
|
||||||
+ lib.optionalString withQt5 "-qt5UI"
|
+ lib.optionalString withQt5 "-qt5UI"
|
||||||
+ lib.optionalString useQt4 "-qt4UI";
|
+ lib.optionalString useQt4 "-qt4UI";
|
||||||
version = "3.16.3";
|
version = "3.16.4";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "${meta.homepage}files/v${lib.versions.majorMinor version}/cmake-${version}.tar.gz";
|
url = "${meta.homepage}files/v${lib.versions.majorMinor version}/cmake-${version}.tar.gz";
|
||||||
# compare with https://cmake.org/files/v${lib.versions.majorMinor version}/cmake-${version}-SHA-256.txt
|
# compare with https://cmake.org/files/v${lib.versions.majorMinor version}/cmake-${version}-SHA-256.txt
|
||||||
sha256 = "0s06wrp0jnw2l4yq94skj53hwnz7lqrmhh96sq7w7njkkggickz5";
|
sha256 = "0b5c77lqzfk5l7mnnih5c78i36d3skbkw20jjnph79lx9l8qrk4v";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
{ stdenvNoCC, lib, buildPackages
|
{ stdenvNoCC, lib, buildPackages, fetchurl, perl, elf-header }:
|
||||||
, fetchurl, perl
|
|
||||||
, elf-header
|
|
||||||
}:
|
|
||||||
|
|
||||||
let
|
let
|
||||||
makeLinuxHeaders = { src, version, patches ? [] }: stdenvNoCC.mkDerivation {
|
makeLinuxHeaders = { src, version, patches ? [] }: stdenvNoCC.mkDerivation {
|
||||||
@ -39,29 +36,28 @@ let
|
|||||||
# Skip clean on darwin, case-sensitivity issues.
|
# Skip clean on darwin, case-sensitivity issues.
|
||||||
buildPhase = lib.optionalString (!stdenvNoCC.buildPlatform.isDarwin) ''
|
buildPhase = lib.optionalString (!stdenvNoCC.buildPlatform.isDarwin) ''
|
||||||
make mrproper $makeFlags
|
make mrproper $makeFlags
|
||||||
''
|
'' + ''
|
||||||
# For some reason, doing `make install_headers` twice, first without
|
make headers $makeFlags
|
||||||
# INSTALL_HDR_PATH=$out then with, is neccessary to get this to work
|
|
||||||
# for darwin cross. @Ericson2314 has no idea why.
|
|
||||||
+ ''
|
|
||||||
make headers_install $makeFlags
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
make headers_check $makeFlags
|
make headers_check $makeFlags
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
# The following command requires rsync:
|
||||||
|
# make headers_install INSTALL_HDR_PATH=$out $makeFlags
|
||||||
|
# but rsync depends on popt which does not compile on aarch64 without
|
||||||
|
# updateAutotoolsGnuConfigScriptsHook which is not enabled in stage2,
|
||||||
|
# so we replicate it with cp. This also reduces bootstrap closure size.
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
make headers_install INSTALL_HDR_PATH=$out $makeFlags
|
mkdir -p $out
|
||||||
|
cp -r usr/include $out
|
||||||
|
find $out -type f ! -name '*.h' -delete
|
||||||
''
|
''
|
||||||
# Some builds (e.g. KVM) want a kernel.release.
|
# Some builds (e.g. KVM) want a kernel.release.
|
||||||
+ '' mkdir -p $out/include/config
|
|
||||||
echo "${version}-default" > $out/include/config/kernel.release
|
|
||||||
''
|
|
||||||
# These oddly named file records the `SHELL` passed, which causes bootstrap
|
|
||||||
# tools run-time dependency.
|
|
||||||
+ ''
|
+ ''
|
||||||
find "$out" -name '..install.cmd' -print0 | xargs -0 rm
|
mkdir -p $out/include/config
|
||||||
|
echo "${version}-default" > $out/include/config/kernel.release
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
@ -73,16 +69,15 @@ let
|
|||||||
in {
|
in {
|
||||||
inherit makeLinuxHeaders;
|
inherit makeLinuxHeaders;
|
||||||
|
|
||||||
linuxHeaders = let version = "4.19.16"; in
|
linuxHeaders = let version = "5.5"; in
|
||||||
makeLinuxHeaders {
|
makeLinuxHeaders {
|
||||||
inherit version;
|
inherit version;
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://kernel/linux/kernel/v4.x/linux-${version}.tar.xz";
|
url = "mirror://kernel/linux/kernel/v5.x/linux-${version}.tar.xz";
|
||||||
sha256 = "1pqvn6dsh0xhdpawz4ag27vkw1abvb6sn3869i4fbrz33ww8i86q";
|
sha256 = "0c131fi6s7vgvka1c0597vnvcmwn1pp968rci5kq64iwj3pd9yx6";
|
||||||
};
|
};
|
||||||
patches = [
|
patches = [
|
||||||
./no-relocs.patch # for building x86 kernel headers on non-ELF platforms
|
./no-relocs.patch # for building x86 kernel headers on non-ELF platforms
|
||||||
./no-dynamic-cc-version-check.patch # so we can use `stdenvNoCC`, see `makeFlags` above
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,32 +0,0 @@
|
|||||||
diff --git a/Makefile b/Makefile
|
|
||||||
index 863f58503bee..b778d5023208 100644
|
|
||||||
--- a/Makefile
|
|
||||||
+++ b/Makefile
|
|
||||||
@@ -501,11 +501,9 @@ KBUILD_CFLAGS += $(call cc-option,-fno-PIE)
|
|
||||||
KBUILD_AFLAGS += $(call cc-option,-fno-PIE)
|
|
||||||
|
|
||||||
# check for 'asm goto'
|
|
||||||
-ifeq ($(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-goto.sh $(CC) $(KBUILD_CFLAGS)), y)
|
|
||||||
CC_HAVE_ASM_GOTO := 1
|
|
||||||
KBUILD_CFLAGS += -DCC_HAVE_ASM_GOTO
|
|
||||||
KBUILD_AFLAGS += -DCC_HAVE_ASM_GOTO
|
|
||||||
-endif
|
|
||||||
|
|
||||||
# The expansion should be delayed until arch/$(SRCARCH)/Makefile is included.
|
|
||||||
# Some architectures define CROSS_COMPILE in arch/$(SRCARCH)/Makefile.
|
|
||||||
diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include
|
|
||||||
index 065324a8046f..d09c67194549 100644
|
|
||||||
--- a/scripts/Kbuild.include
|
|
||||||
+++ b/scripts/Kbuild.include
|
|
||||||
@@ -216,11 +216,8 @@ cc-disable-warning = $(call try-run-cached,\
|
|
||||||
cc-name = $(call shell-cached,$(CC) -v 2>&1 | grep -q "clang version" && echo clang || echo gcc)
|
|
||||||
|
|
||||||
# cc-version
|
|
||||||
-cc-version = $(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-version.sh $(CC))
|
|
||||||
|
|
||||||
# cc-fullversion
|
|
||||||
-cc-fullversion = $(shell $(CONFIG_SHELL) \
|
|
||||||
- $(srctree)/scripts/gcc-version.sh -p $(CC))
|
|
||||||
|
|
||||||
# cc-ifversion
|
|
||||||
# Usage: EXTRA_CFLAGS += $(call cc-ifversion, -lt, 0402, -O1)
|
|
@ -1,13 +1,7 @@
|
|||||||
diff --git a/arch/x86/Makefile b/arch/x86/Makefile
|
|
||||||
index fad55160dcb9..a48c8331cbb2 100644
|
|
||||||
--- a/arch/x86/Makefile
|
--- a/arch/x86/Makefile
|
||||||
+++ b/arch/x86/Makefile
|
+++ b/arch/x86/Makefile
|
||||||
@@ -239,7 +239,7 @@ ifdef CONFIG_RETPOLINE
|
@@ -231,3 +231,3 @@ endif
|
||||||
endif
|
|
||||||
|
|
||||||
archscripts: scripts_basic
|
archscripts: scripts_basic
|
||||||
- $(Q)$(MAKE) $(build)=arch/x86/tools relocs
|
- $(Q)$(MAKE) $(build)=arch/x86/tools relocs
|
||||||
+ $(Q)$(MAKE) $(build)=arch/x86/tools
|
+ $(Q)$(MAKE) $(build)=arch/x86/tools
|
||||||
|
|
||||||
###
|
|
||||||
# Syscall table generation
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{ stdenv, fetchurl, lib
|
{ stdenv, fetchurl, lib
|
||||||
, autoconf, automake, gnum4, libtool, perl, gnulib, uthash, pkgconfig, gettext
|
, autoconf, automake, gnum4, libtool, perl, uthash, pkgconfig, gettext
|
||||||
, python, freetype, zlib, glib, libungif, libpng, libjpeg, libtiff, libxml2, cairo, pango
|
, python, freetype, zlib, glib, libungif, libpng, libjpeg, libtiff, libxml2, cairo, pango
|
||||||
, readline, woff2, zeromq
|
, readline, woff2, zeromq, libuninameslist
|
||||||
, withSpiro ? false, libspiro
|
, withSpiro ? false, libspiro
|
||||||
, withGTK ? false, gtk2
|
, withGTK ? false, gtk2
|
||||||
, withPython ? true
|
, withPython ? true
|
||||||
@ -11,15 +11,13 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "fontforge";
|
pname = "fontforge";
|
||||||
version = "20190413";
|
version = "20190801";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/${pname}/${pname}/releases/download/${version}/${pname}-${version}.tar.gz";
|
url = "https://github.com/${pname}/${pname}/releases/download/${version}/${pname}-${version}.tar.gz";
|
||||||
sha256 = "05v640mnk4fy4jzmxb6c4n4qm800x7hy4sl5gcdgzmm3md2s0qk7";
|
sha256 = "0lh8yx01asbzxm6car5cfi64njh5p4lxc7iv8dldr5rwg357a86r";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [ ./fontforge-20140813-use-system-uthash.patch ];
|
|
||||||
|
|
||||||
# use $SOURCE_DATE_EPOCH instead of non-deterministic timestamps
|
# use $SOURCE_DATE_EPOCH instead of non-deterministic timestamps
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
find . -type f -name '*.c' -exec sed -r -i 's#\btime\(&(.+)\)#if (getenv("SOURCE_DATE_EPOCH")) \1=atol(getenv("SOURCE_DATE_EPOCH")); else &#g' {} \;
|
find . -type f -name '*.c' -exec sed -r -i 's#\btime\(&(.+)\)#if (getenv("SOURCE_DATE_EPOCH")) \1=atol(getenv("SOURCE_DATE_EPOCH")); else &#g' {} \;
|
||||||
@ -34,7 +32,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig autoconf automake gnum4 libtool perl gettext ];
|
nativeBuildInputs = [ pkgconfig autoconf automake gnum4 libtool perl gettext ];
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
readline uthash woff2 zeromq
|
readline uthash woff2 zeromq libuninameslist
|
||||||
python freetype zlib glib libungif libpng libjpeg libtiff libxml2
|
python freetype zlib glib libungif libpng libjpeg libtiff libxml2
|
||||||
]
|
]
|
||||||
++ lib.optionals withSpiro [libspiro]
|
++ lib.optionals withSpiro [libspiro]
|
||||||
@ -53,9 +51,7 @@ stdenv.mkDerivation rec {
|
|||||||
export SOURCE_DATE_EPOCH=$(date -d ${version} +%s)
|
export SOURCE_DATE_EPOCH=$(date -d ${version} +%s)
|
||||||
|
|
||||||
export GIT="$(type -P true)"
|
export GIT="$(type -P true)"
|
||||||
cp -r "${gnulib}" ./gnulib
|
./bootstrap --skip-git --force
|
||||||
chmod +w -R ./gnulib
|
|
||||||
./bootstrap --skip-git --gnulib-srcdir=./gnulib --force
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
doCheck = false; # tries to wget some fonts
|
doCheck = false; # tries to wget some fonts
|
||||||
@ -74,5 +70,6 @@ stdenv.mkDerivation rec {
|
|||||||
homepage = http://fontforge.github.io;
|
homepage = http://fontforge.github.io;
|
||||||
platforms = stdenv.lib.platforms.all;
|
platforms = stdenv.lib.platforms.all;
|
||||||
license = stdenv.lib.licenses.bsd3;
|
license = stdenv.lib.licenses.bsd3;
|
||||||
|
maintainers = [ stdenv.lib.maintainers.erictapen ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,31 +0,0 @@
|
|||||||
--- a/Makefile.am.old 2014-08-12 10:07:32.000000000 +0530
|
|
||||||
+++ b/Makefile.am 2014-09-08 16:23:56.046996941 +0530
|
|
||||||
@@ -43,7 +43,6 @@
|
|
||||||
AM_CPPFLAGS =
|
|
||||||
AM_LDFLAGS =
|
|
||||||
|
|
||||||
-BUILT_SOURCES = uthash/src
|
|
||||||
EXTRA_DIST =
|
|
||||||
CLEANFILES =
|
|
||||||
MOSTLYCLEANFILES =
|
|
||||||
@@ -113,8 +112,7 @@
|
|
||||||
Packaging/FontForge-doc.spec \
|
|
||||||
Packaging/FontForge.spec \
|
|
||||||
Packaging/FontForge.static.spec \
|
|
||||||
README \
|
|
||||||
- uthash/src \
|
|
||||||
$(NULL)
|
|
||||||
|
|
||||||
#--------------------------------------------------------------------------
|
|
||||||
@@ -129,11 +127,6 @@
|
|
||||||
|
|
||||||
|
|
||||||
#--------------------------------------------------------------------------
|
|
||||||
-uthash/src:
|
|
||||||
- if [ ! -e uthash/src ]; then \
|
|
||||||
- if [ -e uthash ] ; then rm -r uthash ; fi ; \
|
|
||||||
- git clone https://github.com/troydhanson/uthash ; \
|
|
||||||
- fi ;
|
|
||||||
|
|
||||||
# We import a selection of targets from Frank's standard packaging Makefile.
|
|
||||||
|
|
@ -13109,6 +13109,8 @@ in
|
|||||||
|
|
||||||
libunibreak = callPackage ../development/libraries/libunibreak { };
|
libunibreak = callPackage ../development/libraries/libunibreak { };
|
||||||
|
|
||||||
|
libuninameslist = callPackage ../development/libraries/libuninameslist { };
|
||||||
|
|
||||||
libunique = callPackage ../development/libraries/libunique { };
|
libunique = callPackage ../development/libraries/libunique { };
|
||||||
libunique3 = callPackage ../development/libraries/libunique/3.x.nix { };
|
libunique3 = callPackage ../development/libraries/libunique/3.x.nix { };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user