forked from mirrors/nixpkgs
Merge master into staging-next
This commit is contained in:
commit
adcbf069c5
|
@ -4,7 +4,10 @@ with lib;
|
|||
|
||||
let
|
||||
|
||||
pkg = pkgs.sane-backends;
|
||||
pkg = pkgs.sane-backends.override {
|
||||
scanSnapDriversUnfree = config.hardware.sane.drivers.scanSnap.enable;
|
||||
scanSnapDriversPackage = config.hardware.sane.drivers.scanSnap.package;
|
||||
};
|
||||
|
||||
sanedConf = pkgs.writeTextFile {
|
||||
name = "saned.conf";
|
||||
|
@ -98,6 +101,28 @@ in
|
|||
'';
|
||||
};
|
||||
|
||||
hardware.sane.drivers.scanSnap.enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
example = true;
|
||||
description = ''
|
||||
Whether to enable drivers for the Fujitsu ScanSnap scanners.
|
||||
|
||||
The driver files are unfree and extracted from the Windows driver image.
|
||||
'';
|
||||
};
|
||||
|
||||
hardware.sane.drivers.scanSnap.package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.sane-drivers.epjitsu;
|
||||
description = ''
|
||||
Epjitsu driver package to use. Useful if you want to extract the driver files yourself.
|
||||
|
||||
The process is described in the <literal>/etc/sane.d/epjitsu.conf</literal> file in
|
||||
the <literal>sane-backends</literal> package.
|
||||
'';
|
||||
};
|
||||
|
||||
services.saned.enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
|
|
|
@ -18,6 +18,13 @@ in {
|
|||
The size of the VirtualBox base image in MiB.
|
||||
'';
|
||||
};
|
||||
baseImageFreeSpace = mkOption {
|
||||
type = with types; int;
|
||||
default = 30 * 1024;
|
||||
description = ''
|
||||
Free space in the VirtualBox base image in MiB.
|
||||
'';
|
||||
};
|
||||
memorySize = mkOption {
|
||||
type = types.int;
|
||||
default = 1536;
|
||||
|
@ -129,6 +136,7 @@ in {
|
|||
inherit pkgs lib config;
|
||||
partitionTableType = "legacy";
|
||||
diskSize = cfg.baseImageSize;
|
||||
additionalSpace = cfg.baseImageFreeSpace;
|
||||
|
||||
postVM =
|
||||
''
|
||||
|
|
|
@ -2,12 +2,16 @@
|
|||
, gettext, pkg-config, python3
|
||||
, avahi, libgphoto2, libieee1284, libjpeg, libpng, libtiff, libusb1, libv4l, net-snmp
|
||||
, curl, systemd, libxml2, poppler
|
||||
, sane-drivers
|
||||
|
||||
# List of { src name backend } attibute sets - see installFirmware below:
|
||||
, extraFirmware ? []
|
||||
|
||||
# For backwards compatibility with older setups; use extraFirmware instead:
|
||||
, gt68xxFirmware ? null, snapscanFirmware ? null
|
||||
|
||||
# Not included by default, scan snap drivers require fetching of unfree binaries.
|
||||
, scanSnapDriversUnfree ? false, scanSnapDriversPackage ? sane-drivers.epjitsu
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
|
@ -88,7 +92,14 @@ stdenv.mkDerivation {
|
|||
|
||||
# net.conf conflicts with the file generated by the nixos module
|
||||
rm $out/etc/sane.d/net.conf
|
||||
'' + lib.concatStrings (builtins.map installFirmware compatFirmware);
|
||||
|
||||
''
|
||||
+ lib.optionalString scanSnapDriversUnfree ''
|
||||
# the ScanSnap drivers live under the epjitsu subdirectory, which was already created by the build but is empty.
|
||||
rmdir $out/share/sane/epjitsu
|
||||
ln -svT ${scanSnapDriversPackage} $out/share/sane/epjitsu
|
||||
''
|
||||
+ lib.concatStrings (builtins.map installFirmware compatFirmware);
|
||||
|
||||
meta = with lib; {
|
||||
description = "SANE (Scanner Access Now Easy) backends";
|
||||
|
|
13
pkgs/applications/graphics/sane/drivers.nix
Normal file
13
pkgs/applications/graphics/sane/drivers.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{ lib, fetchFromGitHub }:
|
||||
|
||||
{
|
||||
# Fujitsu ScanSnap
|
||||
epjitsu = fetchFromGitHub {
|
||||
name = "scansnap-firmware";
|
||||
owner = "stevleibelt";
|
||||
repo = "scansnap-firmware";
|
||||
rev = "96c3a8b2a4e4f1ccc4e5827c5eb5598084fd17c8";
|
||||
sha256 = "1inchnvaqyw9d0skpg8hp5rpn27c09q58lsr42by4bahpbx5qday";
|
||||
meta.license = lib.licenses.unfree;
|
||||
};
|
||||
}
|
|
@ -259,25 +259,12 @@ let
|
|||
'';
|
||||
|
||||
gnFlags = mkGnFlags ({
|
||||
# Main build and toolchain settings:
|
||||
is_official_build = true;
|
||||
custom_toolchain = "//build/toolchain/linux/unbundle:default";
|
||||
host_toolchain = "//build/toolchain/linux/unbundle:default";
|
||||
system_wayland_scanner_path = "${wayland}/bin/wayland-scanner";
|
||||
|
||||
use_sysroot = false;
|
||||
use_gnome_keyring = gnomeKeyringSupport;
|
||||
use_gio = gnomeSupport;
|
||||
# ninja: error: '../../native_client/toolchain/linux_x86/pnacl_newlib/bin/x86_64-nacl-objcopy',
|
||||
# needed by 'nacl_irt_x86_64.nexe', missing and no known rule to make it
|
||||
enable_nacl = false;
|
||||
# Enabling the Widevine component here doesn't affect whether we can
|
||||
# redistribute the chromium package; the Widevine component is either
|
||||
# added later in the wrapped -wv build or downloaded from Google.
|
||||
enable_widevine = true;
|
||||
use_cups = cupsSupport;
|
||||
# Provides the enable-webrtc-pipewire-capturer flag to support Wayland screen capture.
|
||||
rtc_use_pipewire = true;
|
||||
|
||||
system_wayland_scanner_path = "${wayland}/bin/wayland-scanner";
|
||||
treat_warnings_as_errors = false;
|
||||
clang_use_chrome_plugins = false;
|
||||
blink_symbol_level = 0;
|
||||
|
@ -288,6 +275,31 @@ let
|
|||
# Note: The API key is for NixOS/nixpkgs use ONLY.
|
||||
# For your own distribution, please get your own set of keys.
|
||||
google_api_key = "AIzaSyDGi15Zwl11UNe6Y-5XW_upsfyw31qwZPI";
|
||||
|
||||
# Optional features:
|
||||
use_cups = cupsSupport;
|
||||
use_gio = gnomeSupport;
|
||||
use_gnome_keyring = gnomeKeyringSupport;
|
||||
|
||||
# Feature overrides:
|
||||
# Native Client support was deprecated in 2020 and support will end in June 2021:
|
||||
enable_nacl = false;
|
||||
# Enabling the Widevine component here doesn't affect whether we can
|
||||
# redistribute the chromium package; the Widevine component is either
|
||||
# added later in the wrapped -wv build or downloaded from Google:
|
||||
enable_widevine = true;
|
||||
# Provides the enable-webrtc-pipewire-capturer flag to support Wayland screen capture:
|
||||
rtc_use_pipewire = true;
|
||||
|
||||
# TODOs:
|
||||
# Disable PGO (defaults to 2 since M89) because it fails without additional changes:
|
||||
# error: Could not read profile ../../chrome/build/pgo_profiles/chrome-linux-master-1610647094-405a32bcf15e5a84949640f99f84a5b9f61e2f2e.profdata: Unsupported instrumentation profile format version
|
||||
chrome_pgo_phase = 0; # TODO
|
||||
# Disable build with TFLite library because it fails without additional changes:
|
||||
# ninja: error: '../../chrome/test/data/simple_test.tflite', needed by 'test_data/simple_test.tflite', missing and no known rule to make it
|
||||
# Note: chrome/test/data/simple_test.tflite is in the Git repository but not in chromium-90.0.4400.8.tar.xz
|
||||
# See also chrome/services/machine_learning/README.md
|
||||
build_with_tflite_lib = false; # TODO
|
||||
} // optionalAttrs proprietaryCodecs {
|
||||
# enable support for the H.264 codec
|
||||
proprietary_codecs = true;
|
||||
|
@ -296,14 +308,6 @@ let
|
|||
} // optionalAttrs pulseSupport {
|
||||
use_pulseaudio = true;
|
||||
link_pulseaudio = true;
|
||||
# Disable PGO (defaults to 2 since M89) because it fails without additional changes:
|
||||
# error: Could not read profile ../../chrome/build/pgo_profiles/chrome-linux-master-1610647094-405a32bcf15e5a84949640f99f84a5b9f61e2f2e.profdata: Unsupported instrumentation profile format version
|
||||
chrome_pgo_phase = 0;
|
||||
# Disable build with TFLite library because it fails without additional changes:
|
||||
# ninja: error: '../../chrome/test/data/simple_test.tflite', needed by 'test_data/simple_test.tflite', missing and no known rule to make it
|
||||
# Note: chrome/test/data/simple_test.tflite is in the Git repository but not in chromium-90.0.4400.8.tar.xz
|
||||
# See also chrome/services/machine_learning/README.md
|
||||
build_with_tflite_lib = false;
|
||||
} // optionalAttrs ungoogled {
|
||||
chrome_pgo_phase = 0;
|
||||
enable_hangout_services_extension = false;
|
||||
|
|
|
@ -82,7 +82,8 @@ stdenv.mkDerivation {
|
|||
wrapProgram $out/opt/viber/Viber \
|
||||
--set QT_PLUGIN_PATH "$out/opt/viber/plugins" \
|
||||
--set QT_XKB_CONFIG_ROOT "${xorg.xkeyboardconfig}/share/X11/xkb" \
|
||||
--set QTCOMPOSE "${xorg.libX11.out}/share/X11/locale"
|
||||
--set QTCOMPOSE "${xorg.libX11.out}/share/X11/locale" \
|
||||
--set QML2_IMPORT_PATH "$out/opt/viber/qml"
|
||||
ln -s $out/opt/viber/Viber $out/bin/viber
|
||||
|
||||
mv $out/usr/share $out/share
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{ lib, stdenv
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, pkg-config
|
||||
, cmake
|
||||
|
@ -19,25 +20,27 @@
|
|||
, vulkan-tools
|
||||
, wrapQtAppsHook
|
||||
}:
|
||||
|
||||
let
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "qmplay2";
|
||||
version = "20.12.16";
|
||||
in stdenv.mkDerivation {
|
||||
inherit pname version;
|
||||
version = "21.06.07";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "zaps166";
|
||||
repo = "QMPlay2";
|
||||
rev = version;
|
||||
sha256 = "sha256-+XXlQI9MyENioYmzqbbZYQ6kaMATBjPrPaErR2Vqhus=";
|
||||
sha256 = "sha256-NV9uglYnqebXhMx8uL0DhGe9l5TBVjlSIaB4IWC8YAc=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake pkg-config wrapQtAppsHook ];
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
pkg-config
|
||||
wrapQtAppsHook
|
||||
];
|
||||
buildInputs = [
|
||||
alsa-lib
|
||||
ffmpeg
|
||||
libXv
|
||||
libass
|
||||
libcddb
|
||||
libcdio
|
||||
|
@ -45,7 +48,6 @@ in stdenv.mkDerivation {
|
|||
libpulseaudio
|
||||
libsidplayfp
|
||||
libva
|
||||
libXv
|
||||
qtbase
|
||||
qttools
|
||||
taglib
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
, xkeyboard_config
|
||||
, udisks2
|
||||
|
||||
, waylandSupport ? false, wayland-protocols, xwayland
|
||||
, bluetoothSupport ? true, bluez5
|
||||
, pulseSupport ? !stdenv.isDarwin, libpulseaudio
|
||||
}:
|
||||
|
@ -45,6 +46,7 @@ stdenv.mkDerivation rec {
|
|||
]
|
||||
++ lib.optional bluetoothSupport bluez5 # for bluetooth configuration and control
|
||||
++ lib.optional pulseSupport libpulseaudio # for proper audio device control and redirection
|
||||
++ lib.optionals waylandSupport [ wayland-protocols xwayland ]
|
||||
;
|
||||
|
||||
patches = [
|
||||
|
@ -62,7 +64,7 @@ stdenv.mkDerivation rec {
|
|||
|
||||
mesonFlags = [
|
||||
"-D systemdunitdir=lib/systemd/user"
|
||||
];
|
||||
] ++ lib.optional waylandSupport "-Dwl=true";
|
||||
|
||||
passthru.providedSessions = [ "enlightenment" ];
|
||||
|
||||
|
|
|
@ -47,20 +47,24 @@ stdenv.mkDerivation {
|
|||
(if threadSupport then "--enable-threads" else "--disable-threads")
|
||||
"--with-gmp-prefix=${gmp.dev}"
|
||||
"--with-libffi-prefix=${libffi.dev}"
|
||||
]
|
||||
++
|
||||
(lib.optional (! noUnicode)
|
||||
"--enable-unicode")
|
||||
;
|
||||
]
|
||||
++
|
||||
(lib.optional useBoehmgc
|
||||
"--with-libgc-prefix=${boehmgc.dev}")
|
||||
++
|
||||
(lib.optional (! noUnicode)
|
||||
"--enable-unicode")
|
||||
;
|
||||
|
||||
hardeningDisable = [ "format" ];
|
||||
|
||||
postInstall = ''
|
||||
postInstall = let
|
||||
ldArgs = lib.strings.concatMapStringsSep " "
|
||||
(l: ''--prefix NIX_LDFLAGS ' ' "-L${l.lib or l.out or l}/lib"'')
|
||||
([ gmp libffi ] ++ lib.optional useBoehmgc boehmgc);
|
||||
in ''
|
||||
sed -e 's/@[-a-zA-Z_]*@//g' -i $out/bin/ecl-config
|
||||
wrapProgram "$out/bin/ecl" \
|
||||
--prefix PATH ':' "${gcc}/bin" \
|
||||
--prefix NIX_LDFLAGS ' ' "-L${gmp.lib or gmp.out or gmp}/lib" \
|
||||
--prefix NIX_LDFLAGS ' ' "-L${libffi.lib or libffi.out or libffi}/lib"
|
||||
wrapProgram "$out/bin/ecl" --prefix PATH ':' "${gcc}/bin" ${ldArgs}
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
|
|
@ -2,13 +2,13 @@
|
|||
|
||||
stdenv.mkDerivation ( rec {
|
||||
pname = "corral";
|
||||
version = "0.5.1";
|
||||
version = "0.5.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ponylang";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "1g4dkf5hsnykn3x6yx6ycjzmzzr1nwl59lj13j7zyka1ibv53hwf";
|
||||
sha256 = "sha256-27J1Y3+tbZK7RX+63xVV2eaX/LF525vBR3Ff9EYDEl0=";
|
||||
};
|
||||
|
||||
buildInputs = [ ponyc ];
|
||||
|
|
|
@ -1,4 +1,16 @@
|
|||
{ lib, mkCoqDerivation, coq, compcert, version ? null }:
|
||||
{ lib, mkCoqDerivation, coq, compcert, ITree, version ? null }:
|
||||
|
||||
# A few modules that are not built and installed by default
|
||||
# but that may be useful to some users.
|
||||
# They depend on ITree.
|
||||
let extra_floyd_files = [
|
||||
"ASTsize.v"
|
||||
"io_events.v"
|
||||
"powerlater.v"
|
||||
"printf.v"
|
||||
"quickprogram.v"
|
||||
];
|
||||
in
|
||||
|
||||
with lib; mkCoqDerivation {
|
||||
pname = "coq${coq.coq-version}-VST";
|
||||
|
@ -12,9 +24,14 @@ with lib; mkCoqDerivation {
|
|||
] null;
|
||||
release."2.8".sha256 = "sha256-cyK88uzorRfjapNQ6XgQEmlbWnDsiyLve5po1VG52q0=";
|
||||
releaseRev = v: "v${v}";
|
||||
extraBuildInputs = [ ITree ];
|
||||
propagatedBuildInputs = [ compcert ];
|
||||
|
||||
preConfigure = "patchShebangs util";
|
||||
preConfigure = ''
|
||||
patchShebangs util
|
||||
substituteInPlace Makefile \
|
||||
--replace 'FLOYD_FILES=' 'FLOYD_FILES= ${toString extra_floyd_files}'
|
||||
'';
|
||||
|
||||
makeFlags = [
|
||||
"BITSIZE=64"
|
||||
|
|
|
@ -21,6 +21,9 @@ stdenv.mkDerivation rec {
|
|||
|
||||
nativeBuildInputs = [ cmake removeReferencesTo ];
|
||||
|
||||
# These checks fail on aarch64-darwin
|
||||
cmakeFlags = [ "-DENABLE_UBSAN=OFF" ];
|
||||
|
||||
# It used to reference it, in the past, but thanks to the postFixup hook, now
|
||||
# it doesn't.
|
||||
disallowedReferences = [ stdenv.cc.cc ];
|
||||
|
|
|
@ -12,12 +12,12 @@
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "apispec";
|
||||
version = "4.7.0";
|
||||
version = "4.7.1";
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-v6G+yLWyzqZyfgIMOm/hHZYwiN0u1hbhFHXOry1naTc=";
|
||||
sha256 = "1yf71c9nq1rfb5pkgmfw486fvywi1bjnmgwxcly7y3basf3980kr";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "dipy";
|
||||
version = "1.3.0";
|
||||
version = "1.4.1";
|
||||
|
||||
disabled = isPy27;
|
||||
|
||||
|
@ -22,7 +22,7 @@ buildPythonPackage rec {
|
|||
owner = "dipy";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "0555abx0fwqmk6dc3im7r45d9j7r9xh6gm9mbwfwvlf7laf8h098";
|
||||
sha256 = "0zaqsiq73vprbqbzvzswjfmqgappl5vhpl2fwjrrda33c27klpzj";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cython packaging ];
|
||||
|
|
|
@ -1,23 +1,23 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, isPy3k
|
||||
, fetchFromGitHub
|
||||
, pythonOlder
|
||||
, importlib-metadata
|
||||
, matplotlib
|
||||
, numpy
|
||||
, exdown
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "dufte";
|
||||
version = "0.2.12";
|
||||
disabled = !isPy3k;
|
||||
version = "0.2.27";
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0ag1d7h1wijkc7v2vpgkbqjlnpiwd4nh8zhxiby0989bpmlp3jr3";
|
||||
src = fetchFromGitHub {
|
||||
owner = "nschloe";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "1i68h224hx9clxj3l0rd2yigsi6fqsr3x10vj5hf3j6s69iah7r3";
|
||||
};
|
||||
format = "pyproject";
|
||||
|
||||
|
@ -28,13 +28,10 @@ buildPythonPackage rec {
|
|||
importlib-metadata
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
export HOME=$TMPDIR
|
||||
mkdir -p $HOME/.matplotlib
|
||||
echo "backend: ps" > $HOME/.matplotlib/matplotlibrc
|
||||
'';
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
checkInputs = [ exdown pytestCheckHook ];
|
||||
pythonImportsCheck = [ "dufte" ];
|
||||
|
||||
meta = with lib; {
|
||||
|
|
|
@ -7,20 +7,20 @@
|
|||
, pipdate
|
||||
, tqdm
|
||||
, rich
|
||||
, pytest
|
||||
, isPy27
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "perfplot";
|
||||
version = "0.9.5";
|
||||
disabled = isPy27;
|
||||
version = "0.9.6";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "nschloe";
|
||||
repo = "perfplot";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "1nr31a7qvipqjycw2flkabnhnc4drbi1xpjm8yjxw2gjzznd1jg4";
|
||||
sha256 = "11f31d6xqxp04693symc2dl8890gjaycrb2a35y5xy023abwir5b";
|
||||
};
|
||||
format = "pyproject";
|
||||
|
||||
|
@ -34,20 +34,15 @@ buildPythonPackage rec {
|
|||
];
|
||||
|
||||
checkInputs = [
|
||||
pytest
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
export HOME=$TMPDIR
|
||||
mkdir -p $HOME/.matplotlib
|
||||
echo "backend: ps" > $HOME/.matplotlib/matplotlibrc
|
||||
pytest test/perfplot_test.py
|
||||
'';
|
||||
pythonImportsCheck = [ "perfplot" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Performance plots for Python code snippets";
|
||||
homepage = "https://github.com/nschloe/perfplot";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.costrouc ];
|
||||
maintainers = with maintainers; [ costrouc ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,31 +1,37 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, isPy27
|
||||
, fetchPypi
|
||||
, pybind11
|
||||
, exdown
|
||||
, fetchFromGitHub
|
||||
, importlib-metadata
|
||||
, numpy
|
||||
, pybind11
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyfma";
|
||||
version = "0.1.4";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
disabled = isPy27;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "5bc6bf57d960a5232b7a56bd38e9fe3dce0911016746029931044b66bdec46e9";
|
||||
src = fetchFromGitHub {
|
||||
owner = "nschloe";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "1wkcl41j2d1yflc5dl30ys1yxx68w9zn3vj8brwkm1ar9jnfmg4h";
|
||||
};
|
||||
format = "pyproject";
|
||||
|
||||
buildInputs = [
|
||||
pybind11
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
exdown
|
||||
propagatedBuildInputs = [
|
||||
numpy
|
||||
] ++ lib.optionals (pythonOlder "3.8") [
|
||||
importlib-metadata
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
|
@ -35,6 +41,6 @@ buildPythonPackage rec {
|
|||
description = "Fused multiply-add for Python";
|
||||
homepage = "https://github.com/nschloe/pyfma";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.costrouc];
|
||||
maintainers = with maintainers; [ costrouc ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -18,26 +18,15 @@
|
|||
, wrapQtAppsHook
|
||||
}:
|
||||
|
||||
let
|
||||
desktopItem = makeDesktopItem {
|
||||
name = "mgba";
|
||||
exec = "mgba-qt";
|
||||
icon = "mgba";
|
||||
comment = "A Game Boy Advance Emulator";
|
||||
desktopName = "mgba";
|
||||
genericName = "Game Boy Advance Emulator";
|
||||
categories = "Game;Emulator;";
|
||||
startupNotify = "false";
|
||||
};
|
||||
in stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "mgba";
|
||||
version = "0.9.0";
|
||||
version = "0.9.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mgba-emu";
|
||||
repo = "mgba";
|
||||
rev = version;
|
||||
hash = "sha256-JVauGyHJVfiXVG4Z+Ydh1lRypy5rk9SKeTbeHFNFYJs=";
|
||||
hash = "sha256-A48PVUCekdRYel/BddPCeIcEDllOvcU7pk4i4P58dpo=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
@ -59,9 +48,21 @@ in stdenv.mkDerivation rec {
|
|||
qttools
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
cp -r ${desktopItem}/share/applications $out/share
|
||||
'';
|
||||
postInstall = let
|
||||
desktopItem = makeDesktopItem {
|
||||
name = "mgba";
|
||||
exec = "mgba-qt";
|
||||
icon = "mgba";
|
||||
comment = "A Game Boy Advance Emulator";
|
||||
desktopName = "mgba";
|
||||
genericName = "Game Boy Advance Emulator";
|
||||
categories = "Game;Emulator;";
|
||||
startupNotify = "false";
|
||||
};
|
||||
in
|
||||
''
|
||||
cp -r ${desktopItem}/share/applications $out/share
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://mgba.io";
|
||||
|
|
|
@ -1,28 +1,55 @@
|
|||
{ lib, stdenv, fetchFromGitHub, pkg-config
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, pkg-config
|
||||
, SDL2
|
||||
, SDL2_image
|
||||
, SDL2_ttf
|
||||
, alsa-lib
|
||||
, freetype
|
||||
, glew
|
||||
, libGL
|
||||
, libogg
|
||||
, libpng
|
||||
, libtheora
|
||||
, libvorbis
|
||||
, python
|
||||
, alsa-lib, glew, libGL, libpng
|
||||
, libogg, libtheora, libvorbis
|
||||
, SDL2, SDL2_image, SDL2_ttf
|
||||
, freetype, tcl, zlib
|
||||
, tcl
|
||||
, zlib
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "openmsx";
|
||||
version = "16.0";
|
||||
version = "17.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "openMSX";
|
||||
repo = "openMSX";
|
||||
rev = "RELEASE_${builtins.replaceStrings ["."] ["_"] version}";
|
||||
sha256 = "04sphn9ph378r0qv881riv90cgz58650jcqcwmi1mv6gbcb3img5";
|
||||
sha256 = "sha256-9PdUNahJZ2O6ASkzLW/uudP3hiIzTDpxzFy6Pjb8JiU=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config python ];
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
python
|
||||
];
|
||||
|
||||
buildInputs = [ alsa-lib glew libGL libpng
|
||||
libogg libtheora libvorbis freetype
|
||||
SDL2 SDL2_image SDL2_ttf tcl zlib ];
|
||||
buildInputs = [
|
||||
SDL2
|
||||
SDL2_image
|
||||
SDL2_ttf
|
||||
alsa-lib
|
||||
freetype
|
||||
glew
|
||||
libGL
|
||||
libogg
|
||||
libpng
|
||||
libtheora
|
||||
libvorbis
|
||||
tcl
|
||||
zlib
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
cp ${./custom-nix.mk} build/custom.mk
|
||||
|
@ -30,19 +57,19 @@ stdenv.mkDerivation rec {
|
|||
|
||||
dontAddPrefix = true;
|
||||
|
||||
# Many thanks @mthuurne from OpenMSX project
|
||||
# for providing support to Nixpkgs :)
|
||||
# Many thanks @mthuurne from OpenMSX project for providing support to
|
||||
# Nixpkgs! :)
|
||||
TCL_CONFIG="${tcl}/lib/";
|
||||
|
||||
meta = with lib;{
|
||||
meta = with lib; {
|
||||
homepage = "https://openmsx.org";
|
||||
description = "The MSX emulator that aims for perfection";
|
||||
longDescription = ''
|
||||
OpenMSX is an emulator for the MSX home computer system. Its goal is
|
||||
to emulate all aspects of the MSX with 100% accuracy.
|
||||
'';
|
||||
homepage = "https://openmsx.org";
|
||||
license = with licenses; [ bsd2 boost gpl2Plus ];
|
||||
maintainers = with maintainers; [ AndersonTorres ];
|
||||
platforms = platforms.unix;
|
||||
license = with licenses; [ bsd2 boost gpl2 ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -7,13 +7,13 @@
|
|||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "stella";
|
||||
version = "6.5.2";
|
||||
version = "6.5.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "stella-emu";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
hash = "sha256-CDLMOqSgRx75tjBoLycis/cckCNwgdlb9TRBlD3Dd04=";
|
||||
hash = "sha256-Y9rEh9PZalQNj+d7OXN/8z5P8Hti4R3c2RL1BY+J1y4=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
|
|
|
@ -141,6 +141,15 @@ in rec {
|
|||
cp -r ${MacOSX-SDK}/usr/include/libDER $out/include
|
||||
'';
|
||||
};
|
||||
|
||||
simd = stdenv.mkDerivation {
|
||||
name = "apple-lib-simd";
|
||||
dontUnpack = true;
|
||||
installPhase = ''
|
||||
mkdir -p $out/include
|
||||
cp -r ${MacOSX-SDK}/usr/include/simd $out/include
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
overrides = super: {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{ frameworks, libs, libobjc, Libsystem, libnetwork }: with frameworks; with libs;
|
||||
{
|
||||
AGL = { inherit Carbon OpenGL; };
|
||||
AVFoundation = { inherit ApplicationServices AVFCapture AVFCore CoreGraphics; };
|
||||
AVFoundation = { inherit ApplicationServices AVFCapture AVFCore CoreGraphics simd UniformTypeIdentifiers; };
|
||||
AVKit = {};
|
||||
Accelerate = { inherit CoreWLAN IOBluetooth; };
|
||||
Accessibility = {};
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{ lib, fetchFromGitHub, buildLinux, ... } @ args:
|
||||
|
||||
let
|
||||
version = "5.13.5";
|
||||
version = "5.13.7";
|
||||
suffix = "zen1";
|
||||
in
|
||||
|
||||
|
@ -14,11 +14,15 @@ buildLinux (args // {
|
|||
owner = "zen-kernel";
|
||||
repo = "zen-kernel";
|
||||
rev = "v${version}-${suffix}";
|
||||
sha256 = "sha256-3guG482lsdcWqAJ1kY757D4EeOEpTDvy95de0bHif98=";
|
||||
sha256 = "sha256-ZvB5Ejt9MXP4QK5cj9CGQgFJIfDV03IW5xcknCxDui0=";
|
||||
};
|
||||
|
||||
structuredExtraConfig = with lib.kernel; {
|
||||
ZEN_INTERACTIVE = yes;
|
||||
};
|
||||
|
||||
extraMeta = {
|
||||
branch = "5.12/master";
|
||||
branch = "5.13";
|
||||
maintainers = with lib.maintainers; [ atemu andresilva ];
|
||||
description = "Built using the best configuration and kernel sources for desktop, multimedia, and gaming workloads.";
|
||||
};
|
||||
|
|
|
@ -92,7 +92,10 @@ stdenv.mkDerivation rec {
|
|||
"--with-bash-completion-dir=${placeholder "out"}/share/bash-completions/completions"
|
||||
]
|
||||
++ lib.optional (jackaudioSupport && !libOnly) "--enable-jack"
|
||||
++ lib.optional stdenv.isDarwin "--with-mac-sysroot=/"
|
||||
++ lib.optionals stdenv.isDarwin [
|
||||
"--with-mac-sysroot=/"
|
||||
"--disable-neon-opt"
|
||||
]
|
||||
++ lib.optional (stdenv.isLinux && useSystemd) "--with-systemduserunitdir=${placeholder "out"}/lib/systemd/user"
|
||||
++ lib.optional (stdenv.buildPlatform != stdenv.hostPlatform) "--disable-gsettings";
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "tcsh";
|
||||
version = "6.22.03";
|
||||
version = "6.22.04";
|
||||
|
||||
src = fetchurl {
|
||||
urls = [
|
||||
|
@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
|
|||
"ftp://ftp.funet.fi/pub/unix/shells/tcsh/${pname}-${version}.tar.gz"
|
||||
"ftp://ftp.funet.fi/pub/unix/shells/tcsh/old/${pname}-${version}.tar.gz"
|
||||
];
|
||||
sha256 = "sha256-viz9ZT0qDH9QbS3RTBIyS6dJvUhAN75t9Eo5c/UiYrc=";
|
||||
hash = "sha256-6xY1YkMhjDLzngcljXK/iyHmLOlLsOipXjGLFROX4jE=";
|
||||
};
|
||||
|
||||
buildInputs = [ ncurses ];
|
||||
|
@ -28,12 +28,13 @@ stdenv.mkDerivation rec {
|
|||
});
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://www.tcsh.org/";
|
||||
description = "An enhanced version of the Berkeley UNIX C shell (csh)";
|
||||
longDescription = ''
|
||||
tcsh is an enhanced but completely compatible version of the
|
||||
Berkeley UNIX C shell, csh. It is a command language interpreter
|
||||
usable both as an interactive login shell and a shell script
|
||||
command processor.
|
||||
tcsh is an enhanced but completely compatible version of the Berkeley UNIX
|
||||
C shell, csh. It is a command language interpreter usable both as an
|
||||
interactive login shell and a shell script command processor.
|
||||
|
||||
It includes:
|
||||
- command-line editor
|
||||
- programmable word completion
|
||||
|
@ -41,10 +42,9 @@ stdenv.mkDerivation rec {
|
|||
- history mechanism
|
||||
- job control
|
||||
'';
|
||||
homepage = "https://www.tcsh.org/";
|
||||
license = licenses.bsd2;
|
||||
maintainers = with maintainers; [ AndersonTorres ];
|
||||
platforms = platforms.linux ++ platforms.darwin;
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
|
||||
passthru = {
|
||||
|
|
|
@ -2,13 +2,13 @@
|
|||
|
||||
buildGoModule rec {
|
||||
pname = "eksctl";
|
||||
version = "0.58.0";
|
||||
version = "0.59.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "weaveworks";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-g7Lfx8Q2yEFk6/3r8+MUl8jehbRfVGfrZb1+WgA6TYA=";
|
||||
sha256 = "sha256-qSZos1BO48Z5aiay8B/9DFGPgAOC8ib7IRjlFhzFh5Y=";
|
||||
};
|
||||
|
||||
vendorSha256 = "sha256-mapok/c3uh7xmLZnN5S9zavgxSOfytqtqxBScv4Ao8w=";
|
||||
|
|
|
@ -1,11 +1,13 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, zlib
|
||||
, xz
|
||||
, lz4
|
||||
, lzo
|
||||
, zstd
|
||||
, nixosTests
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
@ -23,6 +25,12 @@ stdenv.mkDerivation rec {
|
|||
# This patch adds an option to pad filesystems (increasing size) in
|
||||
# exchange for better chunking / binary diff calculation.
|
||||
./4k-align.patch
|
||||
# Otherwise sizes of some files may break in our ISO; see
|
||||
# https://github.com/NixOS/nixpkgs/issues/132286
|
||||
(fetchpatch {
|
||||
url = "https://github.com/plougher/squashfs-tools/commit/19b161c1cd3e31f7a396ea92dea4390ad43f27b9.diff";
|
||||
sha256 = "15ng8m2my3a6a9hnfx474bip2vwdh08hzs2k0l5gwd36jv2z1h3f";
|
||||
})
|
||||
] ++ lib.optional stdenv.isDarwin ./darwin.patch;
|
||||
|
||||
buildInputs = [ zlib xz zstd lz4 lzo ];
|
||||
|
@ -40,6 +48,10 @@ stdenv.mkDerivation rec {
|
|||
"LZO_SUPPORT=1"
|
||||
];
|
||||
|
||||
passthru.tests = {
|
||||
nixos-iso-boots-and-verifies = nixosTests.boot.biosCdrom;
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/plougher/squashfs-tools";
|
||||
description = "Tool for creating and unpacking squashfs filesystems";
|
||||
|
|
|
@ -1,18 +1,20 @@
|
|||
{ fetchurl, lib, nettools, pythonPackages, texinfo }:
|
||||
{ lib, nettools, python3Packages, texinfo, fetchFromGitHub }:
|
||||
|
||||
# FAILURES: The "running build_ext" phase fails to compile Twisted
|
||||
# plugins, because it tries to write them into Twisted's (immutable)
|
||||
# store path. The problem appears to be non-fatal, but there's probably
|
||||
# some loss of functionality because of it.
|
||||
|
||||
pythonPackages.buildPythonApplication rec {
|
||||
version = "1.13.0";
|
||||
python3Packages.buildPythonApplication rec {
|
||||
version = "2021-07-09";
|
||||
pname = "tahoe-lafs";
|
||||
namePrefix = "";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://tahoe-lafs.org/downloads/tahoe-lafs-${version}.tar.bz2";
|
||||
sha256 = "11pfz9yyy6qkkyi0kskxlbn2drfppx6yawqyv4kpkrkj4q7x5m42";
|
||||
src = fetchFromGitHub {
|
||||
owner = "tahoe-lafs";
|
||||
repo = "tahoe-lafs";
|
||||
rev = "8e28a9d0e02fde2388aca549da2b5c452ac4337f";
|
||||
sha256 = "sha256-MuD/ZY+die7RCsuVdcePSD0DdwatXRi7CxW2iFt22L0=";
|
||||
};
|
||||
|
||||
outputs = [ "out" "doc" "info" ];
|
||||
|
@ -38,26 +40,30 @@ pythonPackages.buildPythonApplication rec {
|
|||
cd src/allmydata/test
|
||||
|
||||
# Buggy?
|
||||
rm cli/test_create.py test_backupdb.py
|
||||
rm cli/test_create.py test_client.py
|
||||
|
||||
# These require Tor and I2P.
|
||||
rm test_connections.py test_iputil.py test_hung_server.py test_i2p_provider.py test_tor_provider.py
|
||||
|
||||
# Fails due to the above tests missing
|
||||
rm test_python3.py
|
||||
|
||||
# Expensive
|
||||
rm test_system.py
|
||||
)
|
||||
'';
|
||||
|
||||
nativeBuildInputs = with pythonPackages; [ sphinx texinfo ];
|
||||
nativeBuildInputs = with python3Packages; [ sphinx texinfo ];
|
||||
|
||||
# The `backup' command requires `sqlite3'.
|
||||
propagatedBuildInputs = with pythonPackages; [
|
||||
twisted foolscap nevow simplejson zfec pycryptopp darcsver
|
||||
setuptoolsTrial setuptoolsDarcs pycrypto pyasn1 zope_interface
|
||||
service-identity pyyaml magic-wormhole treq characteristic
|
||||
propagatedBuildInputs = with python3Packages; [
|
||||
appdirs beautifulsoup4 characteristic distro eliot fixtures foolscap future
|
||||
html5lib magic-wormhole netifaces pyasn1 pycrypto pyutil pyyaml recommonmark
|
||||
service-identity simplejson sphinx_rtd_theme testtools treq twisted zfec
|
||||
zope_interface
|
||||
];
|
||||
|
||||
checkInputs = with pythonPackages; [ mock hypothesis twisted ];
|
||||
checkInputs = with python3Packages; [ mock hypothesis twisted ];
|
||||
|
||||
# Install the documentation.
|
||||
postInstall = ''
|
||||
|
@ -90,6 +96,5 @@ pythonPackages.buildPythonApplication rec {
|
|||
license = [ lib.licenses.gpl2Plus /* or */ "TGPPLv1+" ];
|
||||
maintainers = with lib.maintainers; [ MostAwesomeDude ];
|
||||
platforms = lib.platforms.gnu ++ lib.platforms.linux;
|
||||
broken = true;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -31812,6 +31812,8 @@ in
|
|||
|
||||
sane-backends = callPackage ../applications/graphics/sane/backends (config.sane or {});
|
||||
|
||||
sane-drivers = callPackage ../applications/graphics/sane/drivers.nix {};
|
||||
|
||||
senv = callPackage ../applications/misc/senv { };
|
||||
|
||||
brlaser = callPackage ../misc/cups/drivers/brlaser { };
|
||||
|
|
Loading…
Reference in a new issue