Merge master into haskell-updates

This commit is contained in:
github-actions[bot] 2022-12-06 00:12:34 +00:00 committed by GitHub
commit d7af8ae032
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
128 changed files with 8017 additions and 8425 deletions

View File

@ -11,58 +11,12 @@ meta = with lib; {
''; '';
homepage = "https://www.gnu.org/software/hello/manual/"; homepage = "https://www.gnu.org/software/hello/manual/";
license = licenses.gpl3Plus; license = licenses.gpl3Plus;
maintainers = [ maintainers.eelco ]; maintainers = with maintainers; [ eelco ];
platforms = platforms.all; platforms = platforms.all;
}; };
``` ```
Meta-attributes are not passed to the builder of the package. Thus, a change to a meta-attribute doesnt trigger a recompilation of the package. The value of a meta-attribute must be a string. Meta-attributes are not passed to the builder of the package. Thus, a change to a meta-attribute doesnt trigger a recompilation of the package.
The meta-attributes of a package can be queried from the command-line using `nix-env`:
```ShellSession
$ nix-env -qa hello --json
{
"hello": {
"meta": {
"description": "A program that produces a familiar, friendly greeting",
"homepage": "https://www.gnu.org/software/hello/manual/",
"license": {
"fullName": "GNU General Public License version 3 or later",
"shortName": "GPLv3+",
"url": "http://www.fsf.org/licensing/licenses/gpl.html"
},
"longDescription": "GNU Hello is a program that prints \"Hello, world!\" when you run it.\nIt is fully customizable.\n",
"maintainers": [
"Ludovic Court\u00e8s <ludo@gnu.org>"
],
"platforms": [
"i686-linux",
"x86_64-linux",
"armv5tel-linux",
"armv7l-linux",
"mips32-linux",
"x86_64-darwin",
"i686-cygwin",
"i686-freebsd13",
"x86_64-freebsd13",
"i686-openbsd",
"x86_64-openbsd"
],
"position": "/home/user/dev/nixpkgs/pkgs/applications/misc/hello/default.nix:14"
},
"name": "hello-2.9",
"system": "x86_64-linux"
}
}
```
`nix-env` knows about the `description` field specifically:
```ShellSession
$ nix-env -qa hello --description
hello-2.3 A program that produces a familiar, friendly greeting
```
## Standard meta-attributes {#sec-standard-meta-attributes} ## Standard meta-attributes {#sec-standard-meta-attributes}

View File

@ -10878,6 +10878,16 @@
fingerprint = "5D69 CF04 B7BC 2BC1 A567 9267 00BC F29B 3208 0700"; fingerprint = "5D69 CF04 B7BC 2BC1 A567 9267 00BC F29B 3208 0700";
}]; }];
}; };
phdcybersec = {
name = "Léo Lavaur";
email = "phdcybersec@pm.me";
github = "phdcybersec";
githubId = 82591009;
keys = [{
fingerprint = "7756 E88F 3C6A 47A5 C5F0 CDFB AB54 6777 F93E 20BF";
}];
};
phfroidmont = { phfroidmont = {
name = "Paul-Henri Froidmont"; name = "Paul-Henri Froidmont";
email = "nix.contact-j9dw4d@froidmont.org"; email = "nix.contact-j9dw4d@froidmont.org";

View File

@ -70,6 +70,46 @@
deprecation</link>. deprecation</link>.
</para> </para>
</listitem> </listitem>
<listitem>
<para>
The
<link linkend="opt-services.snapserver.openFirewall">services.snapserver.openFirewall</link>
module option default value has been changed from
<literal>true</literal> to <literal>false</literal>. You will
need to explicitely set this option to
<literal>true</literal>, or configure your firewall.
</para>
</listitem>
<listitem>
<para>
The
<link linkend="opt-services.avahi.openFirewall">services.avahi.openFirewall</link>
module option default value has been changed from
<literal>true</literal> to <literal>false</literal>. You will
need to explicitely set this option to
<literal>true</literal>, or configure your firewall.
</para>
</listitem>
<listitem>
<para>
The
<link linkend="opt-services.tmate-ssh-server.openFirewall">services.tmate-ssh-server.openFirewall</link>
module option default value has been changed from
<literal>true</literal> to <literal>false</literal>. You will
need to explicitely set this option to
<literal>true</literal>, or configure your firewall.
</para>
</listitem>
<listitem>
<para>
The
<link linkend="opt-services.unifi-video.openFirewall">services.unifi-video.openFirewall</link>
module option default value has been changed from
<literal>true</literal> to <literal>false</literal>. You will
need to explicitely set this option to
<literal>true</literal>, or configure your firewall.
</para>
</listitem>
<listitem> <listitem>
<para> <para>
The EC2 image module previously detected and automatically The EC2 image module previously detected and automatically

View File

@ -27,6 +27,14 @@ In addition to numerous new and upgraded packages, this release has the followin
- `services.sourcehut.dispatch` and the corresponding package (`sourcehut.dispatchsrht`) have been removed due to [upstream deprecation](https://sourcehut.org/blog/2022-08-01-dispatch-deprecation-plans/). - `services.sourcehut.dispatch` and the corresponding package (`sourcehut.dispatchsrht`) have been removed due to [upstream deprecation](https://sourcehut.org/blog/2022-08-01-dispatch-deprecation-plans/).
- The [services.snapserver.openFirewall](#opt-services.snapserver.openFirewall) module option default value has been changed from `true` to `false`. You will need to explicitely set this option to `true`, or configure your firewall.
- The [services.avahi.openFirewall](#opt-services.avahi.openFirewall) module option default value has been changed from `true` to `false`. You will need to explicitely set this option to `true`, or configure your firewall.
- The [services.tmate-ssh-server.openFirewall](#opt-services.tmate-ssh-server.openFirewall) module option default value has been changed from `true` to `false`. You will need to explicitely set this option to `true`, or configure your firewall.
- The [services.unifi-video.openFirewall](#opt-services.unifi-video.openFirewall) module option default value has been changed from `true` to `false`. You will need to explicitely set this option to `true`, or configure your firewall.
- The EC2 image module previously detected and automatically mounted ext3-formatted instance store devices and partitions in stage-1 (initramfs), storing `/tmp` on the first discovered device. This behaviour, which only catered to very specific use cases and could not be disabled, has been removed. Users relying on this should provide their own implementation, and probably use ext4 and perform the mount in stage-2. - The EC2 image module previously detected and automatically mounted ext3-formatted instance store devices and partitions in stage-1 (initramfs), storing `/tmp` on the first discovered device. This behaviour, which only catered to very specific use cases and could not be disabled, has been removed. Users relying on this should provide their own implementation, and probably use ext4 and perform the mount in stage-2.
- The EC2 image module previously detected and activated swap-formatted instance store devices and partitions in stage-1 (initramfs). This behaviour has been removed. Users relying on this should provide their own implementation. - The EC2 image module previously detected and activated swap-formatted instance store devices and partitions in stage-1 (initramfs). This behaviour has been removed. Users relying on this should provide their own implementation.

View File

@ -33,6 +33,8 @@ with lib;
ffmpeg_4 = super.ffmpeg_4.override { sdlSupport = false; vdpauSupport = false; }; ffmpeg_4 = super.ffmpeg_4.override { sdlSupport = false; vdpauSupport = false; };
ffmpeg_5 = super.ffmpeg_5.override { sdlSupport = false; vdpauSupport = false; }; ffmpeg_5 = super.ffmpeg_5.override { sdlSupport = false; vdpauSupport = false; };
gobject-introspection = super.gobject-introspection.override { x11Support = false; }; gobject-introspection = super.gobject-introspection.override { x11Support = false; };
imagemagick = super.imagemagick.override { libX11Support = false; libXtSupport = false; };
imagemagickBig = super.imagemagickBig.override { libX11Support = false; libXtSupport = false; };
libva = super.libva-minimal; libva = super.libva-minimal;
networkmanager-fortisslvpn = super.networkmanager-fortisslvpn.override { withGnome = false; }; networkmanager-fortisslvpn = super.networkmanager-fortisslvpn.override { withGnome = false; };
networkmanager-iodine = super.networkmanager-iodine.override { withGnome = false; }; networkmanager-iodine = super.networkmanager-iodine.override { withGnome = false; };
@ -42,6 +44,7 @@ with lib;
networkmanager-sstp = super.networkmanager-vpnc.override { withGnome = false; }; networkmanager-sstp = super.networkmanager-vpnc.override { withGnome = false; };
networkmanager-vpnc = super.networkmanager-vpnc.override { withGnome = false; }; networkmanager-vpnc = super.networkmanager-vpnc.override { withGnome = false; };
qemu = super.qemu.override { gtkSupport = false; spiceSupport = false; sdlSupport = false; }; qemu = super.qemu.override { gtkSupport = false; spiceSupport = false; sdlSupport = false; };
zbar = super.zbar.override { enableVideo = false; withXorg = false; };
})); }));
}; };
} }

View File

@ -6,6 +6,12 @@
with lib; with lib;
let let
# This is copied into the installer image, so it's important that it is filtered
# to avoid including a large .git directory.
# We also want the source name to be normalised to "source" to avoid depending on the
# location of nixpkgs.
# In the future we might want to expose the ISO image from the flake and use
# `self.outPath` directly instead.
nixpkgs = lib.cleanSource pkgs.path; nixpkgs = lib.cleanSource pkgs.path;
# We need a copy of the Nix expressions for Nixpkgs and NixOS on the # We need a copy of the Nix expressions for Nixpkgs and NixOS on the
@ -31,7 +37,14 @@ let
in in
{ {
nix.registry.nixpkgs.flake.outPath = builtins.path { name = "source"; path = pkgs.path; }; # Pin the nixpkgs flake in the installer to our cleaned up nixpkgs source.
# FIXME: this might be surprising and is really only needed for offline installations,
# see discussion in https://github.com/NixOS/nixpkgs/pull/204178#issuecomment-1336289021
nix.registry.nixpkgs.to = {
type = "path";
path = nixpkgs;
};
# Provide the NixOS/Nixpkgs sources in /etc/nixos. This is required # Provide the NixOS/Nixpkgs sources in /etc/nixos. This is required
# for nixos-install. # for nixos-install.
boot.postBootCommands = mkAfter boot.postBootCommands = mkAfter

View File

@ -101,9 +101,7 @@ in {
openFirewall = mkOption { openFirewall = mkOption {
type = types.bool; type = types.bool;
# Make the behavior consistent with other services. Set the default to default = false;
# false and remove the accompanying warning after NixOS 22.05 is released.
default = true;
description = lib.mdDoc '' description = lib.mdDoc ''
Whether to automatically open the specified ports in the firewall. Whether to automatically open the specified ports in the firewall.
''; '';
@ -279,12 +277,7 @@ in {
# https://github.com/badaix/snapcast/blob/98ac8b2fb7305084376607b59173ce4097c620d8/server/streamreader/stream_manager.cpp#L85 # https://github.com/badaix/snapcast/blob/98ac8b2fb7305084376607b59173ce4097c620d8/server/streamreader/stream_manager.cpp#L85
filter (w: w != "") (mapAttrsToList (k: v: if v.type == "spotify" then '' filter (w: w != "") (mapAttrsToList (k: v: if v.type == "spotify" then ''
services.snapserver.streams.${k}.type = "spotify" is deprecated, use services.snapserver.streams.${k}.type = "librespot" instead. services.snapserver.streams.${k}.type = "spotify" is deprecated, use services.snapserver.streams.${k}.type = "librespot" instead.
'' else "") cfg.streams) '' else "") cfg.streams);
# Remove this warning after NixOS 22.05 is released.
++ optional (options.services.snapserver.openFirewall.highestPrio >= (mkOptionDefault null).priority) ''
services.snapserver.openFirewall will no longer default to true starting with NixOS 22.11.
Enable it explicitly if you need to control Snapserver remotely.
'';
systemd.services.snapserver = { systemd.services.snapserver = {
after = [ "network.target" ]; after = [ "network.target" ];

View File

@ -443,7 +443,7 @@ in {
virtualHosts = lib.genAttrs cfg.webHosts (webHost: { virtualHosts = lib.genAttrs cfg.webHosts (webHost: {
locations = { locations = {
${cfg.serve.virtualRoot}.extraConfig = "uwsgi_pass unix:/run/mailman-web.socket;"; ${cfg.serve.virtualRoot}.extraConfig = "uwsgi_pass unix:/run/mailman-web.socket;";
"${cfg.serve.virtualRoot}/static/".alias = webSettings.STATIC_ROOT + "/"; "${removeSuffix "/" cfg.serve.virtualRoot}/static/".alias = webSettings.STATIC_ROOT + "/";
}; };
}); });
}; };

View File

@ -103,7 +103,7 @@ in
openFirewall = mkOption { openFirewall = mkOption {
type = types.bool; type = types.bool;
default = true; default = false;
description = lib.mdDoc '' description = lib.mdDoc ''
Whether to open the firewall for UDP port 5353. Whether to open the firewall for UDP port 5353.
''; '';

View File

@ -44,7 +44,7 @@ in
openFirewall = mkOption { openFirewall = mkOption {
type = types.bool; type = types.bool;
default = true; default = false;
description = mdDoc "Whether to automatically open the specified ports in the firewall."; description = mdDoc "Whether to automatically open the specified ports in the firewall.";
}; };

View File

@ -148,7 +148,7 @@ in
openFirewall = mkOption { openFirewall = mkOption {
type = types.bool; type = types.bool;
default = true; default = false;
description = lib.mdDoc '' description = lib.mdDoc ''
Whether or not to open the required ports on the firewall. Whether or not to open the required ports on the firewall.
''; '';

View File

@ -1902,6 +1902,20 @@ in
}; };
systemd.network.wait-online = { systemd.network.wait-online = {
enable = mkOption {
type = types.bool;
default = true;
example = false;
description = lib.mdDoc ''
Whether to enable the systemd-networkd-wait-online service.
systemd-networkd-wait-online can timeout and fail if there are no network interfaces
available for it to manage. When systemd-networkd is enabled but a different service is
responsible for managing the system's internet connection (for example, NetworkManager or
connman are used to manage WiFi connections), this service is unnecessary and can be
disabled.
'';
};
anyInterface = mkOption { anyInterface = mkOption {
description = lib.mdDoc '' description = lib.mdDoc ''
Whether to consider the network online when any interface is online, as opposed to all of them. Whether to consider the network online when any interface is online, as opposed to all of them.
@ -1983,6 +1997,7 @@ in
}; };
systemd.services.systemd-networkd-wait-online = { systemd.services.systemd-networkd-wait-online = {
inherit (cfg.wait-online) enable;
wantedBy = [ "network-online.target" ]; wantedBy = [ "network-online.target" ];
serviceConfig.ExecStart = [ serviceConfig.ExecStart = [
"" ""

View File

@ -17,9 +17,6 @@ in
listenPort = port; listenPort = port;
}; };
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) ["unrar"]; nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) ["unrar"];
# Workaround for https://github.com/morpheus65535/bazarr/issues/1983
# ("Crash when running without timezone info").
time.timeZone = "UTC";
}; };
testScript = '' testScript = ''

View File

@ -252,7 +252,9 @@ let
}).overrideAttrs (attrs: { }).overrideAttrs (attrs: {
postPatch = lib.optionalString (!stdenv.isDarwin) (attrs.postPatch + '' postPatch = lib.optionalString (!stdenv.isDarwin) (attrs.postPatch + ''
interp="$(cat $NIX_CC/nix-support/dynamic-linker)" interp="$(cat $NIX_CC/nix-support/dynamic-linker)"
patchelf --set-interpreter $interp lib/ReSharperHost/linux-x64/Rider.Backend patchelf --set-interpreter $interp \
lib/ReSharperHost/linux-x64/Rider.Backend \
plugins/dotCommon/DotFiles/linux-x64/JetBrains.Profiler.PdbServer
rm -rf lib/ReSharperHost/linux-x64/dotnet rm -rf lib/ReSharperHost/linux-x64/dotnet
ln -s ${dotnet-sdk_6} lib/ReSharperHost/linux-x64/dotnet ln -s ${dotnet-sdk_6} lib/ReSharperHost/linux-x64/dotnet

View File

@ -1,40 +1,34 @@
{ rustPlatform { lib
, runCommand , rustPlatform
, lib , clangStdenv
, fetchFromGitHub , fetchFromGitHub
, linkFarm
, fetchgit , fetchgit
, fetchurl , runCommand
, gn
, ninja
, makeWrapper , makeWrapper
, pkg-config , pkg-config
, python2
, python3 , python3
, openssl , removeReferencesTo
, xcbuild
, SDL2 , SDL2
, fontconfig , fontconfig
, freetype , xorg
, ninja , stdenv
, gn , darwin
, llvmPackages
, makeFontsConf
, libglvnd , libglvnd
, libxkbcommon , libxkbcommon
, stdenv
, enableWayland ? stdenv.isLinux , enableWayland ? stdenv.isLinux
, wayland , wayland
, xorg
, xcbuild
, Security
, ApplicationServices
, AppKit
, Carbon
, removeReferencesTo
}: }:
rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage.override { stdenv = clangStdenv; } rec {
pname = "neovide"; pname = "neovide";
version = "0.10.3"; version = "0.10.3";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Kethku"; owner = "neovide";
repo = "neovide"; repo = "neovide";
rev = version; rev = version;
sha256 = "sha256-CcBiCcfOJzuq0DnokTUHpMdo7Ry29ugQ+N7Hk0R+cQE="; sha256 = "sha256-CcBiCcfOJzuq0DnokTUHpMdo7Ry29ugQ+N7Hk0R+cQE=";
@ -52,35 +46,24 @@ rustPlatform.buildRustPackage rec {
sha256 = "sha256-w5dw/lGm40gKkHPR1ji/L82Oa808Kuh8qaCeiqBLkLw="; sha256 = "sha256-w5dw/lGm40gKkHPR1ji/L82Oa808Kuh8qaCeiqBLkLw=";
}; };
# The externals for skia are taken from skia/DEPS # The externals for skia are taken from skia/DEPS
externals = lib.mapAttrs (n: fetchgit) (lib.importJSON ./skia-externals.json); externals = linkFarm "skia-externals" (lib.mapAttrsToList
(name: value: { inherit name; path = fetchgit value; })
(lib.importJSON ./skia-externals.json));
in in
runCommand "source" {} ( runCommand "source" { } ''
''
cp -R ${repo} $out cp -R ${repo} $out
chmod -R +w $out chmod -R +w $out
ln -s ${externals} $out/third_party/externals
''
;
mkdir -p $out/third_party/externals
cd $out/third_party/externals
'' + (builtins.concatStringsSep "\n" (lib.mapAttrsToList (name: value: "cp -ra ${value} ${name}") externals))
);
SKIA_NINJA_COMMAND = "${ninja}/bin/ninja";
SKIA_GN_COMMAND = "${gn}/bin/gn"; SKIA_GN_COMMAND = "${gn}/bin/gn";
LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib"; SKIA_NINJA_COMMAND = "${ninja}/bin/ninja";
preConfigure = ''
unset CC CXX
'';
# test needs a valid fontconfig file
FONTCONFIG_FILE = makeFontsConf { fontDirectories = [ ]; };
nativeBuildInputs = [ nativeBuildInputs = [
pkg-config
makeWrapper makeWrapper
python2 # skia-bindings pkg-config
python3 # rust-xcb python3 # skia
llvmPackages.clang # skia
removeReferencesTo removeReferencesTo
] ++ lib.optionals stdenv.isDarwin [ xcbuild ]; ] ++ lib.optionals stdenv.isDarwin [ xcbuild ];
@ -91,21 +74,12 @@ rustPlatform.buildRustPackage rec {
doCheck = false; doCheck = false;
buildInputs = [ buildInputs = [
openssl
SDL2 SDL2
(fontconfig.overrideAttrs (old: { fontconfig
propagatedBuildInputs = [ rustPlatform.bindgenHook
# skia is not compatible with freetype 2.11.0 ] ++ lib.optionals stdenv.isDarwin [
(freetype.overrideAttrs (old: rec { darwin.apple_sdk.frameworks.AppKit
version = "2.10.4";
src = fetchurl {
url = "mirror://savannah/${old.pname}/${old.pname}-${version}.tar.xz";
sha256 = "112pyy215chg7f7fmp2l9374chhhpihbh8wgpj5nj6avj3c59a46";
};
}))
]; ];
}))
] ++ lib.optionals stdenv.isDarwin [ Security ApplicationServices Carbon AppKit ];
postFixup = let postFixup = let
libPath = lib.makeLibraryPath ([ libPath = lib.makeLibraryPath ([
@ -138,10 +112,9 @@ rustPlatform.buildRustPackage rec {
meta = with lib; { meta = with lib; {
description = "This is a simple graphical user interface for Neovim."; description = "This is a simple graphical user interface for Neovim.";
homepage = "https://github.com/Kethku/neovide"; homepage = "https://github.com/neovide/neovide";
changelog = "https://github.com/neovide/neovide/releases/tag/${version}";
license = with licenses; [ mit ]; license = with licenses; [ mit ];
maintainers = with maintainers; [ ck3d ]; maintainers = with maintainers; [ ck3d ];
platforms = platforms.all;
mainProgram = "neovide";
}; };
} }

View File

@ -48,13 +48,13 @@
mkDerivation rec { mkDerivation rec {
pname = "freecad"; pname = "freecad";
version = "0.20.1"; version = "0.20.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "FreeCAD"; owner = "FreeCAD";
repo = "FreeCAD"; repo = "FreeCAD";
rev = version; rev = version;
hash = "sha256-r2lhFv4ReASteoVxwwiW9TdSckpaju6QE8UegxeY4rE="; hash = "sha256-v8hanhy0UE0o+XqqIH3ZUtVom3q0KGELcfXFRSDr0TA=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View File

@ -30,7 +30,7 @@ rustPlatform.buildRustPackage rec {
Security Security
]; ];
dontUseCargoParallelTests = true; useNextest = true;
meta = with lib; { meta = with lib; {
description = "CLI tool to input and store your ideas without leaving the terminal"; description = "CLI tool to input and store your ideas without leaving the terminal";

View File

@ -51,7 +51,8 @@ let
runHook preInstall runHook preInstall
mkdir -p $out/bin mkdir -p $out/bin
makeWrapper ${electron_18}/bin/electron $out/bin/obsidian \ makeWrapper ${electron_18}/bin/electron $out/bin/obsidian \
--add-flags $out/share/obsidian/app.asar --add-flags $out/share/obsidian/app.asar \
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform=wayland}}"
install -m 444 -D resources/app.asar $out/share/obsidian/app.asar install -m 444 -D resources/app.asar $out/share/obsidian/app.asar
install -m 444 -D resources/obsidian.asar $out/share/obsidian/obsidian.asar install -m 444 -D resources/obsidian.asar $out/share/obsidian/obsidian.asar
install -m 444 -D "${desktopItem}/share/applications/"* \ install -m 444 -D "${desktopItem}/share/applications/"* \

View File

@ -19,13 +19,13 @@
mkDerivation rec { mkDerivation rec {
pname = "organicmaps"; pname = "organicmaps";
version = "2022.11.02-2"; version = "2022.11.24-3";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "organicmaps"; owner = "organicmaps";
repo = "organicmaps"; repo = "organicmaps";
rev = "${version}-android"; rev = "${version}-android";
sha256 = "sha256-E/lJDw1QMPT0QcaTOxEyJL4hmEFkq21vQkgZbssszJg="; sha256 = "sha256-4RW7/sCtOXxA8n0Jx4ksNGRg7r8ErujmyzbnA1pi6ng=";
fetchSubmodules = true; fetchSubmodules = true;
}; };

View File

@ -40,8 +40,7 @@ rustPlatform.buildRustPackage rec {
postInstall = "make PREFIX=$out copy-data"; postInstall = "make PREFIX=$out copy-data";
# Sometimes tests fail when run in parallel useNextest = true;
dontUseCargoParallelThreads = true;
meta = with lib; { meta = with lib; {
description = "A graphical client for plain-text protocols written in Rust with GTK. It currently supports the Gemini, Gopher and Finger protocols"; description = "A graphical client for plain-text protocols written in Rust with GTK. It currently supports the Gemini, Gopher and Finger protocols";

View File

@ -616,11 +616,11 @@
"vendorHash": "sha256-cLp8w0UcO9Hork/GTLOGCcSvfaYEIKl5so3/0ELm79Y=" "vendorHash": "sha256-cLp8w0UcO9Hork/GTLOGCcSvfaYEIKl5so3/0ELm79Y="
}, },
"keycloak": { "keycloak": {
"hash": "sha256-1yV3w3hhZf113XMxvpRvr3ADaRcuCl7BCIa5SIZPcCs=", "hash": "sha256-DW80CkmeQKJ4tEBrLsdks+mXweL8K1pVu3yQKGAvZOs=",
"homepage": "https://registry.terraform.io/providers/mrparkers/keycloak", "homepage": "https://registry.terraform.io/providers/mrparkers/keycloak",
"owner": "mrparkers", "owner": "mrparkers",
"repo": "terraform-provider-keycloak", "repo": "terraform-provider-keycloak",
"rev": "v4.0.1", "rev": "v4.1.0",
"spdx": "MIT", "spdx": "MIT",
"vendorHash": "sha256-nDvnLEOtXkUJFY22pKogOzkWrj4qjyQbdlJ5pa/xnK8=" "vendorHash": "sha256-nDvnLEOtXkUJFY22pKogOzkWrj4qjyQbdlJ5pa/xnK8="
}, },

View File

@ -61,13 +61,13 @@
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "5.14.14"; version = "5.18.11";
pname = "feishu"; pname = "feishu";
packageHash = "2844ab12b34f"; # A hash value used in the download url packageHash = "9d89b152d581"; # A hash value used in the download url
src = fetchurl { src = fetchurl {
url = "https://sf3-cn.feishucdn.com/obj/ee-appcenter/${packageHash}/Feishu-linux_x64-${version}.deb"; url = "https://sf3-cn.feishucdn.com/obj/ee-appcenter/${packageHash}/Feishu-linux_x64-${version}.deb";
sha256 = "c0ca999edc10d8ada08c46b33b15d7db0ced264248abd3ebfdb895d8457e1bec"; hash = "sha256-93LEybYePIEbmE8mjRL95haMuBuY0xH6/8fhwF7/ctM=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View File

@ -17,6 +17,7 @@
, xorg , xorg
, mesa , mesa
, libdrm , libdrm
, libappindicator
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -55,6 +56,7 @@ stdenv.mkDerivation rec {
coreutils coreutils
openssl openssl
(lib.getLib udev) (lib.getLib udev)
libappindicator
]; ];
unpackPhase = '' unpackPhase = ''

View File

@ -1,15 +1,7 @@
{ lib, stdenv, fetchurl, jdk, bash, coreutils, substituteAll, nixosTests }: { lib, stdenv, fetchurl, jdk, bash, coreutils, substituteAll, nixosTests, jna }:
let let
version = "build01494"; version = "build01494";
jna = fetchurl {
url = "https://github.com/freenet/fred/releases/download/${version}/jna-4.5.2.jar";
sha256 = "sha256-DI63rPZyYWVteQBRkd66ujtr9d1gpDc1okVCk4Hb7P8=";
};
jna_platform = fetchurl {
url = "https://github.com/freenet/fred/releases/download/${version}/jna-platform-4.5.2.jar";
sha256 = "sha256-8dAMFn2JIcbiPGJu+fHDrgvkc8lcaP+gErx65VqH4tY=";
};
freenet_ext = fetchurl { freenet_ext = fetchurl {
url = "https://github.com/freenet/fred/releases/download/${version}/freenet-ext.jar"; url = "https://github.com/freenet/fred/releases/download/${version}/freenet-ext.jar";
sha256 = "sha256-MvKz1r7t9UE36i+aPr72dmbXafCWawjNF/19tZuk158="; sha256 = "sha256-MvKz1r7t9UE36i+aPr72dmbXafCWawjNF/19tZuk158=";
@ -38,8 +30,8 @@ let
mkdir -p $out/share/freenet mkdir -p $out/share/freenet
ln -s ${bcprov} $out/share/freenet/bcprov.jar ln -s ${bcprov} $out/share/freenet/bcprov.jar
ln -s ${freenet_ext} $out/share/freenet/freenet-ext.jar ln -s ${freenet_ext} $out/share/freenet/freenet-ext.jar
ln -s ${jna_platform} $out/share/freenet/jna_platform.jar ln -s ${jna}/share/java/jna-platform.jar $out/share/freenet/jna_platform.jar
ln -s ${jna} $out/share/freenet/jna.jar ln -s ${jna}/share/java/jna.jar $out/share/freenet/jna.jar
ln -s $src $out/share/freenet/freenet.jar ln -s $src $out/share/freenet/freenet.jar
''; '';
}; };
@ -71,5 +63,6 @@ in stdenv.mkDerivation {
license = lib.licenses.gpl2Plus; license = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [ nagy ]; maintainers = with lib.maintainers; [ nagy ];
platforms = with lib.platforms; linux; platforms = with lib.platforms; linux;
changelog = "https://github.com/freenet/fred/blob/build${version}/NEWS.md";
}; };
} }

View File

@ -0,0 +1,51 @@
{ lib
, rustPlatform
, fetchCrate
, pkg-config
, libpcap
, stdenv
, fontconfig
, libGL
, xorg
, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "sniffnet";
version = "1.0.1";
src = fetchCrate {
inherit pname version;
sha256 = "sha256-8K774j04BOEuJjnFYjaSctPwBrKYYKqjFS2+PyxJ2FM=";
};
cargoSha256 = "sha256-096i4wDdoJCICd0L2QNY+7cKHQnijK22zj4XaQNuko8=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [
libpcap
] ++ lib.optionals stdenv.isLinux [
fontconfig
libGL
xorg.libX11
xorg.libXcursor
xorg.libXi
xorg.libXrandr
] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.AppKit
];
postFixup = lib.optionalString stdenv.isLinux ''
patchelf $out/bin/sniffnet \
--add-rpath ${lib.makeLibraryPath [ libGL xorg.libX11 ]}
'';
meta = with lib; {
description = "Cross-platform application to monitor your network traffic with ease";
homepage = "https://github.com/gyulyvgc/sniffnet";
changelog = "https://github.com/gyulyvgc/sniffnet/blob/main/CHANGELOG.md";
license = with licenses; [ mit /* or */ asl20 ];
maintainers = with maintainers; [ figsoda ];
};
}

View File

@ -52,6 +52,7 @@ let
"8.15.1".sha256 = "sha256:1janvmnk3czimp0j5qmnfwx6509vhpjc2q7lcza1bc6dm6kn8n42"; "8.15.1".sha256 = "sha256:1janvmnk3czimp0j5qmnfwx6509vhpjc2q7lcza1bc6dm6kn8n42";
"8.15.2".sha256 = "sha256:0qibbvzrhsvs6w3zpkhyclndp29jnr6bs9i5skjlpp431jdjjfqd"; "8.15.2".sha256 = "sha256:0qibbvzrhsvs6w3zpkhyclndp29jnr6bs9i5skjlpp431jdjjfqd";
"8.16.0".sha256 = "sha256-3V6kL9j2rn5FHBxq1mtmWWTZS9X5cAyvtUsS6DaM+is="; "8.16.0".sha256 = "sha256-3V6kL9j2rn5FHBxq1mtmWWTZS9X5cAyvtUsS6DaM+is=";
"8.16.1".sha256 = "sha256-n7830+zfZeyYHEOGdUo57bH6bb2/SZs8zv8xJhV+iAc=";
}; };
releaseRev = v: "V${v}"; releaseRev = v: "V${v}";
fetched = import ../../../../build-support/coq/meta-fetch/default.nix fetched = import ../../../../build-support/coq/meta-fetch/default.nix

View File

@ -28,6 +28,7 @@
, rdkafka , rdkafka
, udev , udev
, libevdev , libevdev
, alsa-lib
, ... , ...
}: }:
@ -35,6 +36,11 @@ let
inherit (darwin.apple_sdk.frameworks) CoreFoundation Security; inherit (darwin.apple_sdk.frameworks) CoreFoundation Security;
in in
{ {
alsa-sys = attrs: {
nativeBuildInputs = [ pkg-config ];
buildInputs = [ alsa-lib ];
};
cairo-rs = attrs: { cairo-rs = attrs: {
buildInputs = [ cairo ]; buildInputs = [ cairo ];
}; };

View File

@ -1,38 +1,15 @@
{ lib, fetchurl, unzip }: { lib, fetchzip }:
{ crateName ? args.pname { crateName ? args.pname
, pname ? null , pname ? null
, version , version
, sha256 , ...
, ... } @ args: } @ args:
assert pname == null || pname == crateName; assert pname == null || pname == crateName;
lib.overrideDerivation (fetchurl ({ fetchzip ({
name = "${crateName}-${version}.tar.gz"; name = "${crateName}-${version}.tar.gz";
url = "https://crates.io/api/v1/crates/${crateName}/${version}/download"; url = "https://crates.io/api/v1/crates/${crateName}/${version}/download";
recursiveHash = true; extension = "tar.gz";
} // removeAttrs args [ "crateName" "pname" "version" ])
downloadToTemp = true;
postFetch =
''
export PATH=${unzip}/bin:$PATH
unpackDir="$TMPDIR/unpack"
mkdir "$unpackDir"
cd "$unpackDir"
renamed="$TMPDIR/${crateName}-${version}.tar.gz"
mv "$downloadedFile" "$renamed"
unpackFile "$renamed"
fn=$(cd "$unpackDir" && echo *)
if [ -f "$unpackDir/$fn" ]; then
mkdir $out
fi
mv "$unpackDir/$fn" "$out"
'';
} // removeAttrs args [ "crateName" "pname" "version" ]))
# Hackety-hack: we actually need unzip hooks, too
(x: {nativeBuildInputs = x.nativeBuildInputs++ [unzip];})

View File

@ -2,13 +2,13 @@
stdenvNoCC.mkDerivation rec { stdenvNoCC.mkDerivation rec {
pname = "spdx-license-list-data"; pname = "spdx-license-list-data";
version = "3.18"; version = "3.19";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "spdx"; owner = "spdx";
repo = "license-list-data"; repo = "license-list-data";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-iXuGJzURcRyiq2rVP5jabOmFByF0YuiZg4HPCM6mk3A="; hash = "sha256-qT9Q6Mntnt9lOhYmGFJlkDyAHQ0CGQpWr1rLF08FGeg=";
}; };
# List of file formats to package. # List of file formats to package.

View File

@ -34,7 +34,7 @@ buildType = if stdenv.isDarwin then
edk2 = buildStdenv.mkDerivation { edk2 = buildStdenv.mkDerivation {
pname = "edk2"; pname = "edk2";
version = "202205"; version = "202211";
patches = [ patches = [
# pass targetPrefix as an env var # pass targetPrefix as an env var
@ -50,7 +50,7 @@ edk2 = buildStdenv.mkDerivation {
repo = "edk2"; repo = "edk2";
rev = "edk2-stable${edk2.version}"; rev = "edk2-stable${edk2.version}";
fetchSubmodules = true; fetchSubmodules = true;
sha256 = "sha256-5V3gXZoePxRVL0miV/ku/HILT7d06E8UI28XRx8vZjA="; sha256 = "sha256-0jE73xPyenAcgJ1mS35oTc5cYw7jJvVYxhPdhTWpKA0=";
}; };
nativeBuildInputs = [ pythonEnv ]; nativeBuildInputs = [ pythonEnv ];

View File

@ -1,9 +1,9 @@
import ./generic.nix { import ./generic.nix {
major_version = "5"; major_version = "5";
minor_version = "0"; minor_version = "0";
patch_version = "0-beta1"; patch_version = "0-beta2";
src = fetchTarball { src = fetchTarball {
url = "https://caml.inria.fr/pub/distrib/ocaml-5.0/ocaml-5.0.0~beta1.tar.xz"; url = "https://caml.inria.fr/pub/distrib/ocaml-5.0/ocaml-5.0.0~beta2.tar.xz";
sha256 = "sha256:1kwb53ra5qbwiiyrx5da7l5mqkjf0fr3rqgkrm3wr83l25scimj4"; sha256 = "sha256:1r76a3wadidca9306wkkcxdh5l0rk93pc6xmbs46cc1jfm6pgwas";
}; };
} }

View File

@ -0,0 +1,36 @@
{ lib
, stdenv
, fetchFromGitHub
, ocamlPackages
}:
stdenv.mkDerivation rec {
pname = "rml";
version = "1.09.07";
src = fetchFromGitHub {
owner = "reactiveml";
repo = pname;
rev = "${pname}-${version}-2021-07-26";
hash = "sha256-UFqXQBeIQMSV4O439j9s06p1hh7xA98Tu79FsjK9PIY=";
};
nativeBuildInputs = with ocamlPackages; [
ocaml
];
buildInputs = with ocamlPackages; [
num
];
configureFlags = [ "--prefix" "${placeholder "out"}" ];
dontAddPrefix = true;
meta = with lib; {
description = "ReactiveML: a programming language for implementing interactive systems";
homepage = "https://rml.lri.fr";
license = with licenses; [ qpl lgpl21Plus ];
maintainers = with maintainers; [ wegank ];
};
}

View File

@ -1,66 +1,24 @@
diff --git a/Cargo.lock b/Cargo.lock diff --git a/Cargo.lock b/Cargo.lock
index 4d699f11..1eb894fc 100644 index 05e54911..3a567165 100644
--- a/Cargo.lock --- a/Cargo.lock
+++ b/Cargo.lock +++ b/Cargo.lock
@@ -875,15 +875,6 @@ version = "0.1.4" @@ -1826,6 +1826,7 @@ dependencies = [
source = "registry+https://github.com/rust-lang/crates.io-index" "futures",
checksum = "28988d872ab76095a6e6ac88d99b54fd267702734fd7ffe610ca27f533ddb95a"
-[[package]]
-name = "openssl-src"
-version = "300.0.2+3.0.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "14a760a11390b1a5daf72074d4f6ff1a6e772534ae191f999f57e9ee8146d1fb"
-dependencies = [
- "cc",
-]
-
[[package]]
name = "openssl-sys"
version = "0.9.70"
@@ -893,7 +884,6 @@ dependencies = [
"autocfg 1.0.1",
"cc",
"libc",
- "openssl-src",
"pkg-config",
"vcpkg",
]
@@ -1432,6 +1422,7 @@ dependencies = [
"divrem",
"fxhash", "fxhash",
"git-version", "git-version",
+ "gmp-mpfr-sys", + "gmp-mpfr-sys",
"hostname", "hostname",
"indexmap", "hyper",
"instructions-template", "hyper-tls",
diff --git a/Cargo.toml b/Cargo.toml diff --git a/Cargo.toml b/Cargo.toml
index 8e81a947..d21a8d49 100644 index 6e42de23..a50e3d47 100644
--- a/Cargo.toml --- a/Cargo.toml
+++ b/Cargo.toml +++ b/Cargo.toml
@@ -55,7 +55,7 @@ ring = "0.16.13" @@ -63,6 +63,7 @@ hyper = { version = "0.14", features = ["full"] }
ripemd160 = "0.8.0" hyper-tls = "0.5.0"
sha3 = "0.8.2" tokio = { version = "1", features = ["full"] }
blake2 = "0.8.1" futures = "0.3"
-openssl = { version = "0.10.29", features = ["vendored"] } +gmp-mpfr-sys = { version = "1.4.10", features = ["use-system-libs"] }
+openssl = { version = "0.10.29" }
native-tls = "0.2.4"
chrono = "0.4.11"
select = "0.4.3"
@@ -66,10 +66,14 @@ sodiumoxide = "0.2.6"
static_assertions = "1.1.0"
slice-deque = "0.3.0"
+[dependencies.gmp-mpfr-sys]
+version = "1.4"
+features = ["use-system-libs"]
+
[dev-dependencies] [dev-dependencies]
assert_cmd = "1.0.3" assert_cmd = "1.0.3"
predicates-core = "1.0.2"
serial_test = "0.5.1"
[profile.release]
-debug = true
\ No newline at end of file
+debug = true

View File

@ -1,7 +1,6 @@
{ stdenv { stdenv
, lib , lib
, fetchFromGitHub , fetchFromGitHub
, fetchpatch
, rustPlatform , rustPlatform
, rustfmt , rustfmt
, gmp , gmp
@ -13,30 +12,21 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "scryer-prolog"; pname = "scryer-prolog";
version = "0.9.0"; version = "0.9.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "mthom"; owner = "mthom";
repo = "scryer-prolog"; repo = "scryer-prolog";
rev = "v${version}"; rev = "v${version}";
sha256 = "3NHpEg6QaUaqbBCq8uM5hFcqS24q4XrOnKjMmn8Z1Dg="; sha256 = "bDLVOXX9nv6Guu5czRFkviJf7dBiaqt5O8SLUJlcBZo=";
}; };
cargoPatches = [ cargoPatches = [
# Use system openssl, gmp, mpc and mpfr. # Use system openssl, gmp, mpc and mpfr.
./cargo.patch ./cargo.patch
./fix-tests.patch
# Avoid testing failing with "couldn't save history"
(fetchpatch {
name = "fix-tests-1";
url = "https://patch-diff.githubusercontent.com/raw/mthom/scryer-prolog/pull/1342.patch";
sha256 = "2N0AOkFuf+H/aUn2QTXgmqjmvShTxHxB6kNuNdNoVRI=";
})
]; ];
cargoSha256 = "nqAHVXAmTW9mdE2L2yhpOTz16JbYgQUmCgiFq9pBzUU="; cargoSha256 = "A6HtvxGTjJliDMUSGkQKB13FRyfBU4EPvrlZ97ic0Ic=";
nativeBuildInputs = [ pkg-config rustfmt]; nativeBuildInputs = [ pkg-config rustfmt];
buildInputs = [ openssl gmp libmpc mpfr ]; buildInputs = [ openssl gmp libmpc mpfr ];

View File

@ -1,29 +0,0 @@
diff --git a/tests/scryer/src_tests.rs b/tests/scryer/src_tests.rs
index b0b9efb5..8fddd842 100644
--- a/tests/scryer/src_tests.rs
+++ b/tests/scryer/src_tests.rs
@@ -46,24 +46,6 @@ fn rules() {
load_module_test("src/tests/rules.pl", "");
}
-#[serial]
-#[test]
-fn setup_call_cleanup_load() {
- load_module_test(
- "src/tests/setup_call_cleanup.pl",
- "1+21+31+2>_17737+_177381+_158071+2>41+2>_177381+2>31+2>31+2>4ba"
- );
-}
-
-#[test]
-fn setup_call_cleanup_process() {
- run_top_level_test_with_args(
- &["src/tests/setup_call_cleanup.pl", "-f", "-g", "halt"],
- "",
- "1+21+31+2>_19590+_195911+_176601+2>41+2>_195911+2>31+2>31+2>4ba"
- );
-}
-
#[serial]
#[test]
fn clpz_load() {

View File

@ -39,7 +39,7 @@ mkCoqDerivation {
preConfigure = '' preConfigure = ''
patchShebangs util patchShebangs util
substituteInPlace Makefile \ substituteInPlace Makefile \
--replace 'COQVERSION= ' 'COQVERSION= 8.16.0 or-else 8.15.2 or-else 8.15.1 or-else '\ --replace 'COQVERSION= ' 'COQVERSION= 8.16.1 or-else 8.16.0 or-else 8.15.2 or-else 8.15.1 or-else '\
--replace 'FLOYD_FILES=' 'FLOYD_FILES= ${toString extra_floyd_files}' --replace 'FLOYD_FILES=' 'FLOYD_FILES= ${toString extra_floyd_files}'
''; '';

View File

@ -145,6 +145,11 @@ compcert.overrideAttrs (o:
url = "https://github.com/AbsInt/CompCert/commit/34be08a23d18d56f2dde24fd24b6dbe3bcb01ec3.patch"; url = "https://github.com/AbsInt/CompCert/commit/34be08a23d18d56f2dde24fd24b6dbe3bcb01ec3.patch";
sha256 = "sha256-a5YnftGVadVypEqrOYRRxI7YtGOEWyKnO4GqakFhvzI="; sha256 = "sha256-a5YnftGVadVypEqrOYRRxI7YtGOEWyKnO4GqakFhvzI=";
}) })
# Support for Coq 8.16.1
(fetchpatch {
url = "https://github.com/AbsInt/CompCert/commit/35531503b3493cb9b0ec8a8585e84928c85b4af9.patch";
hash = "sha256-DvtYi/eiPUe8tA0EFTcCjJA0JjtVKceUsX4ZDM0pWkE=";
})
]; ];
} }
] []; ] [];

View File

@ -2,13 +2,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "luau"; pname = "luau";
version = "0.554"; version = "0.555";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Roblox"; owner = "Roblox";
repo = "luau"; repo = "luau";
rev = version; rev = version;
sha256 = "sha256-BgCeLvMwMPsXIopSO2OH50SPqwZ4Ehqmog+3DydJ3vU="; sha256 = "sha256-p3BTtjTmg8sS0gOugPCO1oqqboppcXa0wLHmRqmf3AA=";
}; };
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];

View File

@ -0,0 +1,37 @@
{ stdenv, lib, fetchFromGitHub, ant, jdk8 }:
stdenv.mkDerivation rec {
pname = "jna";
version = "4.5.2";
src = fetchFromGitHub {
owner = "java-native-access";
repo = pname;
rev = version;
hash = "sha256-FJXYej49soHPa+kAUeLZYzbw+NnFoag2LdKrTihPWvE=";
};
nativeBuildInputs = [ ant jdk8 ];
buildPhase = ''
runHook preBuild
rm -r dist # remove prebuilt files
ant dist
runHook postBuild
'';
installPhase = ''
runHook preInstall
install -Dm444 -t $out/share/java dist/jna{,-platform}.jar
runHook postInstall
'';
meta = with lib; {
inherit (src.meta) homepage;
description = "Java Native Access";
license = with licenses; [ lgpl21 asl20 ];
maintainers = with maintainers; [ nagy ];
platforms = platforms.linux;
changelog = "https://github.com/java-native-access/jna/blob/${version}/CHANGES.md";
};
}

View File

@ -28,9 +28,9 @@ stdenv.mkDerivation rec {
}) })
]; ];
configureFlags =
# see the comment on stripPrefix # see the comment on stripPrefix
configureFlags = [] lib.optional stripPrefix "--with-jemalloc-prefix="
++ lib.optional stripPrefix "--with-jemalloc-prefix="
++ lib.optional disableInitExecTls "--disable-initial-exec-tls" ++ lib.optional disableInitExecTls "--disable-initial-exec-tls"
# jemalloc is unable to correctly detect transparent hugepage support on # jemalloc is unable to correctly detect transparent hugepage support on
# ARM (https://github.com/jemalloc/jemalloc/issues/526), and the default # ARM (https://github.com/jemalloc/jemalloc/issues/526), and the default
@ -54,7 +54,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true; enableParallelBuilding = true;
meta = with lib; { meta = with lib; {
homepage = "http://jemalloc.net"; homepage = "https://jemalloc.net/";
description = "General purpose malloc(3) implementation"; description = "General purpose malloc(3) implementation";
longDescription = '' longDescription = ''
malloc(3)-compatible memory allocator that emphasizes fragmentation malloc(3)-compatible memory allocator that emphasizes fragmentation

View File

@ -23,6 +23,7 @@
, gtk3 , gtk3
, dconf , dconf
, libglvnd , libglvnd
, darwin
, buildPackages , buildPackages
# options # options
@ -43,7 +44,7 @@ let
addPackages = self: with self; addPackages = self: with self;
let let
callPackage = self.newScope { inherit qtModule srcs; }; callPackage = self.newScope ({ inherit qtModule stdenv srcs; });
in in
{ {
@ -53,9 +54,16 @@ let
withGtk3 = true; withGtk3 = true;
inherit (srcs.qtbase) src version; inherit (srcs.qtbase) src version;
inherit bison cups harfbuzz libGL dconf gtk3 developerBuild cmake; inherit bison cups harfbuzz libGL dconf gtk3 developerBuild cmake;
inherit (darwin.apple_sdk_11_0.frameworks) AGL AVFoundation AppKit GSS MetalKit;
patches = [ patches = [
./patches/qtbase-qmake-pkg-config.patch ./patches/qtbase-qmake-pkg-config.patch
./patches/qtbase-tzdir.patch ./patches/qtbase-tzdir.patch
# Remove symlink check causing build to bail out and fail.
# https://gitlab.kitware.com/cmake/cmake/-/issues/23251
(fetchpatch {
url = "https://github.com/Homebrew/formula-patches/raw/c363f0edf9e90598d54bc3f4f1bacf95abbda282/qt/qt_internal_check_if_path_has_symlinks.patch";
sha256 = "sha256-Gv2L8ymZSbJxcmUijKlT2NnkIB3bVH9D7YSsDX2noTU=";
})
]; ];
}; };
env = callPackage ./qt-env.nix {}; env = callPackage ./qt-env.nix {};
@ -90,7 +98,9 @@ let
qt3d = callPackage ./modules/qt3d.nix { }; qt3d = callPackage ./modules/qt3d.nix { };
qt5compat = callPackage ./modules/qt5compat.nix { }; qt5compat = callPackage ./modules/qt5compat.nix { };
qtcharts = callPackage ./modules/qtcharts.nix { }; qtcharts = callPackage ./modules/qtcharts.nix { };
qtconnectivity = callPackage ./modules/qtconnectivity.nix { }; qtconnectivity = callPackage ./modules/qtconnectivity.nix {
inherit (darwin.apple_sdk_11_0.frameworks) PCSC;
};
qtdatavis3d = callPackage ./modules/qtdatavis3d.nix { }; qtdatavis3d = callPackage ./modules/qtdatavis3d.nix { };
qtdeclarative = callPackage ./modules/qtdeclarative.nix { }; qtdeclarative = callPackage ./modules/qtdeclarative.nix { };
qtdoc = callPackage ./modules/qtdoc.nix { }; qtdoc = callPackage ./modules/qtdoc.nix { };
@ -100,6 +110,7 @@ let
qtlottie = callPackage ./modules/qtlottie.nix { }; qtlottie = callPackage ./modules/qtlottie.nix { };
qtmultimedia = callPackage ./modules/qtmultimedia.nix { qtmultimedia = callPackage ./modules/qtmultimedia.nix {
inherit gstreamer gst-plugins-base gst-plugins-good gst-libav gst-vaapi; inherit gstreamer gst-plugins-base gst-plugins-good gst-libav gst-vaapi;
inherit (darwin.apple_sdk_11_0.frameworks) VideoToolbox;
}; };
qtnetworkauth = callPackage ./modules/qtnetworkauth.nix { }; qtnetworkauth = callPackage ./modules/qtnetworkauth.nix { };
qtpositioning = callPackage ./modules/qtpositioning.nix { }; qtpositioning = callPackage ./modules/qtpositioning.nix { };
@ -107,7 +118,9 @@ let
qtserialbus = callPackage ./modules/qtserialbus.nix { }; qtserialbus = callPackage ./modules/qtserialbus.nix { };
qtserialport = callPackage ./modules/qtserialport.nix { }; qtserialport = callPackage ./modules/qtserialport.nix { };
qtshadertools = callPackage ./modules/qtshadertools.nix { }; qtshadertools = callPackage ./modules/qtshadertools.nix { };
qtspeech = callPackage ./modules/qtspeech.nix { }; qtspeech = callPackage ./modules/qtspeech.nix {
inherit (darwin.apple_sdk_11_0.frameworks) Cocoa;
};
qtquick3d = callPackage ./modules/qtquick3d.nix { }; qtquick3d = callPackage ./modules/qtquick3d.nix { };
qtquick3dphysics = callPackage ./modules/qtquick3dphysics.nix { }; qtquick3dphysics = callPackage ./modules/qtquick3dphysics.nix { };
qtquicktimeline = callPackage ./modules/qtquicktimeline.nix { }; qtquicktimeline = callPackage ./modules/qtquicktimeline.nix { };
@ -121,7 +134,9 @@ let
qtwebchannel = callPackage ./modules/qtwebchannel.nix { }; qtwebchannel = callPackage ./modules/qtwebchannel.nix { };
qtwebengine = callPackage ./modules/qtwebengine.nix { }; qtwebengine = callPackage ./modules/qtwebengine.nix { };
qtwebsockets = callPackage ./modules/qtwebsockets.nix { }; qtwebsockets = callPackage ./modules/qtwebsockets.nix { };
qtwebview = callPackage ./modules/qtwebview.nix { }; qtwebview = callPackage ./modules/qtwebview.nix {
inherit (darwin.apple_sdk_11_0.frameworks) WebKit;
};
wrapQtAppsHook = makeSetupHook { wrapQtAppsHook = makeSetupHook {
deps = [ buildPackages.makeWrapper ]; deps = [ buildPackages.makeWrapper ];

View File

@ -71,6 +71,13 @@
, at-spi2-core , at-spi2-core
, unixODBC , unixODBC
, unixODBCDrivers , unixODBCDrivers
# darwin
, xcbuild
, AGL
, AVFoundation
, AppKit
, GSS
, MetalKit
# optional dependencies # optional dependencies
, cups , cups
, libmysqlclient , libmysqlclient
@ -79,7 +86,7 @@
, dconf , dconf
, gtk3 , gtk3
# options # options
, libGLSupported ? true , libGLSupported ? stdenv.isLinux
, libGL , libGL
, debug ? false , debug ? false
, developerBuild ? false , developerBuild ? false
@ -111,13 +118,20 @@ stdenv.mkDerivation rec {
pcre2 pcre2
pcre pcre
libproxy libproxy
xlibsWrapper
zstd zstd
double-conversion double-conversion
util-linux
systemd
libb2 libb2
md4c md4c
dbus
glib
# unixODBC drivers
unixODBCDrivers.psql
unixODBCDrivers.sqlite
unixODBCDrivers.mariadb
] ++ lib.optionals stdenv.isLinux [
xlibsWrapper
util-linux
systemd
mtdev mtdev
lksctp-tools lksctp-tools
libselinux libselinux
@ -129,8 +143,6 @@ stdenv.mkDerivation rec {
libdrm libdrm
libdatrie libdatrie
valgrind valgrind
dbus
glib
udev udev
# Text rendering # Text rendering
fontconfig fontconfig
@ -152,16 +164,21 @@ stdenv.mkDerivation rec {
xorg.libXtst xorg.libXtst
xorg.xcbutilcursor xorg.xcbutilcursor
libepoxy libepoxy
] ++ (with unixODBCDrivers; [ ] ++ lib.optionals stdenv.isDarwin [
psql AGL
sqlite AVFoundation
mariadb AppKit
]) ++ lib.optional libGLSupported libGL; GSS
MetalKit
] ++ lib.optional libGLSupported libGL;
buildInputs = [ buildInputs = [
python3 python3
at-spi2-core at-spi2-core
] ++ lib.optionals (!stdenv.isDarwin) [
libinput libinput
] ++ lib.optionals (stdenv.isDarwin && stdenv.isx86_64) [
AppKit
] ]
++ lib.optional withGtk3 gtk3 ++ lib.optional withGtk3 gtk3
++ lib.optional developerBuild gdb ++ lib.optional developerBuild gdb
@ -180,6 +197,8 @@ stdenv.mkDerivation rec {
# https://bugreports.qt.io/browse/QTBUG-97568 # https://bugreports.qt.io/browse/QTBUG-97568
postPatch = '' postPatch = ''
substituteInPlace src/corelib/CMakeLists.txt --replace /bin/ls ${coreutils}/bin/ls substituteInPlace src/corelib/CMakeLists.txt --replace /bin/ls ${coreutils}/bin/ls
'' + lib.optionalString stdenv.isDarwin ''
substituteInPlace cmake/QtAutoDetect.cmake --replace "/usr/bin/xcrun" "${xcbuild}/bin/xcrun"
''; '';
fix_qt_builtin_paths = ../hooks/fix-qt-builtin-paths.sh; fix_qt_builtin_paths = ../hooks/fix-qt-builtin-paths.sh;
@ -197,14 +216,23 @@ stdenv.mkDerivation rec {
cmakeFlags = [ cmakeFlags = [
"-DINSTALL_PLUGINSDIR=${qtPluginPrefix}" "-DINSTALL_PLUGINSDIR=${qtPluginPrefix}"
"-DINSTALL_QMLDIR=${qtQmlPrefix}" "-DINSTALL_QMLDIR=${qtQmlPrefix}"
"-DQT_FEATURE_journald=ON"
"-DQT_FEATURE_sctp=ON"
"-DQT_FEATURE_libproxy=ON" "-DQT_FEATURE_libproxy=ON"
"-DQT_FEATURE_system_sqlite=ON" "-DQT_FEATURE_system_sqlite=ON"
"-DQT_FEATURE_vulkan=ON"
"-DQT_FEATURE_openssl_linked=ON" "-DQT_FEATURE_openssl_linked=ON"
] ++ lib.optionals (!stdenv.isDarwin) [
"-DQT_FEATURE_sctp=ON"
"-DQT_FEATURE_journald=ON"
"-DQT_FEATURE_vulkan=ON"
] ++ lib.optionals stdenv.isDarwin [
# build as a set of dynamic libraries
"-DFEATURE_framework=OFF"
]; ];
NIX_LDFLAGS = toString (lib.optionals stdenv.isDarwin [
# Undefined symbols for architecture arm64: "___gss_c_nt_hostbased_service_oid_desc"
"-framework GSS"
]);
outputs = [ "out" "dev" ]; outputs = [ "out" "dev" ];
postInstall = '' postInstall = ''
@ -259,6 +287,6 @@ stdenv.mkDerivation rec {
description = "A cross-platform application framework for C++"; description = "A cross-platform application framework for C++";
license = with licenses; [ fdl13Plus gpl2Plus lgpl21Plus lgpl3Plus ]; license = with licenses; [ fdl13Plus gpl2Plus lgpl21Plus lgpl3Plus ];
maintainers = with maintainers; [ milahu nickcao LunNova ]; maintainers = with maintainers; [ milahu nickcao LunNova ];
platforms = platforms.linux; platforms = platforms.unix;
}; };
} }

View File

@ -5,11 +5,13 @@
, qtdeclarative , qtdeclarative
, bluez , bluez
, pkg-config , pkg-config
, PCSC
}: }:
qtModule { qtModule {
pname = "qtconnectivity"; pname = "qtconnectivity";
qtInputs = [ qtbase qtdeclarative ]; qtInputs = [ qtbase qtdeclarative ];
buildInputs = [ bluez ];
nativeBuildInputs = [ pkg-config ]; nativeBuildInputs = [ pkg-config ];
buildInputs = lib.optionals stdenv.isLinux [ bluez ];
propagatedBuildInputs = lib.optionals stdenv.isDarwin [ PCSC ];
} }

View File

@ -17,12 +17,21 @@
, elfutils , elfutils
, libunwind , libunwind
, orc , orc
, VideoToolbox
}: }:
qtModule { qtModule {
pname = "qtmultimedia"; pname = "qtmultimedia";
qtInputs = [ qtbase qtdeclarative qtsvg qtshadertools ]; qtInputs = [ qtbase qtdeclarative qtsvg qtshadertools ];
nativeBuildInputs = [ pkg-config ]; nativeBuildInputs = [ pkg-config ];
buildInputs = [ libpulseaudio elfutils libunwind alsa-lib wayland orc ]; buildInputs = [ libunwind orc ]
propagatedBuildInputs = [ gstreamer gst-plugins-base gst-plugins-good gst-libav gst-vaapi ]; ++ lib.optionals stdenv.isLinux [ libpulseaudio elfutils alsa-lib wayland ];
propagatedBuildInputs = [ gstreamer gst-plugins-base gst-plugins-good gst-libav ]
++ lib.optionals stdenv.isLinux [ gst-vaapi ]
++ lib.optionals stdenv.isDarwin [ VideoToolbox ];
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin
"-include AudioToolbox/AudioToolbox.h";
NIX_LDFLAGS = lib.optionalString stdenv.isDarwin
"-framework AudioToolbox";
} }

View File

@ -1,4 +1,6 @@
{ qtModule { qtModule
, lib
, stdenv
, qtbase , qtbase
, qtquick3d , qtquick3d
}: }:
@ -6,4 +8,6 @@
qtModule { qtModule {
pname = "qtquick3dphysics"; pname = "qtquick3dphysics";
qtInputs = [ qtbase qtquick3d ]; qtInputs = [ qtbase qtquick3d ];
NIX_CFLAGS_COMPILE = lib.optionalString (stdenv.isDarwin && stdenv.isx86_64)
"-faligned-allocation";
} }

View File

@ -10,5 +10,5 @@ qtModule {
pname = "qtserialport"; pname = "qtserialport";
qtInputs = [ qtbase ]; qtInputs = [ qtbase ];
nativeBuildInputs = [ pkg-config ]; nativeBuildInputs = [ pkg-config ];
propagatedBuildInputs = [ udev ]; propagatedBuildInputs = lib.optionals stdenv.isLinux [ udev ];
} }

View File

@ -1,15 +1,19 @@
{ qtModule { qtModule
, lib
, stdenv
, qtbase , qtbase
, qtmultimedia , qtmultimedia
, pkg-config , pkg-config
, flite , flite
, alsa-lib , alsa-lib
, speechd , speechd
, Cocoa
}: }:
qtModule { qtModule {
pname = "qtspeech"; pname = "qtspeech";
qtInputs = [ qtbase qtmultimedia ]; qtInputs = [ qtbase qtmultimedia ];
nativeBuildInputs = [ pkg-config ]; nativeBuildInputs = [ pkg-config ];
buildInputs = [ flite alsa-lib speechd ]; buildInputs = lib.optionals stdenv.isLinux [ flite alsa-lib speechd ];
propagatedBuildInputs = lib.optionals stdenv.isDarwin [ Cocoa ];
} }

View File

@ -3,12 +3,14 @@
, lib , lib
, qtbase , qtbase
, qtdeclarative , qtdeclarative
, cups
, substituteAll , substituteAll
}: }:
qtModule { qtModule {
pname = "qttools"; pname = "qttools";
qtInputs = [ qtbase qtdeclarative ]; qtInputs = [ qtbase qtdeclarative ];
propagatedBuildInputs = lib.optionals stdenv.isDarwin [ cups ];
patches = [ patches = [
../patches/qttools-paths.patch ../patches/qttools-paths.patch
]; ];

View File

@ -3,9 +3,12 @@
, qtModule , qtModule
, qtdeclarative , qtdeclarative
, qtwebengine , qtwebengine
, WebKit
}: }:
qtModule { qtModule {
pname = "qtwebview"; pname = "qtwebview";
qtInputs = [ qtdeclarative qtwebengine ]; qtInputs = [ qtdeclarative ]
++ lib.optionals (!stdenv.isDarwin) [ qtwebengine ];
propagatedBuildInputs = lib.optionals stdenv.isDarwin [ WebKit ];
} }

View File

@ -83,6 +83,6 @@ stdenv.mkDerivation (args // {
description = "A cross-platform application framework for C++"; description = "A cross-platform application framework for C++";
license = with licenses; [ fdl13Plus gpl2Plus lgpl21Plus lgpl3Plus ]; license = with licenses; [ fdl13Plus gpl2Plus lgpl21Plus lgpl3Plus ];
maintainers = with maintainers; [ milahu nickcao ]; maintainers = with maintainers; [ milahu nickcao ];
platforms = platforms.linux; platforms = platforms.unix;
} // (args.meta or { }); } // (args.meta or { });
}) })

View File

@ -23,9 +23,16 @@ stdenv.mkDerivation rec {
'' + lib.optionalString stdenv.isDarwin '' '' + lib.optionalString stdenv.isDarwin ''
# Fix darwin build # Fix darwin build
substituteInPlace pbfplugin.pro \ substituteInPlace pbfplugin.pro \
--replace '$$PROTOBUF/include' '${protobuf}/include' \
--replace '$$PROTOBUF/lib/libprotobuf-lite.a' '${protobuf}/lib/libprotobuf-lite.dylib' --replace '$$PROTOBUF/lib/libprotobuf-lite.a' '${protobuf}/lib/libprotobuf-lite.dylib'
''; '';
# error: 'path' is unavailable: introduced in macOS 10.15
qmakeFlags = lib.optionals stdenv.isDarwin [
"CONFIG+=c++17"
"QMAKE_MACOSX_DEPLOYMENT_TARGET=10.15"
];
meta = with lib; { meta = with lib; {
description = "Qt image plugin for displaying Mapbox vector tiles"; description = "Qt image plugin for displaying Mapbox vector tiles";
longDescription = '' longDescription = ''

View File

@ -39,7 +39,7 @@ in stdenv.mkDerivation rec {
src = ./fix-paths.patch; src = ./fix-paths.patch;
utillinux = util-linux; utillinux = util-linux;
}) })
] ++ lib.optionals espeak.mbrolaSupport [ ] ++ lib.optionals (withEspeak && espeak.mbrolaSupport) [
# Replace FHS paths. # Replace FHS paths.
(substituteAll { (substituteAll {
src = ./fix-mbrola-paths.patch; src = ./fix-mbrola-paths.patch;

View File

@ -20,11 +20,10 @@
}; };
meta = with lib; { meta = with lib; {
broken = stdenv.isDarwin;
description = "Official PostgreSQL ODBC Driver"; description = "Official PostgreSQL ODBC Driver";
homepage = "https://odbc.postgresql.org/"; homepage = "https://odbc.postgresql.org/";
license = licenses.lgpl2; license = licenses.lgpl2;
platforms = platforms.linux; platforms = platforms.unix;
}; };
}; };
@ -47,7 +46,9 @@
preConfigure = '' preConfigure = ''
# we don't want to build a .pkg # we don't want to build a .pkg
sed -i 's/ADD_SUBDIRECTORY(osxinstall)//g' CMakeLists.txt substituteInPlace CMakeLists.txt \
--replace "IF(APPLE)" "IF(0)" \
--replace "CMAKE_SYSTEM_NAME MATCHES AIX" "APPLE"
''; '';
cmakeFlags = [ cmakeFlags = [
@ -62,7 +63,6 @@
}; };
meta = with lib; { meta = with lib; {
broken = stdenv.isDarwin;
description = "MariaDB ODBC database driver"; description = "MariaDB ODBC database driver";
homepage = "https://downloads.mariadb.org/connector-odbc/"; homepage = "https://downloads.mariadb.org/connector-odbc/";
license = licenses.gpl2; license = licenses.gpl2;
@ -126,11 +126,10 @@
}; };
meta = with lib; { meta = with lib; {
broken = stdenv.isDarwin;
description = "ODBC driver for SQLite"; description = "ODBC driver for SQLite";
homepage = "http://www.ch-werner.de/sqliteodbc"; homepage = "http://www.ch-werner.de/sqliteodbc";
license = licenses.bsd2; license = licenses.bsd2;
platforms = platforms.linux; platforms = platforms.unix;
maintainers = with maintainers; [ vlstill ]; maintainers = with maintainers; [ vlstill ];
}; };
}; };

View File

@ -2,11 +2,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "xerces-c"; pname = "xerces-c";
version = "3.2.3"; version = "3.2.4";
src = fetchurl { src = fetchurl {
url = "mirror://apache/xerces/c/3/sources/${pname}-${version}.tar.gz"; url = "mirror://apache/xerces/c/3/sources/${pname}-${version}.tar.gz";
sha256 = "0zicsydx6s7carwr7q0csgkg1xncibd6lfp5chg2v2gvn54zr5pv"; sha256 = "sha256-PY7Bx/lOOP7g5Mpa0eHZ2yPL86ELumJva0r6Le2v5as=";
}; };
# Disable SSE2 extensions on platforms for which they are not enabled by default # Disable SSE2 extensions on platforms for which they are not enabled by default

View File

@ -1,12 +1,12 @@
{ lib { lib
, stdenv
, pkgsBuildHost , pkgsBuildHost
, system
, ... , ...
}: }:
let let
pkgs = import ../../../.. { pkgs = import ../../../.. {
inherit system; inherit (stdenv.hostPlatform) system;
# Allow python27 with known security issues only for resholve, # Allow python27 with known security issues only for resholve,
# see issue #201859 for the reasoning # see issue #201859 for the reasoning
# In resholve case this should not be a security issue, # In resholve case this should not be a security issue,

View File

@ -1,6 +1,5 @@
[ [
"@angular/cli" "@angular/cli"
, "@ansible/ansible-language-server"
, "@antfu/ni" , "@antfu/ni"
, "@antora/cli" , "@antora/cli"
, "@antora/site-generator-default" , "@antora/site-generator-default"

File diff suppressed because it is too large Load Diff

View File

@ -1,31 +1,30 @@
{ stdenv, lib, fetchFromGitHub, ocaml, findlib, ocamlbuild, qtest, ounit }: { lib, buildDunePackage, fetchFromGitHub, ocaml
, dune-configurator
, seq
, qcheck, ounit2
}:
stdenv.mkDerivation rec { buildDunePackage rec {
version = "0.5"; version = "1.0";
pname = "ocaml${ocaml.version}-gen"; pname = "gen";
minimalOCamlVersion = "4.03";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "c-cube"; owner = "c-cube";
repo = "gen"; repo = "gen";
rev = version; rev = "v${version}";
sha256 = "14b8vg914nb0yp1hgxzm29bg692m0gqncjj43b599s98s1cwl92h"; hash = "sha256-YWoVcl2TQoMIgU1LoKL16ia31zJjwAMwuphtSXnhtvw=";
}; };
nativeBuildInputs = [ ocaml findlib ocamlbuild ]; buildInputs = [ dune-configurator ];
buildInputs = lib.optionals doCheck [ qtest ounit ]; propagatedBuildInputs = [ seq ];
strictDeps = true; checkInputs = [ qcheck ounit2 ];
configureFlags = lib.optional doCheck "--enable-tests";
doCheck = lib.versionAtLeast ocaml.version "4.08"; doCheck = lib.versionAtLeast ocaml.version "4.08";
checkTarget = "test";
createFindlibDestdir = true;
meta = { meta = {
homepage = "https://github.com/c-cube/gen"; homepage = "https://github.com/c-cube/gen";
description = "Simple, efficient iterators for OCaml"; description = "Simple, efficient iterators for OCaml";
license = lib.licenses.bsd3; license = lib.licenses.bsd3;
inherit (ocaml.meta) platforms;
}; };
} }

View File

@ -12,7 +12,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "adlfs"; pname = "adlfs";
version = "2022.10.0"; version = "2022.11.2";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -20,8 +20,8 @@ buildPythonPackage rec {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "fsspec"; owner = "fsspec";
repo = pname; repo = pname;
rev = version; rev = "refs/tags/${version}";
hash = "sha256-h/xcqb7G4uj4WNVE8is/s2LQ2NfzP1negh15G8B9YCs="; hash = "sha256-S6dJK5ZhDCSwM/14sTrXNJ/+dDe9OeDRemsnuoe4IW0=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -43,6 +43,7 @@ buildPythonPackage rec {
meta = with lib; { meta = with lib; {
description = "Filesystem interface to Azure-Datalake Gen1 and Gen2 Storage"; description = "Filesystem interface to Azure-Datalake Gen1 and Gen2 Storage";
homepage = "https://github.com/fsspec/adlfs"; homepage = "https://github.com/fsspec/adlfs";
changelog = "https://github.com/fsspec/adlfs/blob/${version}/CHANGELOG.md";
license = licenses.bsd3; license = licenses.bsd3;
maintainers = with maintainers; [ fab ]; maintainers = with maintainers; [ fab ];
}; };

View File

@ -12,7 +12,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "aioesphomeapi"; pname = "aioesphomeapi";
version = "13.0.0"; version = "13.0.1";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.9"; disabled = pythonOlder "3.9";
@ -21,7 +21,7 @@ buildPythonPackage rec {
owner = "esphome"; owner = "esphome";
repo = pname; repo = pname;
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-u+RaQcEfljgjK+7vMJj60WkvjozzRM5Z1Yaf4NkrF+U="; hash = "sha256-33iaM5+5OV9TAk3SAZWzJfwQbeDSPQiVLBPAAOyyFm0=";
}; };
postPatch = '' postPatch = ''

View File

@ -0,0 +1,18 @@
diff --git a/src/python/CMakeLists.txt b/src/python/CMakeLists.txt
index 911e280..d484943 100644
--- a/src/python/CMakeLists.txt
+++ b/src/python/CMakeLists.txt
@@ -1,12 +1,6 @@
find_package(Python3 COMPONENTS Interpreter Development.Module REQUIRED)
-include(FetchContent)
-FetchContent_Declare(
- pybind11
- GIT_REPOSITORY https://github.com/pybind/pybind11
- GIT_TAG v2.10.0)
-FetchContent_MakeAvailable(pybind11)
-
+find_package(pybind11 REQUIRED)
add_library(ale-py MODULE ale_python_interface.cpp)
# Depend on the ALE and pybind11 module
target_link_libraries(ale-py PUBLIC ale ale-lib)

View File

@ -0,0 +1,83 @@
{ buildPythonPackage
, SDL2
, cmake
, fetchFromGitHub
, git
, gym
, importlib-metadata
, importlib-resources
, lib
, ninja
, numpy
, pybind11
, pytestCheckHook
, python
, pythonOlder
, setuptools
, stdenv
, typing-extensions
, wheel
, zlib
}:
buildPythonPackage rec {
pname = "ale-py";
version = "0.8.0";
format = "pyproject";
src = fetchFromGitHub {
owner = "mgbellemare";
repo = "Arcade-Learning-Environment";
rev = "v${version}";
sha256 = "sha256-OPAtCc2RapK1lALTKHd95bkigxcZ9bcONu32I/91HIg=";
};
patches = [
# don't download pybind11, use local pybind11
./cmake-pybind11.patch
];
nativeBuildInputs = [
cmake
setuptools
wheel
pybind11
];
buildInputs = [
zlib
SDL2
];
propagatedBuildInputs = [
typing-extensions
importlib-resources
numpy
] ++ lib.optionals (pythonOlder "3.10") [
importlib-metadata
];
checkInputs = [
pytestCheckHook
gym
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'dynamic = ["version"]' 'version = "${version}"'
substituteInPlace setup.py \
--replace 'subprocess.check_output(["git", "rev-parse", "--short", "HEAD"], cwd=here)' 'b"${src.rev}"'
'';
dontUseCmakeConfigure = true;
pythonImportsCheck = [ "ale_py" ];
meta = with lib; {
description = "a simple framework that allows researchers and hobbyists to develop AI agents for Atari 2600 games";
homepage = "https://github.com/mgbellemare/Arcade-Learning-Environment";
license = licenses.gpl2;
maintainers = with maintainers; [ billhuang ];
broken = stdenv.isDarwin; # fails to link with missing library
};
}

View File

@ -7,14 +7,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "aliyun-python-sdk-cdn"; pname = "aliyun-python-sdk-cdn";
version = "3.7.7"; version = "3.7.8";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-Rqz4V6QunddSFeMyROROOL5T4MFPWK1gTorPpNWO8oQ="; hash = "sha256-alZBTwrImneGNXRWCJy/EhDKWT3/sy4j6BB5fOML8ZA=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -31,6 +31,7 @@ buildPythonPackage rec {
meta = with lib; { meta = with lib; {
description = "CDN module of Aliyun Python SDK"; description = "CDN module of Aliyun Python SDK";
homepage = "https://github.com/aliyun/aliyun-openapi-python-sdk"; homepage = "https://github.com/aliyun/aliyun-openapi-python-sdk";
changelog = "https://github.com/aliyun/aliyun-openapi-python-sdk/blob/master/aliyun-python-sdk-cdn/ChangeLog.txt";
license = licenses.asl20; license = licenses.asl20;
maintainers = with maintainers; [ fab ]; maintainers = with maintainers; [ fab ];
}; };

View File

@ -7,14 +7,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "aliyun-python-sdk-config"; pname = "aliyun-python-sdk-config";
version = "2.2.1"; version = "2.2.2";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-Me5z68cOfLt8PDHaZ1b/F/KG5mtYAW3LXmNd+0epha8="; hash = "sha256-cX3DqY8n0UEq9F1xOQI3IQi2Rc4cutcT0y3xc5G9dcg=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -31,6 +31,7 @@ buildPythonPackage rec {
meta = with lib; { meta = with lib; {
description = "Configuration module of Aliyun Python SDK"; description = "Configuration module of Aliyun Python SDK";
homepage = "https://github.com/aliyun/aliyun-openapi-python-sdk"; homepage = "https://github.com/aliyun/aliyun-openapi-python-sdk";
changelog = "https://github.com/aliyun/aliyun-openapi-python-sdk/blob/master/aliyun-python-sdk-config/ChangeLog.txt";
license = licenses.asl20; license = licenses.asl20;
maintainers = with maintainers; [ fab ]; maintainers = with maintainers; [ fab ];
}; };

View File

@ -40,6 +40,7 @@ buildPythonPackage rec {
meta = with lib; { meta = with lib; {
description = "Core module of Aliyun Python SDK"; description = "Core module of Aliyun Python SDK";
homepage = "https://github.com/aliyun/aliyun-openapi-python-sdk"; homepage = "https://github.com/aliyun/aliyun-openapi-python-sdk";
changelog = "https://github.com/aliyun/aliyun-openapi-python-sdk/blob/master/aliyun-python-sdk-core/ChangeLog.txt";
license = licenses.asl20; license = licenses.asl20;
maintainers = with maintainers; [ fab ]; maintainers = with maintainers; [ fab ];
}; };

View File

@ -31,6 +31,7 @@ buildPythonPackage rec {
meta = with lib; { meta = with lib; {
description = "DBFS module of Aliyun Python SDK"; description = "DBFS module of Aliyun Python SDK";
homepage = "https://github.com/aliyun/aliyun-openapi-python-sdk"; homepage = "https://github.com/aliyun/aliyun-openapi-python-sdk";
changelog = "https://github.com/aliyun/aliyun-openapi-python-sdk/blob/master/aliyun-python-sdk-dbfs/ChangeLog.txt";
license = licenses.asl20; license = licenses.asl20;
maintainers = with maintainers; [ fab ]; maintainers = with maintainers; [ fab ];
}; };

View File

@ -7,14 +7,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "aliyun-python-sdk-iot"; pname = "aliyun-python-sdk-iot";
version = "8.45.0"; version = "8.47.0";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-9vLc+Rp81P28lCs6KM8Dmt97lPlhnWd6hqZZDTdQEGk="; hash = "sha256-4NcobMGamIhBnACEQJ9Kvdvj9k4XjJx/Urx38nslAa8=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -31,6 +31,7 @@ buildPythonPackage rec {
meta = with lib; { meta = with lib; {
description = "IoT module of Aliyun Python SDK"; description = "IoT module of Aliyun Python SDK";
homepage = "https://github.com/aliyun/aliyun-openapi-python-sdk"; homepage = "https://github.com/aliyun/aliyun-openapi-python-sdk";
changelog = "https://github.com/aliyun/aliyun-openapi-python-sdk/blob/master/aliyun-python-sdk-iot/ChangeLog.txt";
license = licenses.asl20; license = licenses.asl20;
maintainers = with maintainers; [ fab ]; maintainers = with maintainers; [ fab ];
}; };

View File

@ -31,6 +31,7 @@ buildPythonPackage rec {
meta = with lib; { meta = with lib; {
description = "KMS module of Aliyun Python SDK"; description = "KMS module of Aliyun Python SDK";
homepage = "https://github.com/aliyun/aliyun-openapi-python-sdk"; homepage = "https://github.com/aliyun/aliyun-openapi-python-sdk";
changelog = "https://github.com/aliyun/aliyun-openapi-python-sdk/blob/master/aliyun-python-sdk-kms/ChangeLog.txt";
license = licenses.asl20; license = licenses.asl20;
maintainers = with maintainers; [ fab ]; maintainers = with maintainers; [ fab ];
}; };

View File

@ -31,6 +31,7 @@ buildPythonPackage rec {
meta = with lib; { meta = with lib; {
description = "STS module of Aliyun Python SDK"; description = "STS module of Aliyun Python SDK";
homepage = "https://github.com/aliyun/aliyun-openapi-python-sdk"; homepage = "https://github.com/aliyun/aliyun-openapi-python-sdk";
changelog = "https://github.com/aliyun/aliyun-openapi-python-sdk/blob/master/aliyun-python-sdk-sts/ChangeLog.txt";
license = licenses.asl20; license = licenses.asl20;
maintainers = with maintainers; [ fab ]; maintainers = with maintainers; [ fab ];
}; };

View File

@ -10,7 +10,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "boschshcpy"; pname = "boschshcpy";
version = "0.2.37"; version = "0.2.38";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -19,7 +19,7 @@ buildPythonPackage rec {
owner = "tschamm"; owner = "tschamm";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "sha256-ax1tdqxY4VPuNdH9lJKh5Izmu03XALJ93x5zmSCbeJk="; sha256 = "sha256-PDS68JJsnKO2MVlNxvhlDEGuK7zlsGhCRVOLZ/TSlTM=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View File

@ -1,8 +1,35 @@
{ stdenv, lib, buildPythonPackage, fetchPypi, makeWrapper, isPy3k { lib
, python, twisted, jinja2, msgpack, zope_interface, sqlalchemy, alembic , stdenv
, python-dateutil, txaio, autobahn, pyjwt, pyyaml, treq, txrequests, pypugjs , buildPythonPackage
, boto3, moto, mock, lz4, setuptoolsTrial , fetchPypi
, buildbot-worker, buildbot-pkg, buildbot-plugins, parameterized, git, openssh , makeWrapper
, pythonOlder
, python
, twisted
, jinja2
, msgpack
, zope_interface
, sqlalchemy
, alembic
, python-dateutil
, txaio
, autobahn
, pyjwt
, pyyaml
, treq
, txrequests
, pypugjs
, boto3
, moto
, mock
, lz4
, setuptoolsTrial
, buildbot-worker
, buildbot-pkg
, buildbot-plugins
, parameterized
, git
, openssh
, glibcLocales , glibcLocales
, nixosTests , nixosTests
}: }:
@ -17,7 +44,10 @@ let
dontBuild = true; dontBuild = true;
doCheck = false; doCheck = false;
nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [
makeWrapper
];
propagatedBuildInputs = plugins ++ package.propagatedBuildInputs; propagatedBuildInputs = plugins ++ package.propagatedBuildInputs;
installPhase = '' installPhase = ''
@ -33,11 +63,14 @@ let
package = buildPythonPackage rec { package = buildPythonPackage rec {
pname = "buildbot"; pname = "buildbot";
version = "3.6.1"; version = "3.7.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "sha256-ByJPkI0AHis+Ey1lSuMly4M6W4s/xes4eG0gPPJ3fZA="; hash = "sha256-YMLT1SP6NenJIUVTvr58GVrtNXHw+bhfgMpZu3revG4=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -96,8 +129,6 @@ let
rm buildbot/test/integration/test_graphql.py rm buildbot/test/integration/test_graphql.py
''; '';
disabled = !isPy3k;
passthru = { passthru = {
inherit withPlugins; inherit withPlugins;
tests.buildbot = nixosTests.buildbot; tests.buildbot = nixosTests.buildbot;
@ -105,11 +136,12 @@ let
}; };
meta = with lib; { meta = with lib; {
broken = stdenv.isDarwin;
homepage = "https://buildbot.net/";
description = "An open-source continuous integration framework for automating software build, test, and release processes"; description = "An open-source continuous integration framework for automating software build, test, and release processes";
homepage = "https://buildbot.net/";
changelog = "https://github.com/buildbot/buildbot/releases/tag/v${version}";
maintainers = with maintainers; [ ryansydnor lopsided98 ]; maintainers = with maintainers; [ ryansydnor lopsided98 ];
license = licenses.gpl2; license = licenses.gpl2Only;
broken = stdenv.isDarwin;
}; };
}; };
in package in package

View File

@ -6,7 +6,7 @@ buildPythonPackage rec {
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "sha256-YmAO8o25uVk1KlyzFg79025KyiopXxWZVpfrvI0H8c4="; sha256 = "sha256-4BXCOLW5e7RuZEzyD+oRmS2I4oT2W3oTcH4ZPxwKKvU=";
}; };
postPatch = '' postPatch = ''

View File

@ -7,7 +7,7 @@
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "sha256-MXCLaFXmZCzLp3nuzK2PW4aa1CC5JOXkvvswAbMwkXI="; sha256 = "sha256-t4xHfox6h5PY4+phdCQbClHd77+WfpUWErMZCEcMxu0=";
}; };
# Remove unneccessary circular dependency on buildbot # Remove unneccessary circular dependency on buildbot
@ -34,7 +34,7 @@
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "sha256-U89IyfhgIjrf6XH5pFod89zDE9Ln817AHMBCRTPw4tQ="; sha256 = "sha256-JySn7QO+SgoXjVeV4wYwc9twr0Q2c/wsEspqeq038+k=";
}; };
buildInputs = [ buildbot-pkg ]; buildInputs = [ buildbot-pkg ];
@ -56,7 +56,7 @@
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "sha256-vbf4mMbgCePXlPwQQWeC7knBP1WZhhhEggy1ULNESG8="; sha256 = "sha256-935eeF2kpT68lK/UMg8MZQOYEj7D8FaT9iSs/lNahYA=";
}; };
buildInputs = [ buildbot-pkg ]; buildInputs = [ buildbot-pkg ];
@ -78,7 +78,7 @@
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "sha256-haLbaeE1aKhHRT5UsKABBeNBRRvt7bVKalT3doQU7SI="; sha256 = "sha256-3pHSiVoOZj2iCGfiz+tMWWMPHSBH5Ggp6e3+a8topsg=";
}; };
buildInputs = [ buildbot-pkg ]; buildInputs = [ buildbot-pkg ];
@ -100,7 +100,7 @@
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "sha256-zarpv8kwJMFwfZYA+EqEc7636tKud9wXfAbrlZM4bB4="; sha256 = "sha256-5Qr1FeYIJG/qaFaTB7ScFN9uca+joHKE6FlfKwhubfo=";
}; };
buildInputs = [ buildbot-pkg ]; buildInputs = [ buildbot-pkg ];

View File

@ -28,7 +28,7 @@ buildPythonPackage (rec {
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "sha256-13I7sttnxO6vORFZzpOKmXu3PfwOpSGmXqvozrhzIm0="; sha256 = "sha256-Lc+FNrfXLfeEnDqNBs9R96jtoFEOCG2vLRWGKip/+VM=";
}; };
postPatch = '' postPatch = ''

View File

@ -31,7 +31,7 @@ buildPythonPackage rec {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "poets-ai"; owner = "poets-ai";
repo = pname; repo = pname;
rev = version; rev = "refs/tags/${version}";
hash = "sha256-FZmLriYhsX+zyQKCtCjbOy6MH+AvjzHRNUyaDSXGlLI="; hash = "sha256-FZmLriYhsX+zyQKCtCjbOy6MH+AvjzHRNUyaDSXGlLI=";
}; };
@ -73,9 +73,9 @@ buildPythonPackage rec {
checkInputs = [ checkInputs = [
pytestCheckHook pytestCheckHook
torch
sh sh
tensorflow tensorflow
torch
]; ];
disabledTests = [ disabledTests = [
@ -89,6 +89,7 @@ buildPythonPackage rec {
meta = with lib; { meta = with lib; {
description = "Neural Networks framework based on Jax inspired by Keras and Haiku"; description = "Neural Networks framework based on Jax inspired by Keras and Haiku";
homepage = "https://github.com/poets-ai/elegy"; homepage = "https://github.com/poets-ai/elegy";
changelog = "https://github.com/poets-ai/elegy/releases/tag/${version}";
license = licenses.asl20; license = licenses.asl20;
maintainers = with maintainers; [ ndl ]; maintainers = with maintainers; [ ndl ];
}; };

View File

@ -9,7 +9,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "elmax-api"; pname = "elmax-api";
version = "0.0.2"; version = "0.0.3";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.8";
@ -17,8 +17,8 @@ buildPythonPackage rec {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "albertogeniola"; owner = "albertogeniola";
repo = pname; repo = pname;
rev = "v${version}"; rev = "refs/tags/v${version}";
sha256 = "sha256-YUnLi8+ibUgWoMFMgZPSPbpr286bnWBefxjOV7JfCuY="; hash = "sha256-ZqPDnIiFzxS6nU19bfEgnqEsuz7oI+Z4ac6br6Gr4Vk=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -37,6 +37,7 @@ buildPythonPackage rec {
meta = with lib; { meta = with lib; {
description = "Python library for interacting with the Elmax cloud"; description = "Python library for interacting with the Elmax cloud";
homepage = "https://github.com/albertogeniola/elmax-api"; homepage = "https://github.com/albertogeniola/elmax-api";
changelog = "https://github.com/albertogeniola/elmax-api/releases/tag/v${version}";
license = with licenses; [ asl20 ]; license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ]; maintainers = with maintainers; [ fab ];
}; };

View File

@ -16,7 +16,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "fakeredis"; pname = "fakeredis";
version = "2.1.0"; version = "2.2.0";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -25,7 +25,7 @@ buildPythonPackage rec {
owner = "dsoftwareinc"; owner = "dsoftwareinc";
repo = "fakeredis-py"; repo = "fakeredis-py";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-d+colAAESTt2YME8URX3e/l6GsC1l0vzg3wY/NQPkDk="; hash = "sha256-W24DMVp3E6SYaVTUYCRDm/tLaGcjDqecO3rN1RO/J84=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View File

@ -3,7 +3,7 @@
, pythonOlder , pythonOlder
, fetchFromGitHub , fetchFromGitHub
, opencv4 , opencv4
, pytorch , torch
, onnx , onnx
, onnxruntime , onnxruntime
, pillow , pillow
@ -14,6 +14,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "invisible-watermark"; pname = "invisible-watermark";
version = "0.1.5"; version = "0.1.5";
format = "setuptools";
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";
src = fetchFromGitHub { src = fetchFromGitHub {
@ -25,7 +26,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [ propagatedBuildInputs = [
opencv4 opencv4
pytorch torch
onnx onnx
onnxruntime onnxruntime
pillow pillow

View File

@ -6,29 +6,43 @@
, pybind11 , pybind11
, pytestCheckHook , pytestCheckHook
, setuptools , setuptools
, pythonOlder
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "mapbox-earcut"; pname = "mapbox-earcut";
version = "1.0.0"; version = "1.0.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "skogler"; owner = "skogler";
repo = "mapbox_earcut_python"; repo = "mapbox_earcut_python";
rev = "v${version}"; rev = "refs/tags/v${version}";
sha256 = "m4q2qTL55fkdi3hm75C3/XV9SUQkpJS+B5SEgpPEctk="; hash = "sha256-+Vxvo++bkoCsJFmt/u1eaqhgpz8Uddz06iIi66ju+MQ=";
}; };
nativeBuildInputs = [ setuptools pybind11 ]; nativeBuildInputs = [
setuptools
pybind11
];
propagatedBuildInputs = [ numpy ]; propagatedBuildInputs = [
numpy
];
checkInputs = [ pytestCheckHook ]; checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "mapbox_earcut" ]; pythonImportsCheck = [
"mapbox_earcut"
];
meta = with lib; { meta = with lib; {
homepage = "https://github.com/skogler/mapbox_earcut_python"; homepage = "https://github.com/skogler/mapbox_earcut_python";
changelog = "https://github.com/skogler/mapbox_earcut_python/releases/tag/v${version}";
license = licenses.isc; license = licenses.isc;
description = "Mapbox-earcut fast triangulation of 2D-polygons"; description = "Mapbox-earcut fast triangulation of 2D-polygons";
longDescription = '' longDescription = ''

View File

@ -11,7 +11,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "oauthlib"; pname = "oauthlib";
version = "3.2.1"; version = "3.2.2";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -20,7 +20,7 @@ buildPythonPackage rec {
owner = pname; owner = pname;
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
hash = "sha256-9Du0REnN7AkvMmejXsWc7Uy+YF8MYeLK+QnYHbrPhPA="; hash = "sha256-KADS1pEaLYi86LEt2VVuz8FVTBANzxC8EeQLgGMxuBU=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View File

@ -1,4 +1,5 @@
{ lib { lib
, stdenv
, buildPythonPackage , buildPythonPackage
, isPy27 , isPy27
, fetchPypi , fetchPypi
@ -134,5 +135,7 @@ buildPythonPackage rec {
license = licenses.gpl3Only; license = licenses.gpl3Only;
platforms = platforms.mesaPlatforms; platforms = platforms.mesaPlatforms;
maintainers = with maintainers; [ LunNova ]; maintainers = with maintainers; [ LunNova ];
# python3Packages.pyqt-builder needs to be patched
broken = stdenv.isDarwin;
}; };
} }

View File

@ -9,7 +9,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "pyswitchbot"; pname = "pyswitchbot";
version = "0.20.8"; version = "0.22.0";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -18,7 +18,7 @@ buildPythonPackage rec {
owner = "Danielhiversen"; owner = "Danielhiversen";
repo = "pySwitchbot"; repo = "pySwitchbot";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-fSuWpxao56WSfgW3ZEhcyfWuVG9ebLVfBHK1GN1Nffk="; hash = "sha256-/FECjJ/iVx4CTtOgxpPBF0lZCctghmD4qUrQQYwmAkQ=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View File

@ -40,7 +40,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "sentry-sdk"; pname = "sentry-sdk";
version = "1.11.0"; version = "1.11.1";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -49,7 +49,7 @@ buildPythonPackage rec {
owner = "getsentry"; owner = "getsentry";
repo = "sentry-python"; repo = "sentry-python";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-PObYXwWYQ7cC//W3c+n/qceu2ShjFqMGAaLyNflwcL4="; hash = "sha256-2AAi9BrF15TDiv9v2d/UF9JPgJheet33k+7iHqPlw5g=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View File

@ -21,7 +21,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "slack-sdk"; pname = "slack-sdk";
version = "3.19.4"; version = "3.19.5";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";
@ -30,7 +30,7 @@ buildPythonPackage rec {
owner = "slackapi"; owner = "slackapi";
repo = "python-slack-sdk"; repo = "python-slack-sdk";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-cSPua601vQRJ431Sh02CLFtNb7pqbrkJ5ned/NjKM4s="; hash = "sha256-/DVcnfHjvmRreHSlZbzxz6pbqytEUdqbaGbQVxIW4Qk=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View File

@ -15,16 +15,16 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "slowapi"; pname = "slowapi";
version = "0.1.6"; version = "0.1.7";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "laurentS"; owner = "laurentS";
repo = pname; repo = pname;
rev = "v${version}"; rev = "refs/tags/v${version}";
sha256 = "sha256-3ZkQnroHMCHuTPH/cvi/iWndvdyQ/ZJQ2Qtu1CZyeGg="; hash = "sha256-IAB7JW8iVb5M610GVK0POXlSiya22KzNgr26BNvPC4Q=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@ -65,6 +65,7 @@ buildPythonPackage rec {
meta = with lib; { meta = with lib; {
description = "Python library for API rate limiting"; description = "Python library for API rate limiting";
homepage = "https://github.com/laurentS/slowapi"; homepage = "https://github.com/laurentS/slowapi";
changelog = "https://github.com/laurentS/slowapi/blob/v${version}/CHANGELOG.md";
license = with licenses; [ mit ]; license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ]; maintainers = with maintainers; [ fab ];
}; };

View File

@ -4,19 +4,26 @@
, sphinx , sphinx
, pytestCheckHook , pytestCheckHook
, beautifulsoup4 , beautifulsoup4
, setuptools-scm
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "sphinxext-opengraph"; pname = "sphinxext-opengraph";
version = "0.6.3"; version = "0.7.3";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "wpilibsuite"; owner = "wpilibsuite";
repo = "sphinxext-opengraph"; repo = "sphinxext-opengraph";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-YR6TlsmND5IhLdbPbmtVhRN2vSZfx70g2a6Yn6y6L/M="; hash = "sha256-KzbtuDTMXsp9yf3hiiG6VzpUbSEm3bOtujApsG37H14=";
}; };
SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [ propagatedBuildInputs = [
sphinx sphinx
]; ];

View File

@ -15,7 +15,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "teslajsonpy"; pname = "teslajsonpy";
version = "3.4.0"; version = "3.4.1";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -24,7 +24,7 @@ buildPythonPackage rec {
owner = "zabuldon"; owner = "zabuldon";
repo = pname; repo = pname;
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-R3/Oh1sQCTPooL6+wNz2KD9NlxxshslT4DgSkga0x8k="; hash = "sha256-RPCzxcuD57ma306GLYsxxvvvZ0e8RTd/KxOeMSaQQQQ=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View File

@ -10,7 +10,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "ttls"; pname = "ttls";
version = "1.4.3"; version = "1.5.1";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.8";
@ -18,8 +18,8 @@ buildPythonPackage rec {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "jschlyter"; owner = "jschlyter";
repo = pname; repo = pname;
rev = "v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-lBmkfB7HXB+1xLbfOl4wVtsOVfKhztoDBqzV8i6bFAg="; hash = "sha256-Oh70mLwTaJ2+uQDr2t6wAgskW5L06mZxtD/8dE01YA0=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@ -42,6 +42,7 @@ buildPythonPackage rec {
meta = with lib; { meta = with lib; {
description = "Module to interact with Twinkly LEDs"; description = "Module to interact with Twinkly LEDs";
homepage = "https://github.com/jschlyter/ttls"; homepage = "https://github.com/jschlyter/ttls";
changelog = "https://github.com/jschlyter/ttls/blob/v${version}/CHANGES.md";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ fab ]; maintainers = with maintainers; [ fab ];
}; };

View File

@ -7,7 +7,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "ttp-templates"; pname = "ttp-templates";
version = "0.3.1"; version = "0.3.2";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -16,7 +16,7 @@ buildPythonPackage rec {
owner = "dmulyalin"; owner = "dmulyalin";
repo = "ttp_templates"; repo = "ttp_templates";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-35Ej76E9qy5EY41Jt2GDCldyXq7IkdqKxVFrBOJh9nE="; hash = "sha256-Bm9//hahM1sP/XDUDR7JcGWz0qF8ovkWZU5x/qj0UZg=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@ -34,6 +34,7 @@ buildPythonPackage rec {
meta = with lib; { meta = with lib; {
description = "Template Text Parser Templates collections"; description = "Template Text Parser Templates collections";
homepage = "https://github.com/dmulyalin/ttp_templates"; homepage = "https://github.com/dmulyalin/ttp_templates";
changelog = "https://github.com/dmulyalin/ttp_templates/releases/tag/${version}";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ fab ]; maintainers = with maintainers; [ fab ];
}; };

View File

@ -14,7 +14,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "twilio"; pname = "twilio";
version = "7.15.3"; version = "7.15.4";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";
@ -23,7 +23,7 @@ buildPythonPackage rec {
owner = "twilio"; owner = "twilio";
repo = "twilio-python"; repo = "twilio-python";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-c1UNqp8eYK9tkogpcDtTOTHa5ME+yOkop2UccXwOAqM="; hash = "sha256-V7JLFesMj0W6k9+svgIBAfemDWiyi7DGdFLBk4/wd+8=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -53,6 +53,7 @@ buildPythonPackage rec {
meta = with lib; { meta = with lib; {
description = "Twilio API client and TwiML generator"; description = "Twilio API client and TwiML generator";
homepage = "https://github.com/twilio/twilio-python/"; homepage = "https://github.com/twilio/twilio-python/";
changelog = "https://github.com/twilio/twilio-python/blob/${version}/CHANGES.md";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ fab ]; maintainers = with maintainers; [ fab ];
}; };

View File

@ -4,29 +4,31 @@
, pythonOlder , pythonOlder
, pytestCheckHook , pytestCheckHook
, python-socks , python-socks
, six
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "websocket-client"; pname = "websocket-client";
version = "1.4.1"; version = "1.4.2";
disabled = pythonOlder "3.6"; format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "sha256-+WEetlyCQaZ/s3O+8ECzz4rTd6n2VGoStiC2UR6Oqe8="; hash = "sha256-1uj5DKji3U6AJ8RWGt65RWtUBEMS26ZV58rmUs65rlk=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
python-socks python-socks
six
]; ];
checkInputs = [ checkInputs = [
pytestCheckHook pytestCheckHook
]; ];
pythonImportsCheck = [ "websocket" ]; pythonImportsCheck = [
"websocket"
];
meta = with lib; { meta = with lib; {
description = "Websocket client for Python"; description = "Websocket client for Python";

View File

@ -10,7 +10,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "weconnect-mqtt"; pname = "weconnect-mqtt";
version = "0.40.3"; version = "0.41.1";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -19,7 +19,7 @@ buildPythonPackage rec {
owner = "tillsteinbach"; owner = "tillsteinbach";
repo = "WeConnect-mqtt"; repo = "WeConnect-mqtt";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-kV4BWQ4XfB2QjXY5b46+pxt3rhyo1glKRYO2mMJNhJM="; hash = "sha256-RYxfz5uBWV1HLbcIK1N/glJv2w0nfPLBPyM2b7HuDIY=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -47,6 +47,7 @@ buildPythonPackage rec {
meta = with lib; { meta = with lib; {
description = "Python client that publishes data from Volkswagen WeConnect"; description = "Python client that publishes data from Volkswagen WeConnect";
homepage = "https://github.com/tillsteinbach/WeConnect-mqtt"; homepage = "https://github.com/tillsteinbach/WeConnect-mqtt";
changelog = "https://github.com/tillsteinbach/WeConnect-mqtt/releases/tag/v${version}";
license = with licenses; [ mit ]; license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ]; maintainers = with maintainers; [ fab ];
}; };

View File

@ -12,7 +12,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "weconnect"; pname = "weconnect";
version = "0.48.3"; version = "0.50.1";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -21,7 +21,7 @@ buildPythonPackage rec {
owner = "tillsteinbach"; owner = "tillsteinbach";
repo = "WeConnect-python"; repo = "WeConnect-python";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-GXTjG/3Gk58C6TxKrgtblUZI+xf7Te9OA8HnDvNEIvA="; hash = "sha256-KYGNtUJXpY1UrRbUxr71EHxLCR6WixTAk+ybkfqB3Ps=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -48,7 +48,7 @@ buildPythonPackage rec {
--replace "setup_requires=SETUP_REQUIRED," "setup_requires=[]," \ --replace "setup_requires=SETUP_REQUIRED," "setup_requires=[]," \
--replace "tests_require=TEST_REQUIRED," "tests_require=[]," --replace "tests_require=TEST_REQUIRED," "tests_require=[],"
substituteInPlace image_extra_requirements.txt \ substituteInPlace image_extra_requirements.txt \
--replace "pillow~=9.2.0" "pillow" --replace "pillow~=9.3.0" "pillow"
substituteInPlace pytest.ini \ substituteInPlace pytest.ini \
--replace "--cov=weconnect --cov-config=.coveragerc --cov-report html" "" \ --replace "--cov=weconnect --cov-config=.coveragerc --cov-report html" "" \
--replace "pytest-cov" "" --replace "pytest-cov" ""
@ -61,6 +61,7 @@ buildPythonPackage rec {
meta = with lib; { meta = with lib; {
description = "Python client for the Volkswagen WeConnect Services"; description = "Python client for the Volkswagen WeConnect Services";
homepage = "https://github.com/tillsteinbach/WeConnect-python"; homepage = "https://github.com/tillsteinbach/WeConnect-python";
changelog = "https://github.com/tillsteinbach/WeConnect-python/releases/tag/v${version}";
license = with licenses; [ mit ]; license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ]; maintainers = with maintainers; [ fab ];
}; };

View File

@ -7,14 +7,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "winacl"; pname = "winacl";
version = "0.1.5"; version = "0.1.6";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-8/dLFbzn7ARuJ27MA8LSMCykBdEntYQXuOyj/yqjaWE="; hash = "sha256-GAw3Vgej9v8gSIpMaN2pbOptWsqTvC0Kph70yfj2LDQ=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -36,6 +36,7 @@ buildPythonPackage rec {
meta = with lib; { meta = with lib; {
description = "Python module for ACL/ACE/Security descriptor manipulation"; description = "Python module for ACL/ACE/Security descriptor manipulation";
homepage = "https://github.com/skelsec/winacl"; homepage = "https://github.com/skelsec/winacl";
changelog = "https://github.com/skelsec/winacl/releases/tag/${version}";
license = with licenses; [ mit ]; license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ]; maintainers = with maintainers; [ fab ];
}; };

View File

@ -0,0 +1,43 @@
{ lib
, buildNpmPackage
, fetchFromGitHub
}:
buildNpmPackage rec {
pname = "ansible-language-server";
version = "1.0.2-next.0";
src = fetchFromGitHub {
owner = "ansible";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-E4xWwqXl5n/eChJ8JM32K2gTYE/F8Y76J3Sll++48Uo=";
};
npmDepsHash = "sha256-8FP6hF85w1Zbhiwi2V350ZWFAykAfvsXRGL8bvGk1XE=";
npmBuildScript = "compile";
# We remove the prepare and prepack scripts because they run the
# build script, and therefore are redundant.
#
# Additionally, the prepack script runs npm ci in addition to the
# build script. Directly before npm pack is run, we make npm unaware
# of the dependency cache, causing the npm ci invocation to fail,
# wiping out node_modules, which causes a mysterious error stating that tsc isn't installed.
postPatch = ''
sed -i '/"prepare"/d' package.json
sed -i '/"prepack"/d' package.json
'';
passthru.updateScript = {
attrPath = pname;
};
meta = with lib; {
changelog = "https://github.com/ansible/ansible-language-server/releases/tag/v${version}";
description = "Ansible Language Server";
homepage = "https://github.com/ansible/ansible-language-server";
license = licenses.mit;
maintainers = with maintainers; [ hexa ];
};
}

View File

@ -5,13 +5,13 @@
python3.pkgs.buildPythonApplication rec { python3.pkgs.buildPythonApplication rec {
pname = "appthreat-depscan"; pname = "appthreat-depscan";
version = "3.2.3"; version = "3.2.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "AppThreat"; owner = "AppThreat";
repo = "dep-scan"; repo = "dep-scan";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-VWFYgRIpEmOpOonazoRF0wPUfAiOu90gxm22M6Wkvgo="; hash = "sha256-nHKEELQzcMKvxAC+u4lPBglsMwyzRpiQF3O+felHTbk=";
}; };
propagatedBuildInputs = with python3.pkgs; [ propagatedBuildInputs = with python3.pkgs; [

View File

@ -2,13 +2,13 @@
buildGoModule rec { buildGoModule rec {
pname = "esbuild"; pname = "esbuild";
version = "0.15.16"; version = "0.15.18";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "evanw"; owner = "evanw";
repo = "esbuild"; repo = "esbuild";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-m23K1BH1Cw452GN14G9rmFi0a+sGnPwIdSyWXqTqiKw="; sha256 = "sha256-b9R1ML+pgRg9j2yrkQmBulPuLHYLUQvW+WTyR/Cq6zE=";
}; };
vendorSha256 = "sha256-+BfxCyg0KkDQpHt/wycy/8CTG6YBA/VJvJFhhzUnSiQ="; vendorSha256 = "sha256-+BfxCyg0KkDQpHt/wycy/8CTG6YBA/VJvJFhhzUnSiQ=";
@ -20,6 +20,7 @@ buildGoModule rec {
meta = with lib; { meta = with lib; {
description = "An extremely fast JavaScript bundler"; description = "An extremely fast JavaScript bundler";
homepage = "https://esbuild.github.io"; homepage = "https://esbuild.github.io";
changelog = "https://github.com/evanw/esbuild/blob/v${version}/CHANGELOG.md";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ lucus16 marsam ]; maintainers = with maintainers; [ lucus16 marsam ];
}; };

View File

@ -1,24 +1,31 @@
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }: { lib
, buildGoModule
, fetchFromGitHub
, installShellFiles
}:
buildGoModule rec { buildGoModule rec {
pname = "metal-cli"; pname = "metal-cli";
version = "0.11.0"; version = "0.12.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "equinix"; owner = "equinix";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-tbnG/MF83cAnsG2LOqdQSGF2XT+UWSzIpxVbkolzEQQ="; hash = "sha256-oPMojw6CGncBJ8PZOTrzvQu2gRs1cw1Jwi38eOZggI8=";
}; };
vendorSha256 = "sha256-drsNZXLNUWICLI8D+IvJE4X8GmWrP9U3dmpf9HnKCWw="; vendorHash = "sha256-drsNZXLNUWICLI8D+IvJE4X8GmWrP9U3dmpf9HnKCWw=";
ldflags = [ ldflags = [
"-s" "-w" "-s"
"-w"
"-X github.com/equinix/metal-cli/cmd.Version=${version}" "-X github.com/equinix/metal-cli/cmd.Version=${version}"
]; ];
nativeBuildInputs = [ installShellFiles ]; nativeBuildInputs = [
installShellFiles
];
postInstall = '' postInstall = ''
installShellCompletion --cmd metal \ installShellCompletion --cmd metal \
@ -30,6 +37,7 @@ buildGoModule rec {
doCheck = false; doCheck = false;
doInstallCheck = true; doInstallCheck = true;
installCheckPhase = '' installCheckPhase = ''
$out/bin/metal --version | grep ${version} $out/bin/metal --version | grep ${version}
''; '';
@ -37,6 +45,7 @@ buildGoModule rec {
meta = with lib; { meta = with lib; {
description = "Official Equinix Metal CLI"; description = "Official Equinix Metal CLI";
homepage = "https://github.com/equinix/metal-cli/"; homepage = "https://github.com/equinix/metal-cli/";
changelog = "https://github.com/equinix/metal-cli/releases/tag/v${version}";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ Br1ght0ne nshalman ]; maintainers = with maintainers; [ Br1ght0ne nshalman ];
mainProgram = "metal"; mainProgram = "metal";

View File

@ -1,30 +1,44 @@
{ lib { lib
, runCommand
, rustPlatform , rustPlatform
, fetchFromGitHub , fetchFromGitHub
, stdenv , stdenv
, runCommand , coreutils
, tree-sitter
}: }:
let
# copied from flake.nix
# tests require extra setup with nix
custom = runCommand "custom" { } ''
mkdir -p $out/bin
touch $out/bin/{'foo$','foo"`'}
chmod +x $out/bin/{'foo$','foo"`'}
'';
in
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "patsh"; pname = "patsh";
version = "0.1.3"; version = "0.2.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "nix-community"; owner = "nix-community";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-KmQVZwZC7KHlzNnL2IKQ76wHUDNUZKz/aFaY4ujvBo4="; sha256 = "sha256-7HXJspebluQeejKYmVA7sy/F3dtU1gc4eAbKiPexMMA=";
}; };
cargoSha256 = "sha256-vozQKBxAVELdqTnqBpgHX0Wyk18EZAtpiRsKjwz8xKE="; cargoSha256 = "sha256-R6ScpLYbEJAu7+CyJsMdljtXq7wsMojHK5O1lH+E/E8=";
# tests fail on darwin due to rpath issues checkInputs = [ custom ];
doCheck = !stdenv.isDarwin;
TREE_SITTER_BASH = runCommand "tree-sitter-bash" { } '' # see comment on `custom`
mkdir $out postPatch = ''
ln -s ${tree-sitter.builtGrammars.tree-sitter-bash}/parser $out/libtree-sitter-bash.a for file in tests/fixtures/*-expected.sh; do
substituteInPlace $file \
--subst-var-by cc ${stdenv.cc} \
--subst-var-by coreutils ${coreutils} \
--subst-var-by custom ${custom}
done
''; '';
meta = with lib; { meta = with lib; {

View File

@ -0,0 +1,24 @@
{ lib, buildGoModule, fetchFromGitHub, callPackage }:
buildGoModule rec {
pname = "nap";
version = "0.1.1";
src = fetchFromGitHub {
owner = "maaslalani";
repo = pname;
rev = "v${version}";
sha256 = "0b3sz8zp1nwcjl02b3lli5yjc7vfay1ig6fs8bgxwz22imfx076p";
};
vendorSha256 = "sha256-puCqql77kvdWTcwp8z6LExBt/HbNRNe0f+wtM0kLoWM=";
excludedPackages = ".nap";
meta = {
description = "Code snippets in your terminal 🛌";
homepage = "https://github.com/maaslalani/nap";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ phdcybersec maaslalani ];
};
}

Some files were not shown because too many files have changed in this diff Show More