Merge staging-next into staging
This commit is contained in:
commit
017862ea9a
@ -5884,6 +5884,12 @@
|
||||
githubId = 54999;
|
||||
name = "Ariel Nunez";
|
||||
};
|
||||
iopq = {
|
||||
email = "iop_jr@yahoo.com";
|
||||
github = "iopq";
|
||||
githubId = 1817528;
|
||||
name = "Igor Polyakov";
|
||||
};
|
||||
irenes = {
|
||||
name = "Irene Knapp";
|
||||
email = "ireneista@gmail.com";
|
||||
@ -13305,6 +13311,12 @@
|
||||
githubId = 102685;
|
||||
name = "Thomas Friese";
|
||||
};
|
||||
taylor1791 = {
|
||||
email = "nixpkgs@tayloreverding.com";
|
||||
github = "taylor1791";
|
||||
githubId = 555003;
|
||||
name = "Taylor Everding";
|
||||
};
|
||||
tazjin = {
|
||||
email = "mail@tazj.in";
|
||||
github = "tazjin";
|
||||
|
@ -189,6 +189,15 @@
|
||||
<link xlink:href="options.html#opt-virtualisation.appvm.enable">virtualisation.appvm</link>.
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
[xray] (https://github.com/XTLS/Xray-core), a fully compatible
|
||||
v2ray-core replacement. Features XTLS, which when enabled on
|
||||
server and client, brings UDP FullCone NAT to proxy setups.
|
||||
Available as
|
||||
<link xlink:href="options.html#opt-services.xray.enable">services.xray</link>.
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
<link xlink:href="https://github.com/mozilla-services/syncstorage-rs">syncstorage-rs</link>,
|
||||
|
@ -71,6 +71,9 @@ In addition to numerous new and upgraded packages, this release has the followin
|
||||
## New Services {#sec-release-22.11-new-services}
|
||||
|
||||
- [appvm](https://github.com/jollheef/appvm), Nix based app VMs. Available as [virtualisation.appvm](options.html#opt-virtualisation.appvm.enable).
|
||||
|
||||
- [xray] (https://github.com/XTLS/Xray-core), a fully compatible v2ray-core replacement. Features XTLS, which when enabled on server and client, brings UDP FullCone NAT to proxy setups. Available as [services.xray](options.html#opt-services.xray.enable).
|
||||
|
||||
- [syncstorage-rs](https://github.com/mozilla-services/syncstorage-rs), a self-hostable sync server for Firefox. Available as [services.firefox-syncserver](options.html#opt-services.firefox-syncserver.enable).
|
||||
|
||||
- [dragonflydb](https://dragonflydb.io/), a modern replacement for Redis and Memcached. Available as [services.dragonflydb](#opt-services.dragonflydb.enable).
|
||||
|
@ -991,6 +991,7 @@
|
||||
./services/networking/xinetd.nix
|
||||
./services/networking/xl2tpd.nix
|
||||
./services/networking/x2goserver.nix
|
||||
./services/networking/xray.nix
|
||||
./services/networking/xrdp.nix
|
||||
./services/networking/yggdrasil.nix
|
||||
./services/networking/zerobin.nix
|
||||
|
@ -30,7 +30,7 @@ in {
|
||||
};
|
||||
|
||||
accessUser = mkOption {
|
||||
default = "";
|
||||
default = "admin";
|
||||
type = types.str;
|
||||
description = lib.mdDoc ''
|
||||
User id in Jenkins used to reload config.
|
||||
@ -48,7 +48,8 @@ in {
|
||||
};
|
||||
|
||||
accessTokenFile = mkOption {
|
||||
default = "";
|
||||
default = "${config.services.jenkins.home}/secrets/initialAdminPassword";
|
||||
defaultText = literalExpression ''"''${config.services.jenkins.home}/secrets/initialAdminPassword"'';
|
||||
type = types.str;
|
||||
example = "/run/keys/jenkins-job-builder-access-token";
|
||||
description = lib.mdDoc ''
|
||||
|
@ -192,7 +192,6 @@ in
|
||||
###### interface
|
||||
|
||||
options = {
|
||||
|
||||
boot.hardwareScan = mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
@ -205,6 +204,9 @@ in
|
||||
};
|
||||
|
||||
services.udev = {
|
||||
enable = mkEnableOption (lib.mdDoc "udev") // {
|
||||
default = true;
|
||||
};
|
||||
|
||||
packages = mkOption {
|
||||
type = types.listOf types.path;
|
||||
@ -345,7 +347,7 @@ in
|
||||
|
||||
###### implementation
|
||||
|
||||
config = mkIf (!config.boot.isContainer) {
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
services.udev.extraRules = nixosRules;
|
||||
|
||||
|
96
nixos/modules/services/networking/xray.nix
Normal file
96
nixos/modules/services/networking/xray.nix
Normal file
@ -0,0 +1,96 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
{
|
||||
options = {
|
||||
|
||||
services.xray = {
|
||||
enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc ''
|
||||
Whether to run xray server.
|
||||
|
||||
Either `settingsFile` or `settings` must be specified.
|
||||
'';
|
||||
};
|
||||
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.xray;
|
||||
defaultText = literalExpression "pkgs.xray";
|
||||
description = lib.mdDoc ''
|
||||
Which xray package to use.
|
||||
'';
|
||||
};
|
||||
|
||||
settingsFile = mkOption {
|
||||
type = types.nullOr types.path;
|
||||
default = null;
|
||||
example = "/etc/xray/config.json";
|
||||
description = lib.mdDoc ''
|
||||
The absolute path to the configuration file.
|
||||
|
||||
Either `settingsFile` or `settings` must be specified.
|
||||
|
||||
See <https://www.v2fly.org/en_US/config/overview.html>.
|
||||
'';
|
||||
};
|
||||
|
||||
settings = mkOption {
|
||||
type = types.nullOr (types.attrsOf types.unspecified);
|
||||
default = null;
|
||||
example = {
|
||||
inbounds = [{
|
||||
port = 1080;
|
||||
listen = "127.0.0.1";
|
||||
protocol = "http";
|
||||
}];
|
||||
outbounds = [{
|
||||
protocol = "freedom";
|
||||
}];
|
||||
};
|
||||
description = lib.mdDoc ''
|
||||
The configuration object.
|
||||
|
||||
Either `settingsFile` or `settings` must be specified.
|
||||
|
||||
See <https://www.v2fly.org/en_US/config/overview.html>.
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
config = let
|
||||
cfg = config.services.xray;
|
||||
settingsFile = if cfg.settingsFile != null
|
||||
then cfg.settingsFile
|
||||
else pkgs.writeTextFile {
|
||||
name = "xray.json";
|
||||
text = builtins.toJSON cfg.settings;
|
||||
checkPhase = ''
|
||||
${cfg.package}/bin/xray -test -config $out
|
||||
'';
|
||||
};
|
||||
|
||||
in mkIf cfg.enable {
|
||||
assertions = [
|
||||
{
|
||||
assertion = (cfg.settingsFile == null) != (cfg.settings == null);
|
||||
message = "Either but not both `settingsFile` and `settings` should be specified for xray.";
|
||||
}
|
||||
];
|
||||
|
||||
systemd.services.xray = {
|
||||
description = "xray Daemon";
|
||||
after = [ "network.target" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
serviceConfig = {
|
||||
DynamicUser = true;
|
||||
ExecStart = "${cfg.package}/bin/xray -config ${settingsFile}";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
@ -15,14 +15,14 @@ let
|
||||
|
||||
environmentFile = pkgs.writeText "healthchecks-environment" (lib.generators.toKeyValue { } environment);
|
||||
|
||||
healthchecksManageScript = with pkgs; (writeShellScriptBin "healthchecks-manage" ''
|
||||
healthchecksManageScript = pkgs.writeShellScriptBin "healthchecks-manage" ''
|
||||
sudo=exec
|
||||
if [[ "$USER" != "${cfg.user}" ]]; then
|
||||
echo "please run as user 'healtchecks'." >/dev/stderr
|
||||
exit 1
|
||||
sudo='exec /run/wrappers/bin/sudo -u ${cfg.user} --preserve-env --preserve-env=PYTHONPATH'
|
||||
fi
|
||||
export $(cat ${environmentFile} | xargs);
|
||||
exec ${pkg}/opt/healthchecks/manage.py "$@"
|
||||
'');
|
||||
export $(cat ${environmentFile} | xargs)
|
||||
$sudo ${pkg}/opt/healthchecks/manage.py "$@"
|
||||
'';
|
||||
in
|
||||
{
|
||||
options.services.healthchecks = {
|
||||
@ -163,7 +163,7 @@ in
|
||||
WorkingDirectory = cfg.dataDir;
|
||||
User = cfg.user;
|
||||
Group = cfg.group;
|
||||
EnvironmentFile = environmentFile;
|
||||
EnvironmentFile = [ environmentFile ];
|
||||
StateDirectory = mkIf (cfg.dataDir == "/var/lib/healthchecks") "healthchecks";
|
||||
StateDirectoryMode = mkIf (cfg.dataDir == "/var/lib/healthchecks") "0750";
|
||||
};
|
||||
|
@ -16,6 +16,9 @@ with lib;
|
||||
# Containers should be light-weight, so start sshd on demand.
|
||||
services.openssh.startWhenNeeded = mkDefault true;
|
||||
|
||||
# containers do not need to setup devices
|
||||
services.udev.enable = false;
|
||||
|
||||
# Shut up warnings about not having a boot loader.
|
||||
system.build.installBootLoader = lib.mkDefault "${pkgs.coreutils}/bin/true";
|
||||
|
||||
|
@ -18,8 +18,6 @@ import ./make-test-python.nix ({ pkgs, ...} : {
|
||||
enable = true;
|
||||
jobBuilder = {
|
||||
enable = true;
|
||||
accessUser = "admin";
|
||||
accessTokenFile = "/var/lib/jenkins/secrets/initialAdminPassword";
|
||||
nixJobs = [
|
||||
{ job = {
|
||||
name = "job-1";
|
||||
|
@ -33,10 +33,10 @@ import ../make-test-python.nix ({ lib, pkgs, ... }: {
|
||||
)
|
||||
|
||||
with subtest("Manage script works"):
|
||||
# Should fail if not called by healthchecks user
|
||||
machine.fail("echo 'print(\"foo\")' | healthchecks-manage help")
|
||||
|
||||
# "shell" sucommand should succeed, needs python in PATH.
|
||||
assert "foo\n" == machine.succeed("echo 'print(\"foo\")' | sudo -u healthchecks healthchecks-manage shell")
|
||||
|
||||
# Shouldn't fail if not called by healthchecks user
|
||||
assert "foo\n" == machine.succeed("echo 'print(\"foo\")' | healthchecks-manage shell")
|
||||
'';
|
||||
})
|
||||
|
@ -2,11 +2,11 @@
|
||||
|
||||
appimageTools.wrapType2 rec {
|
||||
pname = "cider";
|
||||
version = "1.5.6";
|
||||
version = "1.5.7";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/ciderapp/cider-releases/releases/download/v${version}/Cider-${version}.AppImage";
|
||||
sha256 = "sha256-gn0dRoPPolujZ1ukuo/esSLwbhiPdcknIe9+W6iRaYw=";
|
||||
sha256 = "sha256-fWpt7YxqEDa1U4CwyVZwgbiwe0lrh64v0cJG9pbNMUU=";
|
||||
};
|
||||
|
||||
extraInstallCommands =
|
||||
|
@ -18,13 +18,13 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "tagger";
|
||||
version = "2022.10.4";
|
||||
version = "2022.10.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "nlogozzo";
|
||||
repo = "NickvisionTagger";
|
||||
rev = version;
|
||||
hash = "sha256-I4jhlz/dmS24nszP755xlYMF6aLhmAxlv6Td4xFbr3U=";
|
||||
hash = "sha256-rkpeecJUOBom0clrwftBa/VxACTihfMfWVmfbZhMQ50=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
@ -1,17 +1,17 @@
|
||||
{ autoreconfHook, boost179, cargo, coreutils, curl, cxx-rs, db62, fetchFromGitHub
|
||||
, hexdump, lib, libevent, libsodium, makeWrapper, rust, rustPlatform, pkg-config
|
||||
, stdenv, testers, utf8cpp, util-linux, zcash, zeromq
|
||||
{ autoreconfHook, boost180, cargo, coreutils, curl, cxx-rs, db62, fetchFromGitHub
|
||||
, hexdump, hostPlatform, lib, libevent, libsodium, makeWrapper, rust, rustPlatform
|
||||
, pkg-config, Security, stdenv, testers, utf8cpp, util-linux, zcash, zeromq
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage.override { inherit stdenv; } rec {
|
||||
pname = "zcash";
|
||||
version = "5.1.0";
|
||||
version = "5.3.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "zcash";
|
||||
repo = "zcash";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-tU6DuWpe8Vlx0qIilAKWuO7WFp1ucbxtvOxoWLA0gdc=";
|
||||
hash = "sha256-mlABKZDYYC3y+KlXQVFqdcm46m8K9tbOCqk4lM4shp8=";
|
||||
};
|
||||
|
||||
prePatch = lib.optionalString stdenv.isAarch64 ''
|
||||
@ -20,15 +20,20 @@ rustPlatform.buildRustPackage.override { inherit stdenv; } rec {
|
||||
--replace "linker = \"aarch64-linux-gnu-gcc\"" ""
|
||||
'';
|
||||
|
||||
patches = [
|
||||
./patches/fix-missing-header.patch
|
||||
];
|
||||
|
||||
cargoSha256 = "sha256-ZWmkveDEENdXRirGmnUWSjtPNJvX0Jpgfxhzk44F7Q0=";
|
||||
cargoHash = "sha256-6uhtOaBsgMw59Dy6yivZYUEWDsYfpInA7VmJrqxDS/4=";
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook cargo cxx-rs hexdump makeWrapper pkg-config ];
|
||||
|
||||
buildInputs = [ boost179 db62 libevent libsodium utf8cpp zeromq ];
|
||||
buildInputs = [
|
||||
boost180
|
||||
db62
|
||||
libevent
|
||||
libsodium
|
||||
utf8cpp
|
||||
zeromq
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
Security
|
||||
];
|
||||
|
||||
# Use the stdenv default phases (./configure; make) instead of the
|
||||
# ones from buildRustPackage.
|
||||
@ -50,7 +55,7 @@ rustPlatform.buildRustPackage.override { inherit stdenv; } rec {
|
||||
|
||||
configureFlags = [
|
||||
"--disable-tests"
|
||||
"--with-boost-libdir=${lib.getLib boost179}/lib"
|
||||
"--with-boost-libdir=${lib.getLib boost180}/lib"
|
||||
"RUST_TARGET=${rust.toRustTargetSpec stdenv.hostPlatform}"
|
||||
];
|
||||
|
||||
@ -75,5 +80,8 @@ rustPlatform.buildRustPackage.override { inherit stdenv; } rec {
|
||||
homepage = "https://z.cash/";
|
||||
maintainers = with maintainers; [ rht tkerber centromere ];
|
||||
license = licenses.mit;
|
||||
|
||||
# https://github.com/zcash/zcash/issues/4405
|
||||
broken = hostPlatform.isAarch64 && hostPlatform.isDarwin;
|
||||
};
|
||||
}
|
||||
|
@ -1,10 +0,0 @@
|
||||
--- a/src/uint256.h 2022-07-20 10:07:39.191319302 +0000
|
||||
+++ b/src/uint256.h 2022-07-20 10:07:11.809632293 +0000
|
||||
@@ -7,6 +7,7 @@
|
||||
#ifndef BITCOIN_UINT256_H
|
||||
#define BITCOIN_UINT256_H
|
||||
|
||||
+#include <array>
|
||||
#include <assert.h>
|
||||
#include <cstring>
|
||||
#include <stdexcept>
|
@ -1469,8 +1469,8 @@ let
|
||||
mktplcRef = {
|
||||
name = "nix-ide";
|
||||
publisher = "jnoortheen";
|
||||
version = "0.1.23";
|
||||
sha256 = "sha256-64gwwajfgniVzJqgVLK9b8PfkNG5mk1W+qewKL7Dv0Q=";
|
||||
version = "0.2.1";
|
||||
sha256 = "sha256-yC4ybThMFA2ncGhp8BYD7IrwYiDU3226hewsRvJYKy4=";
|
||||
};
|
||||
meta = with lib; {
|
||||
changelog = "https://marketplace.visualstudio.com/items/jnoortheen.nix-ide/changelog";
|
||||
|
@ -1,26 +1,26 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, SDL2
|
||||
, curl
|
||||
, docbook_xml_dtd_45
|
||||
, docbook_xsl
|
||||
, libtool
|
||||
, pkg-config
|
||||
, curl
|
||||
, readline
|
||||
, wget
|
||||
, libobjc
|
||||
, enableX11 ? !stdenv.isDarwin
|
||||
, gtk3
|
||||
, libGL
|
||||
, libGLU
|
||||
, libX11
|
||||
, libXpm
|
||||
, enableSdl2 ? true
|
||||
, SDL2
|
||||
, enableTerm ? true
|
||||
, libobjc
|
||||
, libtool
|
||||
, ncurses
|
||||
, enableWx ? !stdenv.isDarwin
|
||||
, pkg-config
|
||||
, readline
|
||||
, wget
|
||||
, wxGTK
|
||||
, gtk3
|
||||
, enableSDL2 ? true
|
||||
, enableTerm ? true
|
||||
, enableWx ? !stdenv.isDarwin
|
||||
, enableX11 ? !stdenv.isDarwin
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
@ -28,7 +28,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
version = "2.7";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/project/${finalAttrs.pname}/${finalAttrs.pname}/${finalAttrs.version}/${finalAttrs.pname}-${finalAttrs.version}.tar.gz";
|
||||
url = "mirror://sourceforge/project/bochs/bochs/${finalAttrs.version}/bochs-${finalAttrs.version}.tar.gz";
|
||||
hash = "sha256-oBCrG/3HKsWgjS4kEs1HHA/r1mrx2TSbwNeWh53lsXo=";
|
||||
};
|
||||
|
||||
@ -43,20 +43,20 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
curl
|
||||
readline
|
||||
wget
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
libobjc
|
||||
] ++ lib.optionals enableSDL2 [
|
||||
SDL2
|
||||
] ++ lib.optionals enableTerm [
|
||||
ncurses
|
||||
] ++ lib.optionals enableWx [
|
||||
gtk3
|
||||
wxGTK
|
||||
] ++ lib.optionals enableX11 [
|
||||
libGL
|
||||
libGLU
|
||||
libX11
|
||||
libXpm
|
||||
] ++ lib.optionals enableSdl2 [
|
||||
SDL2
|
||||
] ++ lib.optionals enableTerm [
|
||||
ncurses
|
||||
] ++ lib.optionals enableWx [
|
||||
wxGTK
|
||||
gtk3
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
libobjc
|
||||
];
|
||||
|
||||
configureFlags = [
|
||||
@ -114,6 +114,15 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
"--enable-voodoo"
|
||||
"--enable-x86-64"
|
||||
"--enable-x86-debugger"
|
||||
] ++ lib.optionals enableSDL2 [
|
||||
"--with-sdl2"
|
||||
] ++ lib.optionals enableTerm [
|
||||
"--with-term"
|
||||
] ++ lib.optionals enableWx [
|
||||
"--with-wx"
|
||||
] ++ lib.optionals enableX11 [
|
||||
"--with-x"
|
||||
"--with-x11"
|
||||
] ++ lib.optionals (!stdenv.isDarwin) [
|
||||
"--enable-e1000"
|
||||
"--enable-es1370"
|
||||
@ -121,15 +130,6 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
"--enable-plugins"
|
||||
"--enable-pnic"
|
||||
"--enable-sb16"
|
||||
] ++ lib.optionals enableX11 [
|
||||
"--with-x"
|
||||
"--with-x11"
|
||||
] ++ lib.optionals enableSdl2 [
|
||||
"--with-sdl2"
|
||||
] ++ lib.optionals enableTerm [
|
||||
"--with-term"
|
||||
] ++ lib.optionals enableWx [
|
||||
"--with-wx"
|
||||
];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
@ -2,13 +2,13 @@
|
||||
|
||||
buildPythonApplication rec {
|
||||
pname = "gallery-dl";
|
||||
version = "1.23.4";
|
||||
version = "1.23.5";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit version;
|
||||
pname = "gallery_dl";
|
||||
sha256 = "sha256-IpbV6wWIfRDuljX/Bexo9siFXMezeCRBFK5CzVH0vUU=";
|
||||
sha256 = "sha256-NhnuW7rq5Dgrnkw/nUO/pFg/Sh2D/d9gFCIb+gQy5QE=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
@ -2,16 +2,16 @@
|
||||
|
||||
let
|
||||
pname = "passky-desktop";
|
||||
version = "5.0.0";
|
||||
version = "7.1.0";
|
||||
|
||||
srcs = {
|
||||
x86_64-linux = fetchurl {
|
||||
url = "https://github.com/Rabbit-Company/Passky-Desktop/releases/download/v${version}/Passky-${version}.AppImage";
|
||||
sha256 = "19sy9y2bcxrf10ifszinh4yn32q3032h3d1qxm046zffzl069807";
|
||||
sha256 = "1xnhrmmm018mmyzjq05mhbf673f0n81fh1k3kbfarbgk2kbwpq6y";
|
||||
};
|
||||
x86_64-darwin = fetchurl {
|
||||
url = "https://github.com/Rabbit-Company/Passky-Desktop/releases/download/v${version}/Passky-${version}.dmg";
|
||||
sha256 = "sha256-lclJOaYe+2XeKhJb2WcOAzjBMzK3YEmlS4rXuRUJYU0=";
|
||||
sha256 = "0mm7hk4v7zvpjdqyw3nhk33x72j0gh3f59bx3q18azlm4dr61r2d";
|
||||
};
|
||||
};
|
||||
src = srcs.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
|
||||
|
@ -1,8 +1,8 @@
|
||||
{
|
||||
"stable": {
|
||||
"version": "107.0.5304.68",
|
||||
"sha256": "0k5qrmby1k2gw3lj96x3qag20kka61my578pv0zyrqqj5sdz3i5a",
|
||||
"sha256bin64": "1x9svz5s8fm2zhnpzjpqckzfp37hjni3nf3pm63rwnvbd06y48ja",
|
||||
"version": "107.0.5304.87",
|
||||
"sha256": "0n9wr5v7zcdmbqs7mmnyydjvzw0glh5l3skpj7i1nap2hv0h03kc",
|
||||
"sha256bin64": "16a6qisxkfmx60qh67rvfy3knp66hdgxan48cga6j3zd683inas2",
|
||||
"deps": {
|
||||
"gn": {
|
||||
"version": "2022-09-14",
|
||||
@ -19,22 +19,9 @@
|
||||
}
|
||||
},
|
||||
"beta": {
|
||||
"version": "107.0.5304.68",
|
||||
"sha256": "0k5qrmby1k2gw3lj96x3qag20kka61my578pv0zyrqqj5sdz3i5a",
|
||||
"sha256bin64": "15ijvsm9k28iwr7dxi2vbrlb7z5nz63yvpx7cg766z1z1q5jcg7m",
|
||||
"deps": {
|
||||
"gn": {
|
||||
"version": "2022-09-14",
|
||||
"url": "https://gn.googlesource.com/gn",
|
||||
"rev": "fff29c1b3f9703ea449f720fe70fa73575ef24e5",
|
||||
"sha256": "1c0dvpp4im1hf277bs5w7rgqxz3g2bax266i2g6smi3pl7a8jpnp"
|
||||
}
|
||||
}
|
||||
},
|
||||
"dev": {
|
||||
"version": "108.0.5359.19",
|
||||
"sha256": "1093anaymbmza6rf9hisl6qdf9jfaa27kyd3gbv5xyc0i450ypg5",
|
||||
"sha256bin64": "0yi6qi7asmh3kx6y86p22smjf5bpay1nrj09zg7l2qd3gi836xp0",
|
||||
"version": "108.0.5359.22",
|
||||
"sha256": "1wwrwqyl9nl4kpkmkybw14ygj5lfrk274yx5f817ha1kpk8vma0y",
|
||||
"sha256bin64": "0dq3mf1rai7i3aqq9h8g4iy9nxy3hbb6gd86c31admxygdpgpds5",
|
||||
"deps": {
|
||||
"gn": {
|
||||
"version": "2022-10-05",
|
||||
@ -44,10 +31,23 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"dev": {
|
||||
"version": "109.0.5384.0",
|
||||
"sha256": "195lbklp5c6bvfzhdvah4k2yr44jwy64499y37kgxky0mb79a26n",
|
||||
"sha256bin64": "02qbwj9gfcgxdqm1mhxg0mljvrhnl994lhis615y23099r3r67i8",
|
||||
"deps": {
|
||||
"gn": {
|
||||
"version": "2022-10-26",
|
||||
"url": "https://gn.googlesource.com/gn",
|
||||
"rev": "3e98c606ed0dff59fa461fbba4892c0b6de1966e",
|
||||
"sha256": "08cz58svkb7c71f1x1ahr60a6ircr31rfmkk4d46z2v39sgry1gv"
|
||||
}
|
||||
}
|
||||
},
|
||||
"ungoogled-chromium": {
|
||||
"version": "107.0.5304.68",
|
||||
"sha256": "0k5qrmby1k2gw3lj96x3qag20kka61my578pv0zyrqqj5sdz3i5a",
|
||||
"sha256bin64": "1x9svz5s8fm2zhnpzjpqckzfp37hjni3nf3pm63rwnvbd06y48ja",
|
||||
"version": "107.0.5304.88",
|
||||
"sha256": "1k4j4j9b1m7kjybfgns9akb7adfby3gnjpibk0kjd22n3sprar8y",
|
||||
"sha256bin64": null,
|
||||
"deps": {
|
||||
"gn": {
|
||||
"version": "2022-09-14",
|
||||
@ -56,8 +56,8 @@
|
||||
"sha256": "1c0dvpp4im1hf277bs5w7rgqxz3g2bax266i2g6smi3pl7a8jpnp"
|
||||
},
|
||||
"ungoogled-patches": {
|
||||
"rev": "107.0.5304.68-1",
|
||||
"sha256": "0rjdi2lr71xjjf4x27183ys87fc95m85yp5x3kk6i39ppksvsj6b"
|
||||
"rev": "107.0.5304.88-1",
|
||||
"sha256": "1m9hjbs79ga5jw7x332jl882lh7yrr4n4r4qrzy37ai75x371pz2"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -8,12 +8,12 @@
|
||||
}:
|
||||
|
||||
let
|
||||
version = "1.10.1";
|
||||
version = "1.10.3";
|
||||
pname = "session-desktop";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/oxen-io/session-desktop/releases/download/v${version}/session-desktop-linux-x86_64-${version}.AppImage";
|
||||
sha256 = "sha256-DArIq5bxyeHy45ZkE+FIpxBl4P6jiHTCN1lVCuF81O8=";
|
||||
sha256 = "sha256-I9YyzfI8EqH8LZe5E5BnD9lGPAdQo++l3yRClfN7+pY=";
|
||||
};
|
||||
appimage = appimageTools.wrapType2 {
|
||||
inherit version pname src;
|
||||
|
@ -1,63 +1,50 @@
|
||||
{ lib
|
||||
, fetchFromGitHub
|
||||
, python3
|
||||
, wrapQtAppsHook
|
||||
, qt6
|
||||
, nixosTests
|
||||
}:
|
||||
|
||||
let
|
||||
inherit (pypkgs) makePythonPath;
|
||||
|
||||
pypkgs = (python3.override {
|
||||
packageOverrides = self: super: {
|
||||
# Use last available version of maestral that still supports PyQt5
|
||||
# Remove this override when PyQt6 is available
|
||||
maestral = super.maestral.overridePythonAttrs (old: rec {
|
||||
version = "1.5.3";
|
||||
src = fetchFromGitHub {
|
||||
owner = "SamSchott";
|
||||
repo = "maestral";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-Uo3vcYez2qSq162SSKjoCkwygwR5awzDceIq8/h3dao=";
|
||||
};
|
||||
});
|
||||
};
|
||||
}).pkgs;
|
||||
|
||||
in
|
||||
pypkgs.buildPythonApplication rec {
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
pname = "maestral-qt";
|
||||
version = "1.5.3";
|
||||
disabled = pypkgs.pythonOlder "3.6";
|
||||
version = "1.6.3";
|
||||
disabled = python3.pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "SamSchott";
|
||||
repo = "maestral-qt";
|
||||
rev = "refs/tags/v${version}";
|
||||
sha256 = "sha256-zaG9Zwz9S/SVb7xDa7eXkjLNt1BhA1cQ3I18rVt+8uQ=";
|
||||
sha256 = "sha256-Fvr5WhrhxPBeAMsrVj/frg01qgt2SeWgrRJYgBxRFHc=";
|
||||
};
|
||||
|
||||
format = "pyproject";
|
||||
|
||||
propagatedBuildInputs = with pypkgs; [
|
||||
propagatedBuildInputs = with python3.pkgs; [
|
||||
click
|
||||
markdown2
|
||||
maestral
|
||||
packaging
|
||||
pyqt5
|
||||
] ++ lib.optionals (pythonOlder "3.9") [
|
||||
importlib-resources
|
||||
pyqt6
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ wrapQtAppsHook ];
|
||||
buildInputs = [
|
||||
qt6.qtbase
|
||||
qt6.qtsvg # Needed for the systray icon
|
||||
];
|
||||
|
||||
makeWrapperArgs = [
|
||||
nativeBuildInputs = [
|
||||
qt6.wrapQtAppsHook
|
||||
];
|
||||
|
||||
dontWrapQtApps = true;
|
||||
|
||||
makeWrapperArgs = with python3.pkgs; [
|
||||
# Firstly, add all necessary QT variables
|
||||
"\${qtWrapperArgs[@]}"
|
||||
|
||||
# Add the installed directories to the python path so the daemon can find them
|
||||
"--prefix PYTHONPATH : ${makePythonPath (pypkgs.requiredPythonModules pypkgs.maestral.propagatedBuildInputs)}"
|
||||
"--prefix PYTHONPATH : ${makePythonPath [ pypkgs.maestral ]}"
|
||||
"--prefix PYTHONPATH : ${makePythonPath (requiredPythonModules maestral.propagatedBuildInputs)}"
|
||||
"--prefix PYTHONPATH : ${makePythonPath [ maestral ]}"
|
||||
];
|
||||
|
||||
# no tests
|
||||
|
@ -23,10 +23,17 @@ stdenv.mkDerivation rec {
|
||||
nativeBuildInputs = [ which python3 ldc ];
|
||||
buildInputs = [ zlib lz4 ];
|
||||
|
||||
buildFlags = [
|
||||
"CC=${stdenv.cc.targetPrefix}cc"
|
||||
];
|
||||
|
||||
# Upstream's install target is broken; copy manually
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp bin/sambamba-${version} $out/bin/sambamba
|
||||
runHook preInstall
|
||||
|
||||
install -Dm755 bin/sambamba-${version} $out/bin/sambamba
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
37
pkgs/applications/science/logic/nusmv/default.nix
Normal file
37
pkgs/applications/science/logic/nusmv/default.nix
Normal file
@ -0,0 +1,37 @@
|
||||
{ stdenv
|
||||
, lib
|
||||
, fetchurl
|
||||
, autoPatchelfHook
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "NuSMV";
|
||||
version = "2.6.0";
|
||||
|
||||
src = with stdenv; fetchurl (
|
||||
if isx86_64 && isLinux then {
|
||||
url = "https://nusmv.fbk.eu/distrib/NuSMV-${version}-linux64.tar.gz";
|
||||
sha256 = "1370x2vwjndv9ham5q399nn84hvhm1gj1k7pq576qmh4pi12xc8i";
|
||||
} else if isx86_32 && isLinux then {
|
||||
url = "https://nusmv.fbk.eu/distrib/NuSMV-${version}-linux32.tar.gz";
|
||||
sha256 = "1qf41czwbqxlrmv0rv2daxgz2hljza5xks85sx3dhwpjy2iav9jb";
|
||||
} else throw "only linux x86_64 and x86_32 are currently supported") ;
|
||||
|
||||
|
||||
nativeBuildInputs = [ autoPatchelfHook ];
|
||||
|
||||
installPhase = ''
|
||||
install -m755 -D bin/NuSMV $out/bin/NuSMV
|
||||
install -m755 -D bin/ltl2smv $out/bin/ltl2smv
|
||||
cp -r include $out/include
|
||||
cp -r share $out/share
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A new symbolic model checker for the analysis of synchronous finite-state and infinite-state systems";
|
||||
homepage = "https://nuxmv.fbk.eu/pmwiki.php";
|
||||
maintainers = with maintainers; [ mgttlinger ];
|
||||
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
@ -26,7 +26,7 @@
|
||||
}:
|
||||
let
|
||||
pname = "gamescope";
|
||||
version = "3.11.47";
|
||||
version = "3.11.48";
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
inherit pname version;
|
||||
@ -35,7 +35,7 @@ stdenv.mkDerivation {
|
||||
owner = "Plagman";
|
||||
repo = "gamescope";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-GkvujrYc7dBbsGqeG0THqtEAox+VZ3DoWQK4gkHo+ds=";
|
||||
hash = "sha256-/a0fW0NVIrg9tuK+mg+D+IOcq3rJJxKdFwspM1ZRR9M=";
|
||||
};
|
||||
|
||||
patches = [ ./use-pkgconfig.patch ];
|
||||
|
@ -8,14 +8,16 @@ in (fetchgit {
|
||||
rev = "41969df76e82aeec85fa3821b1e24955ea993001";
|
||||
|
||||
postFetch = ''
|
||||
mv $out/* .
|
||||
mv $out source
|
||||
cd source
|
||||
|
||||
mkdir -p $out/share/fonts/truetype
|
||||
mkdir -p $out/share/doc/go-font
|
||||
cp font/gofont/ttfs/* $out/share/fonts/truetype
|
||||
mv $out/share/fonts/truetype/README $out/share/doc/go-font/LICENSE
|
||||
'';
|
||||
|
||||
sha256 = "dteUL/4ZUq3ybL6HaLYqu2Tslx3q8VvELIY3tVC+ODo=";
|
||||
sha256 = "175jwq16qjnd2k923n9gcbjizchy7yv4n41dm691sjwrhbl0b13x";
|
||||
}) // {
|
||||
meta = with lib; {
|
||||
homepage = "https://blog.golang.org/go-fonts";
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"commit": "2c8100e0ec017b1ab20fcf4679176087b10fbd45",
|
||||
"url": "https://github.com/commercialhaskell/all-cabal-hashes/archive/2c8100e0ec017b1ab20fcf4679176087b10fbd45.tar.gz",
|
||||
"sha256": "16jvcyn4cxc2f0p92f71yk1n2p6jmblnhqm8is5ipn0j4xz6l0bl",
|
||||
"msg": "Update from Hackage at 2022-10-11T19:16:50Z"
|
||||
"commit": "8983027e744098e8a2fbeac09bcc6eb8a9471fff",
|
||||
"url": "https://github.com/commercialhaskell/all-cabal-hashes/archive/8983027e744098e8a2fbeac09bcc6eb8a9471fff.tar.gz",
|
||||
"sha256": "1iqgakw71x8cymdifpqnv546wmmrda6w862axli4k03vj7rv91iw",
|
||||
"msg": "Update from Hackage at 2022-10-27T19:26:33Z"
|
||||
}
|
||||
|
@ -20,10 +20,19 @@ in stdenv.mkDerivation {
|
||||
|
||||
nativeBuildInputs = lib.optionals hostPlatform.isLinux [
|
||||
autoPatchelfHook
|
||||
] ++ lib.optional hostPlatform.isDarwin fixDarwinDylibNames;
|
||||
propagatedBuildInputs = [ curl tzdata ] ++ lib.optional hostPlatform.isLinux glibc;
|
||||
] ++ lib.optionals hostPlatform.isDarwin [
|
||||
fixDarwinDylibNames
|
||||
];
|
||||
propagatedBuildInputs = [
|
||||
curl
|
||||
tzdata
|
||||
] ++ lib.optionals hostPlatform.isLinux [
|
||||
glibc
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out
|
||||
|
||||
# try to copy model-specific binaries into bin first
|
||||
@ -41,8 +50,16 @@ in stdenv.mkDerivation {
|
||||
|
||||
# fix paths in dmd.conf (one level less)
|
||||
substituteInPlace $out/bin/dmd.conf --replace "/../../" "/../"
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
# Stripping on Darwin started to break libphobos2.a
|
||||
# Undefined symbols for architecture x86_64:
|
||||
# "_rt_envvars_enabled", referenced from:
|
||||
# __D2rt6config16rt_envvarsOptionFNbNiAyaMDFNbNiQkZQnZQq in libphobos2.a(config_99a_6c3.o)
|
||||
dontStrip = hostPlatform.isDarwin;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Digital Mars D Compiler Package";
|
||||
# As of 2.075 all sources and binaries use the boost license
|
||||
|
@ -3,7 +3,7 @@ callPackage ./binary.nix {
|
||||
version = "2.090.1";
|
||||
hashes = {
|
||||
# Get these from `nix-prefetch-url http://downloads.dlang.org/releases/2.x/2.090.1/dmd.2.090.1.linux.tar.xz` etc..
|
||||
osx = "0rbn7j4dr3q0y09fblpj999bi063pi4230rqd5xgd3gwxxa0cz7l";
|
||||
linux = "1vk6lsvd6y7ccvffd23yial4ig90azaxf2rxc6yvidqd1qhan807";
|
||||
osx = "sha256-9HwGVO/8jfZ6aTiDIUi8w4C4Ukry0uUS8ACP3Ig8dmU=";
|
||||
linux = "sha256-ByCrIA4Nt7i9YT0L19VXIL1IqIp+iObcZux407amZu4=";
|
||||
};
|
||||
}
|
||||
|
@ -1,217 +1,6 @@
|
||||
{ stdenv, lib, fetchFromGitHub
|
||||
, makeWrapper, unzip, which, writeTextFile
|
||||
, curl, tzdata, gdb, Foundation, git, callPackage
|
||||
, targetPackages, fetchpatch, bash
|
||||
, HOST_DMD? "${callPackage ./bootstrap.nix { }}/bin/dmd"
|
||||
, version? "2.097.2"
|
||||
, dmdSha256? "16ldkk32y7ln82n7g2ym5d1xf3vly3i31hf8600cpvimf6yhr6kb"
|
||||
, druntimeSha256? "1sayg6ia85jln8g28vb4m124c27lgbkd6xzg9gblss8ardb8dsp1"
|
||||
, phobosSha256? "0czg13h65b6qwhk9ibya21z3iv3fpk3rsjr3zbcrpc2spqjknfw5"
|
||||
}:
|
||||
|
||||
let
|
||||
dmdConfFile = writeTextFile {
|
||||
name = "dmd.conf";
|
||||
text = (lib.generators.toINI {} {
|
||||
Environment = {
|
||||
DFLAGS = ''-I@out@/include/dmd -L-L@out@/lib -fPIC ${lib.optionalString (!targetPackages.stdenv.cc.isClang) "-L--export-dynamic"}'';
|
||||
};
|
||||
});
|
||||
};
|
||||
|
||||
bits = builtins.toString stdenv.hostPlatform.parsed.cpu.bits;
|
||||
in
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "dmd";
|
||||
inherit version;
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
srcs = [
|
||||
(fetchFromGitHub {
|
||||
owner = "dlang";
|
||||
repo = "dmd";
|
||||
rev = "v${version}";
|
||||
sha256 = dmdSha256;
|
||||
name = "dmd";
|
||||
})
|
||||
(fetchFromGitHub {
|
||||
owner = "dlang";
|
||||
repo = "druntime";
|
||||
rev = "v${version}";
|
||||
sha256 = druntimeSha256;
|
||||
name = "druntime";
|
||||
})
|
||||
(fetchFromGitHub {
|
||||
owner = "dlang";
|
||||
repo = "phobos";
|
||||
rev = "v${version}";
|
||||
sha256 = phobosSha256;
|
||||
name = "phobos";
|
||||
})
|
||||
];
|
||||
|
||||
sourceRoot = ".";
|
||||
|
||||
# https://issues.dlang.org/show_bug.cgi?id=19553
|
||||
hardeningDisable = [ "fortify" ];
|
||||
|
||||
# Not using patches option to make it easy to patch, for example, dmd and
|
||||
# Phobos at same time if that's required
|
||||
patchPhase =
|
||||
|
||||
# Migrates D1-style operator overloads in DMD source, to allow building with
|
||||
# a newer DMD
|
||||
lib.optionalString (lib.versionOlder version "2.088.0") ''
|
||||
patch -p1 -F3 --directory=dmd -i ${(fetchpatch {
|
||||
url = "https://github.com/dlang/dmd/commit/c4d33e5eb46c123761ac501e8c52f33850483a8a.patch";
|
||||
sha256 = "0rhl9h3hsi6d0qrz24f4zx960cirad1h8mm383q6n21jzcw71cp5";
|
||||
})}
|
||||
''
|
||||
|
||||
# Fixes C++ tests that compiled on older C++ but not on the current one
|
||||
+ lib.optionalString (lib.versionOlder version "2.092.2") ''
|
||||
patch -p1 -F3 --directory=druntime -i ${(fetchpatch {
|
||||
url = "https://github.com/dlang/druntime/commit/438990def7e377ca1f87b6d28246673bb38022ab.patch";
|
||||
sha256 = "0nxzkrd1rzj44l83j7jj90yz2cv01na8vn9d116ijnm85jl007b4";
|
||||
})}
|
||||
''
|
||||
|
||||
+ postPatch;
|
||||
|
||||
|
||||
postPatch =
|
||||
''
|
||||
patchShebangs .
|
||||
|
||||
# Disable tests that rely on objdump whitespace until fixed upstream:
|
||||
# https://issues.dlang.org/show_bug.cgi?id=23317
|
||||
rm dmd/test/runnable/cdvecfill.sh
|
||||
rm dmd/test/compilable/cdcmp.d
|
||||
''
|
||||
|
||||
# This one has tested against a hardcoded year, then against a current year on
|
||||
# and off again. It just isn't worth it to patch all the historical versions
|
||||
# of it, so just remove it until the most recent change.
|
||||
+ lib.optionalString (lib.versionOlder version "2.091.0") ''
|
||||
rm dmd/test/compilable/ddocYear.d
|
||||
''
|
||||
|
||||
+ lib.optionalString (version == "2.092.1") ''
|
||||
rm dmd/test/dshell/test6952.d
|
||||
'' + lib.optionalString (lib.versionAtLeast version "2.092.2") ''
|
||||
substituteInPlace dmd/test/dshell/test6952.d --replace "/usr/bin/env bash" "${bash}/bin/bash"
|
||||
''
|
||||
|
||||
+ ''
|
||||
rm dmd/test/runnable/gdb1.d
|
||||
rm dmd/test/runnable/gdb10311.d
|
||||
rm dmd/test/runnable/gdb14225.d
|
||||
rm dmd/test/runnable/gdb14276.d
|
||||
rm dmd/test/runnable/gdb14313.d
|
||||
rm dmd/test/runnable/gdb14330.d
|
||||
rm dmd/test/runnable/gdb15729.sh
|
||||
rm dmd/test/runnable/gdb4149.d
|
||||
rm dmd/test/runnable/gdb4181.d
|
||||
|
||||
# Grep'd string changed with gdb 12
|
||||
substituteInPlace druntime/test/exceptions/Makefile \
|
||||
--replace 'in D main (' 'in _Dmain ('
|
||||
''
|
||||
|
||||
+ lib.optionalString stdenv.isLinux ''
|
||||
substituteInPlace phobos/std/socket.d --replace "assert(ih.addrList[0] == 0x7F_00_00_01);" ""
|
||||
'' + lib.optionalString stdenv.isDarwin ''
|
||||
substituteInPlace phobos/std/socket.d --replace "foreach (name; names)" "names = []; foreach (name; names)"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ makeWrapper unzip which git ];
|
||||
|
||||
buildInputs = [ gdb curl tzdata ]
|
||||
++ lib.optionals stdenv.isDarwin [ Foundation gdb ];
|
||||
|
||||
|
||||
osname = if stdenv.isDarwin then
|
||||
"osx"
|
||||
else
|
||||
stdenv.hostPlatform.parsed.kernel.name;
|
||||
top = "$NIX_BUILD_TOP";
|
||||
pathToDmd = "${top}/dmd/generated/${osname}/release/${bits}/dmd";
|
||||
|
||||
# Build and install are based on http://wiki.dlang.org/Building_DMD
|
||||
buildPhase = ''
|
||||
cd dmd
|
||||
make -j$NIX_BUILD_CORES -f posix.mak INSTALL_DIR=$out BUILD=release ENABLE_RELEASE=1 PIC=1 HOST_DMD=${HOST_DMD}
|
||||
cd ../druntime
|
||||
make -j$NIX_BUILD_CORES -f posix.mak BUILD=release ENABLE_RELEASE=1 PIC=1 INSTALL_DIR=$out DMD=${pathToDmd}
|
||||
cd ../phobos
|
||||
echo ${tzdata}/share/zoneinfo/ > TZDatabaseDirFile
|
||||
echo ${curl.out}/lib/libcurl${stdenv.hostPlatform.extensions.sharedLibrary} > LibcurlPathFile
|
||||
make -j$NIX_BUILD_CORES -f posix.mak BUILD=release ENABLE_RELEASE=1 PIC=1 INSTALL_DIR=$out DMD=${pathToDmd} DFLAGS="-version=TZDatabaseDir -version=LibcurlPath -J$(pwd)"
|
||||
cd ..
|
||||
'';
|
||||
|
||||
doCheck = true;
|
||||
|
||||
# many tests are disbled because they are failing
|
||||
|
||||
# NOTE: Purity check is disabled for checkPhase because it doesn't fare well
|
||||
# with the DMD linker. See https://github.com/NixOS/nixpkgs/issues/97420
|
||||
checkPhase = ''
|
||||
cd dmd
|
||||
NIX_ENFORCE_PURITY= \
|
||||
make -j$NIX_BUILD_CORES -C test -f Makefile PIC=1 CC=$CXX DMD=${pathToDmd} BUILD=release SHELL=$SHELL
|
||||
|
||||
cd ../druntime
|
||||
NIX_ENFORCE_PURITY= \
|
||||
make -j$NIX_BUILD_CORES -f posix.mak unittest PIC=1 DMD=${pathToDmd} BUILD=release
|
||||
|
||||
cd ../phobos
|
||||
NIX_ENFORCE_PURITY= \
|
||||
make -j$NIX_BUILD_CORES -f posix.mak unittest BUILD=release ENABLE_RELEASE=1 PIC=1 DMD=${pathToDmd} DFLAGS="-version=TZDatabaseDir -version=LibcurlPath -J$(pwd)"
|
||||
|
||||
cd ..
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
cd dmd
|
||||
mkdir $out
|
||||
mkdir $out/bin
|
||||
cp ${pathToDmd} $out/bin
|
||||
|
||||
mkdir -p $out/share/man/man1
|
||||
mkdir -p $out/share/man/man5
|
||||
cp -r docs/man/man1/* $out/share/man/man1/
|
||||
cp -r docs/man/man5/* $out/share/man/man5/
|
||||
|
||||
cd ../druntime
|
||||
mkdir $out/include
|
||||
mkdir $out/include/dmd
|
||||
cp -r import/* $out/include/dmd
|
||||
|
||||
cd ../phobos
|
||||
mkdir $out/lib
|
||||
cp generated/${osname}/release/${bits}/libphobos2.* $out/lib
|
||||
|
||||
cp -r std $out/include/dmd
|
||||
cp -r etc $out/include/dmd
|
||||
|
||||
wrapProgram $out/bin/dmd \
|
||||
--prefix PATH ":" "${targetPackages.stdenv.cc}/bin" \
|
||||
--set-default CC "${targetPackages.stdenv.cc}/bin/cc"
|
||||
|
||||
substitute ${dmdConfFile} "$out/bin/dmd.conf" --subst-var out
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
broken = stdenv.isDarwin;
|
||||
description = "Official reference compiler for the D language";
|
||||
homepage = "https://dlang.org/";
|
||||
# Everything is now Boost licensed, even the backend.
|
||||
# https://github.com/dlang/dmd/pull/6680
|
||||
license = licenses.boost;
|
||||
maintainers = with maintainers; [ ThomasMader lionello dukc ];
|
||||
platforms = [ "x86_64-linux" "i686-linux" "x86_64-darwin" ];
|
||||
};
|
||||
import ./generic.nix {
|
||||
version = "2.100.2";
|
||||
dmdSha256 = "sha256-o4+G3ARXIGObYHtHooYZKr+Al6kHpiwpMIog3i4BlDM=";
|
||||
druntimeSha256 = "sha256-qXvY1ECN4mPwOGgOE1FWwvxoRvlSww3tGLWgBdhzAKo=";
|
||||
phobosSha256 = "sha256-kTHRaAKG7cAGb4IE/NGHWaZ8t7ZceKj03l6E8wLzJzs=";
|
||||
}
|
||||
|
250
pkgs/development/compilers/dmd/generic.nix
Normal file
250
pkgs/development/compilers/dmd/generic.nix
Normal file
@ -0,0 +1,250 @@
|
||||
{ version
|
||||
, dmdSha256
|
||||
, druntimeSha256
|
||||
, phobosSha256
|
||||
}:
|
||||
|
||||
{ stdenv
|
||||
, lib
|
||||
, fetchFromGitHub
|
||||
, makeWrapper
|
||||
, which
|
||||
, writeTextFile
|
||||
, curl
|
||||
, tzdata
|
||||
, gdb
|
||||
, Foundation
|
||||
, callPackage
|
||||
, targetPackages
|
||||
, fetchpatch
|
||||
, bash
|
||||
, installShellFiles
|
||||
, git
|
||||
, unzip
|
||||
, HOST_DMD ? "${callPackage ./bootstrap.nix { }}/bin/dmd"
|
||||
}:
|
||||
|
||||
let
|
||||
dmdConfFile = writeTextFile {
|
||||
name = "dmd.conf";
|
||||
text = (lib.generators.toINI { } {
|
||||
Environment = {
|
||||
DFLAGS = ''-I@out@/include/dmd -L-L@out@/lib -fPIC ${lib.optionalString (!targetPackages.stdenv.cc.isClang) "-L--export-dynamic"}'';
|
||||
};
|
||||
});
|
||||
};
|
||||
|
||||
bits = builtins.toString stdenv.hostPlatform.parsed.cpu.bits;
|
||||
osname =
|
||||
if stdenv.isDarwin then
|
||||
"osx"
|
||||
else
|
||||
stdenv.hostPlatform.parsed.kernel.name;
|
||||
|
||||
pathToDmd = "\${NIX_BUILD_TOP}/dmd/generated/${osname}/release/${bits}/dmd";
|
||||
in
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "dmd";
|
||||
inherit version;
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
srcs = [
|
||||
(fetchFromGitHub {
|
||||
owner = "dlang";
|
||||
repo = "dmd";
|
||||
rev = "v${version}";
|
||||
sha256 = dmdSha256;
|
||||
name = "dmd";
|
||||
})
|
||||
(fetchFromGitHub {
|
||||
owner = "dlang";
|
||||
repo = "druntime";
|
||||
rev = "v${version}";
|
||||
sha256 = druntimeSha256;
|
||||
name = "druntime";
|
||||
})
|
||||
(fetchFromGitHub {
|
||||
owner = "dlang";
|
||||
repo = "phobos";
|
||||
rev = "v${version}";
|
||||
sha256 = phobosSha256;
|
||||
name = "phobos";
|
||||
})
|
||||
];
|
||||
|
||||
sourceRoot = ".";
|
||||
|
||||
# https://issues.dlang.org/show_bug.cgi?id=19553
|
||||
hardeningDisable = [ "fortify" ];
|
||||
|
||||
patches = lib.optionals (lib.versionOlder version "2.088.0") [
|
||||
# Migrates D1-style operator overloads in DMD source, to allow building with
|
||||
# a newer DMD
|
||||
(fetchpatch {
|
||||
url = "https://github.com/dlang/dmd/commit/c4d33e5eb46c123761ac501e8c52f33850483a8a.patch";
|
||||
stripLen = 1;
|
||||
extraPrefix = "dmd/";
|
||||
sha256 = "sha256-N21mAPfaTo+zGCip4njejasraV5IsWVqlGR5eOdFZZE=";
|
||||
})
|
||||
] ++ lib.optionals (lib.versionOlder version "2.092.2") [
|
||||
# Fixes C++ tests that compiled on older C++ but not on the current one
|
||||
(fetchpatch {
|
||||
url = "https://github.com/dlang/druntime/commit/438990def7e377ca1f87b6d28246673bb38022ab.patch";
|
||||
stripLen = 1;
|
||||
extraPrefix = "druntime/";
|
||||
sha256 = "sha256-/pPKK7ZK9E/mBrxm2MZyBNhYExE8p9jz8JqBdZSE6uY=";
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs dmd/test/{runnable,fail_compilation,compilable,tools}{,/extra-files}/*.sh
|
||||
|
||||
rm dmd/test/runnable/gdb1.d
|
||||
rm dmd/test/runnable/gdb10311.d
|
||||
rm dmd/test/runnable/gdb14225.d
|
||||
rm dmd/test/runnable/gdb14276.d
|
||||
rm dmd/test/runnable/gdb14313.d
|
||||
rm dmd/test/runnable/gdb14330.d
|
||||
rm dmd/test/runnable/gdb15729.sh
|
||||
rm dmd/test/runnable/gdb4149.d
|
||||
rm dmd/test/runnable/gdb4181.d
|
||||
|
||||
# Disable tests that rely on objdump whitespace until fixed upstream:
|
||||
# https://issues.dlang.org/show_bug.cgi?id=23317
|
||||
rm dmd/test/runnable/cdvecfill.sh
|
||||
rm dmd/test/compilable/cdcmp.d
|
||||
|
||||
# Grep'd string changed with gdb 12
|
||||
# https://issues.dlang.org/show_bug.cgi?id=23198
|
||||
substituteInPlace druntime/test/exceptions/Makefile \
|
||||
--replace 'in D main (' 'in _Dmain ('
|
||||
|
||||
# We're using gnused on all platforms
|
||||
substituteInPlace druntime/test/coverage/Makefile \
|
||||
--replace 'freebsd osx' 'none'
|
||||
''
|
||||
|
||||
+ lib.optionalString (lib.versionOlder version "2.091.0") ''
|
||||
# This one has tested against a hardcoded year, then against a current year on
|
||||
# and off again. It just isn't worth it to patch all the historical versions
|
||||
# of it, so just remove it until the most recent change.
|
||||
rm dmd/test/compilable/ddocYear.d
|
||||
'' + lib.optionalString (lib.versionAtLeast version "2.089.0" && lib.versionOlder version "2.092.2") ''
|
||||
rm dmd/test/dshell/test6952.d
|
||||
'' + lib.optionalString (lib.versionAtLeast version "2.092.2") ''
|
||||
substituteInPlace dmd/test/dshell/test6952.d --replace "/usr/bin/env bash" "${bash}/bin/bash"
|
||||
''
|
||||
|
||||
+ lib.optionalString stdenv.isLinux ''
|
||||
substituteInPlace phobos/std/socket.d --replace "assert(ih.addrList[0] == 0x7F_00_00_01);" ""
|
||||
'' + lib.optionalString stdenv.isDarwin ''
|
||||
substituteInPlace phobos/std/socket.d --replace "foreach (name; names)" "names = []; foreach (name; names)"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
makeWrapper
|
||||
which
|
||||
installShellFiles
|
||||
] ++ lib.optionals (lib.versionOlder version "2.088.0") [
|
||||
git
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
curl
|
||||
tzdata
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
Foundation
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
gdb
|
||||
] ++ lib.optionals (lib.versionOlder version "2.089.0") [
|
||||
unzip
|
||||
];
|
||||
|
||||
buildFlags = [
|
||||
"BUILD=release"
|
||||
"ENABLE_RELEASE=1"
|
||||
"PIC=1"
|
||||
];
|
||||
|
||||
# Build and install are based on http://wiki.dlang.org/Building_DMD
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
|
||||
export buildJobs=$NIX_BUILD_CORES
|
||||
if [ -z $enableParallelBuilding ]; then
|
||||
buildJobs=1
|
||||
fi
|
||||
|
||||
make -C dmd -f posix.mak $buildFlags -j$buildJobs HOST_DMD=${HOST_DMD}
|
||||
make -C druntime -f posix.mak $buildFlags -j$buildJobs DMD=${pathToDmd}
|
||||
echo ${tzdata}/share/zoneinfo/ > TZDatabaseDirFile
|
||||
echo ${lib.getLib curl}/lib/libcurl${stdenv.hostPlatform.extensions.sharedLibrary} > LibcurlPathFile
|
||||
make -C phobos -f posix.mak $buildFlags -j$buildJobs DMD=${pathToDmd} DFLAGS="-version=TZDatabaseDir -version=LibcurlPath -J$PWD"
|
||||
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
doCheck = true;
|
||||
|
||||
checkFlags = buildFlags;
|
||||
|
||||
# many tests are disbled because they are failing
|
||||
|
||||
# NOTE: Purity check is disabled for checkPhase because it doesn't fare well
|
||||
# with the DMD linker. See https://github.com/NixOS/nixpkgs/issues/97420
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
|
||||
export checkJobs=$NIX_BUILD_CORES
|
||||
if [ -z $enableParallelChecking ]; then
|
||||
checkJobs=1
|
||||
fi
|
||||
|
||||
NIX_ENFORCE_PURITY= \
|
||||
make -C dmd/test $checkFlags CC=$CXX SHELL=$SHELL -j$checkJobs N=$checkJobs
|
||||
|
||||
NIX_ENFORCE_PURITY= \
|
||||
make -C druntime -f posix.mak unittest $checkFlags -j$checkJobs
|
||||
|
||||
NIX_ENFORCE_PURITY= \
|
||||
make -C phobos -f posix.mak unittest $checkFlags -j$checkJobs DFLAGS="-version=TZDatabaseDir -version=LibcurlPath -J$PWD"
|
||||
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
install -Dm755 ${pathToDmd} $out/bin/dmd
|
||||
|
||||
installManPage dmd/docs/man/man*/*
|
||||
|
||||
mkdir -p $out/include/dmd
|
||||
cp -r {druntime/import/*,phobos/{std,etc}} $out/include/dmd/
|
||||
|
||||
mkdir $out/lib
|
||||
cp phobos/generated/${osname}/release/${bits}/libphobos2.* $out/lib/
|
||||
|
||||
wrapProgram $out/bin/dmd \
|
||||
--prefix PATH ":" "${targetPackages.stdenv.cc}/bin" \
|
||||
--set-default CC "${targetPackages.stdenv.cc}/bin/cc"
|
||||
|
||||
substitute ${dmdConfFile} "$out/bin/dmd.conf" --subst-var out
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Official reference compiler for the D language";
|
||||
homepage = "https://dlang.org/";
|
||||
# Everything is now Boost licensed, even the backend.
|
||||
# https://github.com/dlang/dmd/pull/6680
|
||||
license = licenses.boost;
|
||||
maintainers = with maintainers; [ ThomasMader lionello dukc ];
|
||||
platforms = [ "x86_64-linux" "i686-linux" "x86_64-darwin" ];
|
||||
};
|
||||
}
|
164
pkgs/development/compilers/fbc/default.nix
Normal file
164
pkgs/development/compilers/fbc/default.nix
Normal file
@ -0,0 +1,164 @@
|
||||
{ stdenv
|
||||
, buildPackages
|
||||
, lib
|
||||
, fetchzip
|
||||
, fetchpatch
|
||||
, gpm
|
||||
, libffi
|
||||
, libGL
|
||||
, libX11
|
||||
, libXext
|
||||
, libXpm
|
||||
, libXrandr
|
||||
, ncurses
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "fbc";
|
||||
version = "1.09.0";
|
||||
|
||||
src = fetchzip {
|
||||
# Bootstrap tarball has sources pretranslated from FreeBASIC to C
|
||||
url = "https://github.com/freebasic/fbc/releases/download/${version}/FreeBASIC-${version}-source-bootstrap.tar.xz";
|
||||
sha256 = "1q1gxp5kjz4vkcs9jl0x01v8qm1q2j789lgvxvikzd591ay0xini";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Fixes fbc_tests.udt_wstring_.midstmt ascii getting stuck due to stack corruption
|
||||
# Remove when >1.09.0
|
||||
(fetchpatch {
|
||||
name = "fbc-tests-Fix-stack-corruption.patch";
|
||||
url = "https://github.com/freebasic/fbc/commit/42f4f6dfdaafdd5302a647152f16cda78e4ec904.patch";
|
||||
excludes = [ "changelog.txt" ];
|
||||
sha256 = "sha256-Bn+mnTIkM2/uM2k/b9+Up4HJ7SJWwfD3bWLJsSycFRE=";
|
||||
})
|
||||
# Respect SOURCE_DATE_EPOCH when set
|
||||
# Remove when >1.09.0
|
||||
(fetchpatch {
|
||||
name = "fbc-SOURCE_DATE_EPOCH-support.patch";
|
||||
url = "https://github.com/freebasic/fbc/commit/74ea6efdcfe9a90d1c860f64d11ab4a6cd607269.patch";
|
||||
excludes = [ "changelog.txt" ];
|
||||
sha256 = "sha256-v5FTi4vKOvSV03kigZDiOH8SEGEphhzkBL6p1hd+NtU=";
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs tests/warnings/test.sh
|
||||
|
||||
# Some tests lack proper dependency on libstdc++
|
||||
for missingStdcpp in tests/cpp/{class,call2}-fbc.bas; do
|
||||
sed -i -e "/'"' TEST_MODE : /a #inclib "stdc++"' $missingStdcpp
|
||||
done
|
||||
|
||||
# Help compiler find libstdc++ with gcc backend
|
||||
sed -i -e '/fbcAddLibPathFor( "libgcc.a" )/a fbcAddLibPathFor( "libstdc++.so" )' src/compiler/fbc.bas
|
||||
'';
|
||||
|
||||
dontConfigure = true;
|
||||
|
||||
depsBuildBuild = [
|
||||
buildPackages.stdenv.cc
|
||||
buildPackages.ncurses
|
||||
buildPackages.libffi
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
ncurses
|
||||
libffi
|
||||
] ++ lib.optionals stdenv.hostPlatform.isLinux [
|
||||
gpm
|
||||
libGL
|
||||
libX11
|
||||
libXext
|
||||
libXpm
|
||||
libXrandr
|
||||
];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
hardeningDisable = [
|
||||
"format"
|
||||
];
|
||||
|
||||
makeFlags = lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
|
||||
"TARGET=${stdenv.hostPlatform.config}"
|
||||
];
|
||||
|
||||
preBuild = ''
|
||||
export buildJobs=$NIX_BUILD_CORES
|
||||
if [ -z "$enableParallelBuilding" ]; then
|
||||
buildJobs=1
|
||||
fi
|
||||
|
||||
echo Bootstrap an unpatched build compiler
|
||||
make bootstrap-minimal -j$buildJobs \
|
||||
BUILD_PREFIX=${buildPackages.stdenv.cc.targetPrefix} LD=${buildPackages.stdenv.cc.targetPrefix}ld
|
||||
|
||||
echo Compile patched build compiler and host rtlib
|
||||
make compiler -j$buildJobs \
|
||||
"FBC=$PWD/bin/fbc${stdenv.buildPlatform.extensions.executable} -i $PWD/inc" \
|
||||
BUILD_PREFIX=${buildPackages.stdenv.cc.targetPrefix} LD=${buildPackages.stdenv.cc.targetPrefix}ld
|
||||
make rtlib -j$buildJobs \
|
||||
"FBC=$PWD/bin/fbc${stdenv.buildPlatform.extensions.executable} -i $PWD/inc" \
|
||||
${if (stdenv.buildPlatform == stdenv.hostPlatform) then
|
||||
"BUILD_PREFIX=${buildPackages.stdenv.cc.targetPrefix} LD=${buildPackages.stdenv.cc.targetPrefix}ld"
|
||||
else
|
||||
"TARGET=${stdenv.hostPlatform.config}"
|
||||
}
|
||||
|
||||
echo Install patched build compiler and host rtlib to local directory
|
||||
make install-compiler prefix=$PWD/patched-fbc
|
||||
make install-rtlib prefix=$PWD/patched-fbc ${lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) "TARGET=${stdenv.hostPlatform.config}"}
|
||||
make clean
|
||||
|
||||
echo Compile patched host everything with previous patched stage
|
||||
buildFlagsArray+=("FBC=$PWD/patched-fbc/bin/fbc${stdenv.buildPlatform.extensions.executable} -i $PWD/inc")
|
||||
'';
|
||||
|
||||
installFlags = [
|
||||
"prefix=${placeholder "out"}"
|
||||
];
|
||||
|
||||
# Tests do not work when cross-compiling even if build platform can execute
|
||||
# host binaries, compiler struggles to find the cross compiler's libgcc_s
|
||||
doCheck = stdenv.buildPlatform == stdenv.hostPlatform;
|
||||
|
||||
checkTarget = "unit-tests warning-tests log-tests";
|
||||
|
||||
checkFlags = [
|
||||
"UNITTEST_RUN_ARGS=--verbose" # see what unit-tests are doing
|
||||
"ABORT_CMD=false" # abort log-tests on failure
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
|
||||
# Some tests fail with too much parallelism
|
||||
export maxCheckJobs=50
|
||||
export checkJobs=$(($NIX_BUILD_CORES<=$maxCheckJobs ? $NIX_BUILD_CORES : $maxCheckJobs))
|
||||
if [ -z "$enableParallelChecking" ]; then
|
||||
checkJobs=1
|
||||
fi
|
||||
|
||||
# Run check targets in series, else the logs are a mess
|
||||
for target in $checkTarget; do
|
||||
make $target -j$checkJobs $makeFlags $checkFlags
|
||||
done
|
||||
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://www.freebasic.net/";
|
||||
description = "A multi-platform BASIC Compiler";
|
||||
longDescription = ''
|
||||
FreeBASIC is a completely free, open-source, multi-platform BASIC compiler (fbc),
|
||||
with syntax similar to (and support for) MS-QuickBASIC, that adds new features
|
||||
such as pointers, object orientation, unsigned data types, inline assembly,
|
||||
and many others.
|
||||
'';
|
||||
license = licenses.gpl2Plus; # runtime & graphics libraries are LGPLv2+ w/ static linking exception
|
||||
maintainers = with maintainers; [ OPNA2608 ];
|
||||
platforms = with platforms; windows ++ linux;
|
||||
};
|
||||
}
|
35
pkgs/development/compilers/fbc/mac-bin.nix
Normal file
35
pkgs/development/compilers/fbc/mac-bin.nix
Normal file
@ -0,0 +1,35 @@
|
||||
{ stdenvNoCC
|
||||
, lib
|
||||
, fetchzip
|
||||
}:
|
||||
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
pname = "fbc-mac-bin";
|
||||
version = "1.06-darwin-wip20160505";
|
||||
|
||||
src = fetchzip {
|
||||
url = "https://tmc.castleparadox.com/temp/fbc-${version}.tar.bz2";
|
||||
sha256 = "sha256-hD3SRUkk50sf0MhhgHNMvBoJHTKz/71lyFxaAXM4/qI=";
|
||||
};
|
||||
|
||||
dontConfigure = true;
|
||||
dontBuild = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out
|
||||
cp -R * $out
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://rpg.hamsterrepublic.com/ohrrpgce/Compiling_in_Mac_OS_X";
|
||||
description = "FreeBASIC, a multi-platform BASIC Compiler (precompiled Darwin build by OHRRPGCE team)";
|
||||
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
||||
license = licenses.gpl2Plus; # runtime & graphics libraries are LGPLv2+ w/ static linking exception
|
||||
maintainers = with maintainers; [ OPNA2608 ];
|
||||
platforms = [ "x86_64-darwin" ];
|
||||
};
|
||||
}
|
@ -3,9 +3,9 @@ callPackage ./binary.nix {
|
||||
version = "1.25.0";
|
||||
hashes = {
|
||||
# Get these from `nix-prefetch-url https://github.com/ldc-developers/ldc/releases/download/v1.19.0/ldc2-1.19.0-osx-x86_64.tar.xz` etc..
|
||||
osx-x86_64 = "1xaqxf1lz8kdb0n5iycfpxpvabf1zy0akg14kg554sm85xnsf8pa";
|
||||
linux-x86_64 = "1shzdq564jg3ga1hwrvpx30lpszc6pqndqndr5mqmc352znkiy5i";
|
||||
linux-aarch64 = "04i4xxwhq02d98r3qrrnv5dbd4xr4d7ph3zv94z2m58z3vgphdjh";
|
||||
osx-arm64 = "0b0cpgzn23clggx0cvdaja29q7w7ihkmjbnf1md03h9h5nzp9z1v";
|
||||
osx-x86_64 = "sha256-6iKnbS+oalLKmyS8qYD/wS21b7+O+VgsWG2iT4PrWPU=";
|
||||
linux-x86_64 = "sha256-sfg47RdlsIpryc3iZvE17OtLweh3Zw6DeuNJYgpuH+o=";
|
||||
linux-aarch64 = "sha256-UDZ43x4flSo+SfsPeE8juZO2Wtk2ZzwySk0ADHnvJBI=";
|
||||
osx-arm64 = "sha256-O/x0vy0wwQFaDc4uWSeMhx+chJKqbQb6e5QNYf+7DCw=";
|
||||
};
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
import ./generic.nix {
|
||||
version = "1.27.1";
|
||||
ldcSha256 = "1775001ba6n8w46ln530kb5r66vs935ingnppgddq8wqnc0gbj4k";
|
||||
version = "1.30.0";
|
||||
sha256 = "sha256-/bs3bwgkLZF5IqaiKnc5gCF/r6MQBG/F1kWUkK8j2s0=";
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ version, ldcSha256 }:
|
||||
{ version, sha256 }:
|
||||
{ lib, stdenv, fetchurl, cmake, ninja, llvm_11, curl, tzdata
|
||||
, libconfig, lit, gdb, unzip, darwin, bash
|
||||
, callPackage, makeWrapper, runCommand, targetPackages
|
||||
@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/ldc-developers/ldc/releases/download/v${version}/ldc-${version}-src.tar.gz";
|
||||
sha256 = ldcSha256;
|
||||
inherit sha256;
|
||||
};
|
||||
|
||||
# https://issues.dlang.org/show_bug.cgi?id=19553
|
||||
|
@ -1105,6 +1105,8 @@ self: super: {
|
||||
|
||||
# Requires pg_ctl command during tests
|
||||
beam-postgres = overrideCabal (drv: {
|
||||
# https://github.com/NixOS/nixpkgs/issues/198495
|
||||
doCheck = pkgs.postgresql.doCheck;
|
||||
testToolDepends = (drv.testToolDepends or []) ++ [pkgs.postgresql];
|
||||
}) super.beam-postgres;
|
||||
|
||||
@ -1127,6 +1129,8 @@ self: super: {
|
||||
sed -i test/PostgreSQL/Test.hs \
|
||||
-e s^host=localhost^^
|
||||
'';
|
||||
# https://github.com/NixOS/nixpkgs/issues/198495
|
||||
doCheck = pkgs.postgresql.doCheck;
|
||||
# Match the test suite defaults (or hardcoded values?)
|
||||
preCheck = drv.preCheck or "" + ''
|
||||
PGUSER=esqutest
|
||||
@ -1267,6 +1271,8 @@ self: super: {
|
||||
sed -i test/PgInit.hs \
|
||||
-e s^'host=" <> host <> "'^^
|
||||
'';
|
||||
# https://github.com/NixOS/nixpkgs/issues/198495
|
||||
doCheck = pkgs.postgresql.doCheck;
|
||||
preCheck = drv.preCheck or "" + ''
|
||||
PGDATABASE=test
|
||||
PGUSER=test
|
||||
@ -1471,6 +1477,8 @@ self: super: {
|
||||
testToolDepends = drv.testToolDepends or [] ++ [
|
||||
pkgs.postgresql pkgs.postgresqlTestHook
|
||||
];
|
||||
# https://github.com/NixOS/nixpkgs/issues/198495
|
||||
doCheck = pkgs.postgresql.doCheck;
|
||||
preCheck = drv.preCheck or "" + ''
|
||||
# empty string means use default connection
|
||||
export DATABASE_URL=""
|
||||
@ -1557,6 +1565,16 @@ self: super: {
|
||||
hlint = enableCabalFlag "ghc-lib" lself.hlint_3_4_1;
|
||||
ghc-lib-parser-ex = self.ghc-lib-parser-ex_9_2_0_4;
|
||||
ghc-lib-parser = lself.ghc-lib-parser_9_2_4_20220729;
|
||||
# For most ghc versions, we overrideScope Cabal in the configuration-ghc-???.nix,
|
||||
# because some packages, like ormolu, need a newer Cabal version.
|
||||
# ghc-paths is special because it depends on Cabal for building
|
||||
# its Setup.hs, and therefor declares a Cabal dependency, but does
|
||||
# not actually use it as a build dependency.
|
||||
# That means ghc-paths can just use the ghc included Cabal version,
|
||||
# without causing package-db incoherence and we should do that because
|
||||
# otherwise we have different versions of ghc-paths
|
||||
# around with have the same abi-hash, which can lead to confusions and conflicts.
|
||||
ghc-paths = lsuper.ghc-paths.override { Cabal = null; };
|
||||
});
|
||||
|
||||
hls-hlint-plugin = super.hls-hlint-plugin.overrideScope (lself: lsuper: {
|
||||
@ -1593,6 +1611,11 @@ self: super: {
|
||||
# 2022-09-19: https://github.com/haskell/haskell-language-server/issues/3200
|
||||
hls-refactor-plugin = dontCheck super.hls-refactor-plugin;
|
||||
|
||||
# 2022-10-27: implicit-hie 0.1.3.0 needs a newer version of Cabal-syntax.
|
||||
implicit-hie = super.implicit-hie.override {
|
||||
Cabal-syntax = self.Cabal-syntax_3_8_1_0;
|
||||
};
|
||||
|
||||
# 2021-03-21: Test hangs
|
||||
# https://github.com/haskell/haskell-language-server/issues/1562
|
||||
# 2021-11-13: Too strict upper bound on implicit-hie-cradle
|
||||
@ -1901,9 +1924,6 @@ self: super: {
|
||||
# 2021-04-02: Outdated optparse-applicative bound is fixed but not realeased on upstream.
|
||||
trial-optparse-applicative = assert super.trial-optparse-applicative.version == "0.0.0.0"; doJailbreak super.trial-optparse-applicative;
|
||||
|
||||
# 2021-04-02: Outdated optparse-applicative bound is fixed but not realeased on upstream.
|
||||
extensions = assert super.extensions.version == "0.0.0.1"; doJailbreak super.extensions;
|
||||
|
||||
# 2021-04-02: iCalendar is basically unmaintained.
|
||||
# There are PRs for bumping the bounds: https://github.com/chrra/iCalendar/pull/46
|
||||
iCalendar = overrideCabal {
|
||||
@ -2417,7 +2437,7 @@ self: super: {
|
||||
csv = overrideCabal (drv: { preCompileBuildDriver = "rm Setup.hs"; }) super.csv;
|
||||
|
||||
cabal-fmt = doJailbreak (super.cabal-fmt.override {
|
||||
# Needs newer Cabal-syntex version.
|
||||
# Needs newer Cabal-syntax version.
|
||||
Cabal-syntax = self.Cabal-syntax_3_8_1_0;
|
||||
});
|
||||
|
||||
@ -2539,6 +2559,12 @@ self: super: {
|
||||
testTarget = "regex-tdfa-unittest";
|
||||
} super.regex-tdfa;
|
||||
|
||||
# Missing test files https://github.com/qrilka/xlsx/issues/165
|
||||
xlsx = dontCheck super.xlsx;
|
||||
|
||||
# Missing test files https://github.com/kephas/xdg-basedir-compliant/issues/1
|
||||
xdg-basedir-compliant = dontCheck super.xdg-basedir-compliant;
|
||||
|
||||
# 2022-09-01:
|
||||
# Restrictive upper bound on base.
|
||||
# Remove once version 1.* is released
|
||||
@ -2578,7 +2604,7 @@ in {
|
||||
purescript =
|
||||
lib.pipe
|
||||
(super.purescript.overrideScope purescriptOverlay)
|
||||
[
|
||||
([
|
||||
# PureScript uses nodejs to run tests, so the tests have been disabled
|
||||
# for now. If someone is interested in figuring out how to get this
|
||||
# working, it seems like it might be possible.
|
||||
@ -2589,7 +2615,10 @@ in {
|
||||
doJailbreak
|
||||
# Generate shell completions
|
||||
(self.generateOptparseApplicativeCompletions [ "purs" ])
|
||||
];
|
||||
] ++ lib.optionals (lib.versions.majorMinor self.ghc.version == "9.2") [
|
||||
markUnbroken
|
||||
doDistribute
|
||||
]);
|
||||
|
||||
purescript-cst = purescriptStOverride super.purescript-cst;
|
||||
|
||||
|
@ -52,12 +52,12 @@ self: super: {
|
||||
cabal-install = super.cabal-install.overrideScope (self: super: {
|
||||
Cabal = self.Cabal_3_8_1_0;
|
||||
Cabal-syntax = self.Cabal-syntax_3_8_1_0;
|
||||
process = self.process_1_6_15_0;
|
||||
process = self.process_1_6_16_0;
|
||||
});
|
||||
cabal-install-solver = super.cabal-install-solver.overrideScope (self: super: {
|
||||
Cabal = self.Cabal_3_8_1_0;
|
||||
Cabal-syntax = self.Cabal-syntax_3_8_1_0;
|
||||
process = self.process_1_6_15_0;
|
||||
process = self.process_1_6_16_0;
|
||||
});
|
||||
|
||||
# Pick right versions for GHC-specific packages
|
||||
|
@ -58,12 +58,12 @@ self: super: {
|
||||
cabal-install = super.cabal-install.overrideScope (self: super: {
|
||||
Cabal = self.Cabal_3_8_1_0;
|
||||
Cabal-syntax = self.Cabal-syntax_3_8_1_0;
|
||||
process = self.process_1_6_15_0;
|
||||
process = self.process_1_6_16_0;
|
||||
});
|
||||
cabal-install-solver = super.cabal-install-solver.overrideScope (self: super: {
|
||||
Cabal = self.Cabal_3_8_1_0;
|
||||
Cabal-syntax = self.Cabal-syntax_3_8_1_0;
|
||||
process = self.process_1_6_15_0;
|
||||
process = self.process_1_6_16_0;
|
||||
});
|
||||
|
||||
# Ignore overly restrictive upper version bounds.
|
||||
|
@ -53,12 +53,12 @@ self: super: {
|
||||
cabal-install = super.cabal-install.overrideScope (self: super: {
|
||||
Cabal = self.Cabal_3_8_1_0;
|
||||
Cabal-syntax = self.Cabal-syntax_3_8_1_0;
|
||||
process = self.process_1_6_15_0;
|
||||
process = self.process_1_6_16_0;
|
||||
});
|
||||
cabal-install-solver = super.cabal-install-solver.overrideScope (self: super: {
|
||||
Cabal = self.Cabal_3_8_1_0;
|
||||
Cabal-syntax = self.Cabal-syntax_3_8_1_0;
|
||||
process = self.process_1_6_15_0;
|
||||
process = self.process_1_6_16_0;
|
||||
});
|
||||
|
||||
# Jailbreaks & Version Updates
|
||||
|
@ -59,12 +59,12 @@ self: super: {
|
||||
cabal-install = super.cabal-install.overrideScope (self: super: {
|
||||
Cabal = self.Cabal_3_8_1_0;
|
||||
Cabal-syntax = self.Cabal-syntax_3_8_1_0;
|
||||
process = self.process_1_6_15_0;
|
||||
process = self.process_1_6_16_0;
|
||||
});
|
||||
cabal-install-solver = super.cabal-install-solver.overrideScope (self: super: {
|
||||
Cabal = self.Cabal_3_8_1_0;
|
||||
Cabal-syntax = self.Cabal-syntax_3_8_1_0;
|
||||
process = self.process_1_6_15_0;
|
||||
process = self.process_1_6_16_0;
|
||||
});
|
||||
|
||||
doctest = dontCheck (doJailbreak super.doctest);
|
||||
@ -87,7 +87,7 @@ self: super: {
|
||||
constraints = doJailbreak super.constraints;
|
||||
cpphs = overrideCabal (drv: { postPatch = "sed -i -e 's,time >=1.5 && <1.11,time >=1.5 \\&\\& <1.12,' cpphs.cabal";}) super.cpphs;
|
||||
data-fix = doJailbreak super.data-fix;
|
||||
dbus = self.dbus_1_2_26;
|
||||
dbus = self.dbus_1_2_27;
|
||||
dec = doJailbreak super.dec;
|
||||
ed25519 = doJailbreak super.ed25519;
|
||||
ghc-byteorder = doJailbreak super.ghc-byteorder;
|
||||
@ -132,6 +132,11 @@ self: super: {
|
||||
servant = doJailbreak super.servant;
|
||||
servant-swagger = doJailbreak super.servant-swagger;
|
||||
|
||||
# Depends on utf8-light which isn't maintained / doesn't support base >= 4.16
|
||||
# https://github.com/haskell-infra/hackage-trustees/issues/347
|
||||
# https://mail.haskell.org/pipermail/haskell-cafe/2022-October/135613.html
|
||||
language-javascript_0_7_0_0 = dontCheck super.language-javascript_0_7_0_0;
|
||||
|
||||
# 2022-09-02: Too strict bounds on lens
|
||||
# https://github.com/haskell-servant/servant/pull/1607/files
|
||||
servant-docs = doJailbreak super.servant-docs;
|
||||
|
@ -10,7 +10,6 @@ in
|
||||
|
||||
with haskellLib;
|
||||
self: super: let
|
||||
doctest_0_20_broken = p: checkAgainAfter self.doctest "0.20.0" "doctest broken on 9.4" (dontCheck p);
|
||||
jailbreakForCurrentVersion = p: v: checkAgainAfter p v "bad bounds" (doJailbreak p);
|
||||
in {
|
||||
llvmPackages = lib.dontRecurseIntoAttrs self.ghc.llvmPackages;
|
||||
@ -62,41 +61,15 @@ in {
|
||||
# 0.30 introduced support for GHC 9.2.
|
||||
cryptonite = doDistribute self.cryptonite_0_30;
|
||||
|
||||
# Too strict bound on base
|
||||
# https://github.com/haskell/cabal/issues/8509
|
||||
# Requested versions of Cabal, Cabal-syntax and process match GHC 9.4's for now
|
||||
cabal-install = doJailbreak super.cabal-install;
|
||||
cabal-install-solver = doJailbreak super.cabal-install-solver;
|
||||
|
||||
# Test failure due to new Cabal 3.8 version. Since the failure only pertains
|
||||
# to a change in how Cabal internally represents some platforms and we depend
|
||||
# on the type of representation anywhere, this failure is harmless. Can be
|
||||
# removed after https://github.com/NixOS/cabal2nix/pull/571 is merged.
|
||||
# TODO(@sternenseemann): merge and release a fixed version
|
||||
distribution-nixpkgs = dontCheck super.distribution-nixpkgs;
|
||||
cabal2nix =
|
||||
# cabal2nix depends on foundation, which is broken on aarch64-linux.
|
||||
# https://github.com/haskell-foundation/foundation/issues/571
|
||||
overrideCabal
|
||||
(drv: { badPlatforms = [ "aarch64-linux" ]; })
|
||||
(dontCheck super.cabal2nix);
|
||||
cabal2nix-unstable = dontCheck super.cabal2nix-unstable;
|
||||
super.cabal2nix;
|
||||
|
||||
# build fails on due to ghc api changes
|
||||
# unfinished PR that doesn't yet compile:
|
||||
# https://github.com/sol/doctest/pull/375
|
||||
doctest = markBroken super.doctest_0_20_0;
|
||||
doctest = self.doctest_0_20_1;
|
||||
# consequences of doctest breakage follow:
|
||||
http-types = doctest_0_20_broken super.http-types;
|
||||
iproute = doctest_0_20_broken super.iproute;
|
||||
foldl = doctest_0_20_broken super.foldl;
|
||||
prettyprinter-ansi-terminal = doctest_0_20_broken super.prettyprinter-ansi-terminal;
|
||||
pretty-simple = doctest_0_20_broken super.pretty-simple;
|
||||
http-date = doctest_0_20_broken super.http-date;
|
||||
network-byte-order = doctest_0_20_broken super.network-byte-order;
|
||||
co-log-core = doctest_0_20_broken (doJailbreak super.co-log-core);
|
||||
xml-conduit = doctest_0_20_broken (dontCheck super.xml-conduit);
|
||||
validation-selective = doctest_0_20_broken (dontCheck super.validation-selective);
|
||||
|
||||
double-conversion = markBroken super.double-conversion;
|
||||
blaze-textual = checkAgainAfter super.double-conversion "2.0.4.1" "double-conversion fails to build; required for testsuite" (dontCheck super.blaze-textual);
|
||||
@ -105,6 +78,8 @@ in {
|
||||
lucid = jailbreakForCurrentVersion super.lucid "2.11.1";
|
||||
invariant = jailbreakForCurrentVersion super.invariant "0.5.6";
|
||||
implicit-hie-cradle = jailbreakForCurrentVersion super.implicit-hie-cradle "0.5.0.0";
|
||||
# https://github.com/co-log/co-log-core/pull/22#issuecomment-1294040208
|
||||
co-log-core = jailbreakForCurrentVersion super.co-log-core "0.3.1.0";
|
||||
|
||||
haskell-src-meta = doJailbreak super.haskell-src-meta;
|
||||
|
||||
@ -114,7 +89,6 @@ in {
|
||||
# Jailbreaks & Version Updates
|
||||
|
||||
aeson = self.aeson_2_1_1_0;
|
||||
aeson-diff = doctest_0_20_broken (dontCheck super.aeson-diff);
|
||||
lens-aeson = self.lens-aeson_1_2_2;
|
||||
|
||||
assoc = doJailbreak super.assoc;
|
||||
@ -153,7 +127,7 @@ in {
|
||||
|
||||
# 2022-09-02: Too strict bounds on lens
|
||||
# https://github.com/GetShopTV/swagger2/pull/242
|
||||
swagger2 = doctest_0_20_broken (dontCheck (doJailbreak super.swagger2));
|
||||
swagger2 = doJailbreak super.swagger2;
|
||||
|
||||
base-orphans = dontCheck super.base-orphans;
|
||||
|
||||
|
@ -264,6 +264,7 @@ broken-packages:
|
||||
- avatar-generator
|
||||
- aviation-units
|
||||
- avl-static
|
||||
- avro
|
||||
- avro-piper
|
||||
- avr-shake
|
||||
- avwx
|
||||
@ -745,6 +746,7 @@ broken-packages:
|
||||
- codo-notation
|
||||
- coin
|
||||
- coinbase-pro
|
||||
- cointracking-imports
|
||||
- collada-output
|
||||
- collapse-util
|
||||
- collections
|
||||
@ -1149,6 +1151,7 @@ broken-packages:
|
||||
- djinn-th
|
||||
- dmcc
|
||||
- dmenu
|
||||
- dnf-repo
|
||||
- dns-patterns
|
||||
- dnsrbl
|
||||
- dnssd
|
||||
@ -1257,6 +1260,7 @@ broken-packages:
|
||||
- edit
|
||||
- edit-lenses
|
||||
- editline
|
||||
- effectful-st
|
||||
- effect-handlers
|
||||
- effective-aspects
|
||||
- effect-monad
|
||||
@ -1357,6 +1361,8 @@ broken-packages:
|
||||
- eventful-sql-common
|
||||
- eventsource-api
|
||||
- eventstore
|
||||
- eventuo11y
|
||||
- eventuo11y-dsl
|
||||
- evoke
|
||||
- ewe
|
||||
- exact-cover
|
||||
@ -1391,7 +1397,6 @@ broken-packages:
|
||||
- extended-containers
|
||||
- extensible-effects-concurrent
|
||||
- extensible-skeleton
|
||||
- extensions
|
||||
- Extra
|
||||
- extractelf
|
||||
- ez3
|
||||
@ -2351,6 +2356,7 @@ broken-packages:
|
||||
- hquantlib
|
||||
- hquery
|
||||
- hR
|
||||
- h-raylib
|
||||
- hreq-core
|
||||
- h-reversi
|
||||
- hricket
|
||||
@ -3340,6 +3346,7 @@ broken-packages:
|
||||
- monoid-owns
|
||||
- monoidplus
|
||||
- monoids
|
||||
- monomer-hagrid
|
||||
- monopati
|
||||
- monus
|
||||
- monzo
|
||||
@ -3591,6 +3598,7 @@ broken-packages:
|
||||
- Omega
|
||||
- om-elm
|
||||
- om-fail
|
||||
- om-fork
|
||||
- om-http
|
||||
- om-http-logging
|
||||
- omnifmt
|
||||
@ -4107,6 +4115,7 @@ broken-packages:
|
||||
- Pup-Events-Server
|
||||
- pure-io
|
||||
- pure-priority-queue
|
||||
- purescript
|
||||
- purescript-tsd-gen
|
||||
- pure-zlib
|
||||
- pushbullet
|
||||
@ -5007,7 +5016,6 @@ broken-packages:
|
||||
- Tablify
|
||||
- tabloid
|
||||
- tabs
|
||||
- taffybar
|
||||
- tag-bits
|
||||
- tagged-exception-core
|
||||
- tagged-timers
|
||||
@ -5365,6 +5373,9 @@ broken-packages:
|
||||
- unescaping-print
|
||||
- unfix-binders
|
||||
- unfoldable
|
||||
- unicode-data-names
|
||||
- unicode-data-scripts
|
||||
- unicode-data-security
|
||||
- unicode-prelude
|
||||
- unicode-symbols
|
||||
- unicode-tricks
|
||||
@ -5676,6 +5687,7 @@ broken-packages:
|
||||
- xleb
|
||||
- xls
|
||||
- xlsior
|
||||
- xlsx-tabular
|
||||
- xlsx-templater
|
||||
- xml2json
|
||||
- xml-conduit-decode
|
||||
|
@ -416,6 +416,7 @@ package-maintainers:
|
||||
- rel8
|
||||
- regex-rure
|
||||
- jacinda
|
||||
- citeproc
|
||||
# owothia
|
||||
- irc-client
|
||||
- chatter
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Stackage LTS 19.28
|
||||
# Stackage LTS 19.30
|
||||
# This file is auto-generated by
|
||||
# maintainers/scripts/haskell/update-stackage.sh
|
||||
default-package-overrides:
|
||||
@ -706,7 +706,7 @@ default-package-overrides:
|
||||
- executable-path ==0.0.3.1
|
||||
- exit-codes ==1.0.0
|
||||
- exomizer ==1.0.0
|
||||
- experimenter ==0.1.0.12
|
||||
- experimenter ==0.1.0.14
|
||||
- expiring-cache-map ==0.0.6.1
|
||||
- explainable-predicates ==0.1.2.3
|
||||
- explicit-exception ==0.1.10
|
||||
@ -725,7 +725,7 @@ default-package-overrides:
|
||||
- fakedata-quickcheck ==0.2.0
|
||||
- fakefs ==0.3.0.2
|
||||
- fakepull ==0.3.0.2
|
||||
- faktory ==1.1.2.3
|
||||
- faktory ==1.1.2.4
|
||||
- fast-builder ==0.1.3.0
|
||||
- fast-logger ==3.1.1
|
||||
- fast-math ==1.0.2
|
||||
@ -887,33 +887,33 @@ default-package-overrides:
|
||||
- ghc-syntax-highlighter ==0.0.7.0
|
||||
- ghc-tcplugins-extra ==0.4.3
|
||||
- ghc-trace-events ==0.1.2.6
|
||||
- ghc-typelits-extra ==0.4.3
|
||||
- ghc-typelits-knownnat ==0.7.6
|
||||
- ghc-typelits-natnormalise ==0.7.6
|
||||
- ghc-typelits-extra ==0.4.4
|
||||
- ghc-typelits-knownnat ==0.7.7
|
||||
- ghc-typelits-natnormalise ==0.7.7
|
||||
- ghc-typelits-presburger ==0.6.2.0
|
||||
- ghost-buster ==0.1.1.0
|
||||
- gi-atk ==2.0.24
|
||||
- gi-cairo ==1.0.26
|
||||
- gi-atk ==2.0.25
|
||||
- gi-cairo ==1.0.27
|
||||
- gi-cairo-connector ==0.1.1
|
||||
- gi-cairo-render ==0.1.1
|
||||
- gi-dbusmenu ==0.4.10
|
||||
- gi-dbusmenugtk3 ==0.4.11
|
||||
- gi-freetype2 ==2.0.1
|
||||
- gi-gdk ==3.0.25
|
||||
- gi-gdkpixbuf ==2.0.28
|
||||
- gi-gdkx11 ==3.0.12
|
||||
- gi-gio ==2.0.29
|
||||
- gi-glib ==2.0.26
|
||||
- gi-gmodule ==2.0.2
|
||||
- gi-gobject ==2.0.27
|
||||
- gi-graphene ==1.0.4
|
||||
- gi-gtk ==3.0.38
|
||||
- gi-gtk-hs ==0.3.12
|
||||
- gi-gtksource ==3.0.25
|
||||
- gi-harfbuzz ==0.0.6
|
||||
- gi-javascriptcore ==4.0.24
|
||||
- gi-cairo-render ==0.1.2
|
||||
- gi-dbusmenu ==0.4.11
|
||||
- gi-dbusmenugtk3 ==0.4.12
|
||||
- gi-freetype2 ==2.0.2
|
||||
- gi-gdk ==3.0.26
|
||||
- gi-gdkpixbuf ==2.0.29
|
||||
- gi-gdkx11 ==3.0.13
|
||||
- gi-gio ==2.0.30
|
||||
- gi-glib ==2.0.27
|
||||
- gi-gmodule ==2.0.3
|
||||
- gi-gobject ==2.0.28
|
||||
- gi-graphene ==1.0.5
|
||||
- gi-gtk ==3.0.39
|
||||
- gi-gtk-hs ==0.3.13
|
||||
- gi-gtksource ==3.0.26
|
||||
- gi-harfbuzz ==0.0.7
|
||||
- gi-javascriptcore ==4.0.25
|
||||
- ginger ==0.10.4.0
|
||||
- gi-pango ==1.0.26
|
||||
- gi-pango ==1.0.27
|
||||
- githash ==0.1.6.2
|
||||
- github ==0.27
|
||||
- github-release ==2.0.0.2
|
||||
@ -921,10 +921,10 @@ default-package-overrides:
|
||||
- github-types ==0.2.1
|
||||
- github-webhooks ==0.15.0
|
||||
- gitrev ==1.3.1
|
||||
- gi-vte ==2.91.29
|
||||
- gi-xlib ==2.0.11
|
||||
- gi-vte ==2.91.30
|
||||
- gi-xlib ==2.0.12
|
||||
- gl ==0.9
|
||||
- glabrous ==2.0.5
|
||||
- glabrous ==2.0.6
|
||||
- glasso ==0.1.0
|
||||
- GLFW-b ==3.3.0.0
|
||||
- Glob ==0.10.2
|
||||
@ -993,7 +993,7 @@ default-package-overrides:
|
||||
- haskeline ==0.8.2
|
||||
- haskell-awk ==1.2.0.1
|
||||
- haskell-gi ==0.26.1
|
||||
- haskell-gi-base ==0.26.1
|
||||
- haskell-gi-base ==0.26.2
|
||||
- haskell-gi-overloading ==1.0
|
||||
- haskell-lexer ==1.1
|
||||
- haskell-lsp-types ==0.24.0.0
|
||||
@ -1016,7 +1016,7 @@ default-package-overrides:
|
||||
- has-transformers ==0.1.0.4
|
||||
- hasty-hamiltonian ==1.3.4
|
||||
- HaTeX ==3.22.3.1
|
||||
- HaXml ==1.25.11
|
||||
- HaXml ==1.25.12
|
||||
- haxr ==3000.11.4.1
|
||||
- HCodecs ==0.5.2
|
||||
- hdaemonize ==0.5.6
|
||||
@ -1385,7 +1385,7 @@ default-package-overrides:
|
||||
- lazysmallcheck ==0.6
|
||||
- lca ==0.4
|
||||
- leancheck ==0.9.12
|
||||
- leancheck-instances ==0.0.4
|
||||
- leancheck-instances ==0.0.5
|
||||
- leapseconds-announced ==2017.1.0.1
|
||||
- learn-physics ==0.6.5
|
||||
- lens ==5.0.1
|
||||
@ -1548,7 +1548,7 @@ default-package-overrides:
|
||||
- mock-time ==0.1.0
|
||||
- mod ==0.1.2.2
|
||||
- model ==0.5
|
||||
- modern-uri ==0.3.4.4
|
||||
- modern-uri ==0.3.5.0
|
||||
- modular ==0.1.0.8
|
||||
- monad-chronicle ==1.0.1
|
||||
- monad-control ==1.0.3.1
|
||||
@ -1579,7 +1579,7 @@ default-package-overrides:
|
||||
- monads-tf ==0.1.0.3
|
||||
- monad-time ==0.3.1.0
|
||||
- mongoDB ==2.7.1.1
|
||||
- monoidal-containers ==0.6.2.0
|
||||
- monoidal-containers ==0.6.3.0
|
||||
- monoid-extras ==0.6.1
|
||||
- monoid-subclasses ==1.1.3
|
||||
- monoid-transformer ==0.0.4
|
||||
@ -1651,8 +1651,8 @@ default-package-overrides:
|
||||
- network-simple-tls ==0.4
|
||||
- network-transport ==0.5.4
|
||||
- network-transport-composed ==0.2.1
|
||||
- network-transport-tcp ==0.8.0
|
||||
- network-transport-tests ==0.3.0
|
||||
- network-transport-tcp ==0.8.1
|
||||
- network-transport-tests ==0.3.1
|
||||
- network-uri ==2.6.4.1
|
||||
- network-wait ==0.1.2.0
|
||||
- newtype ==0.2.2.0
|
||||
@ -1766,7 +1766,7 @@ default-package-overrides:
|
||||
- partial-isomorphisms ==0.2.3.0
|
||||
- partial-order ==0.2.0.0
|
||||
- partial-semigroup ==0.5.1.14
|
||||
- password ==3.0.1.0
|
||||
- password ==3.0.2.0
|
||||
- password-instances ==3.0.0.0
|
||||
- password-types ==1.0.0.0
|
||||
- pasta-curves ==0.0.1.0
|
||||
@ -1786,7 +1786,7 @@ default-package-overrides:
|
||||
- pava ==0.1.1.4
|
||||
- pcg-random ==0.1.3.7
|
||||
- pcre2 ==2.1.1.1
|
||||
- pcre-heavy ==1.0.0.2
|
||||
- pcre-heavy ==1.0.0.3
|
||||
- pcre-light ==0.4.1.0
|
||||
- pcre-utils ==0.1.8.2
|
||||
- pdc ==0.1.1
|
||||
@ -1822,7 +1822,7 @@ default-package-overrides:
|
||||
- phatsort ==0.5.0.1
|
||||
- picosat ==0.1.6
|
||||
- pid1 ==0.1.3.0
|
||||
- pinch ==0.4.1.2
|
||||
- pinch ==0.4.2.0
|
||||
- pipes ==4.3.16
|
||||
- pipes-attoparsec ==0.5.1.5
|
||||
- pipes-bytestring ==2.1.7
|
||||
@ -1862,7 +1862,7 @@ default-package-overrides:
|
||||
- polysemy-plugin ==0.4.1.1
|
||||
- polysemy-several ==0.1.1.0
|
||||
- polysemy-socket ==0.0.2.0
|
||||
- polysemy-uncontrolled ==0.1.1.0
|
||||
- polysemy-uncontrolled ==0.1.1.1
|
||||
- polysemy-video ==0.2.0.1
|
||||
- polysemy-vinyl ==0.1.5.0
|
||||
- polysemy-webserver ==0.2.1.1
|
||||
@ -2379,7 +2379,7 @@ default-package-overrides:
|
||||
- svg-builder ==0.1.1
|
||||
- SVGFonts ==1.8.0.1
|
||||
- svg-tree ==0.6.2.4
|
||||
- swagger2 ==2.8.4
|
||||
- swagger2 ==2.8.5
|
||||
- swish ==0.10.2.0
|
||||
- syb ==0.7.2.2
|
||||
- sydtest-discover ==0.0.0.2
|
||||
@ -2595,7 +2595,7 @@ default-package-overrides:
|
||||
- type-spec ==0.4.0.0
|
||||
- typography-geometry ==1.0.1.0
|
||||
- tz ==0.1.3.6
|
||||
- tzdata ==0.2.20220923.0
|
||||
- tzdata ==0.2.20221011.0
|
||||
- ua-parser ==0.7.7.0
|
||||
- uglymemo ==0.1.0.1
|
||||
- unagi-chan ==0.4.1.4
|
||||
@ -2614,7 +2614,6 @@ default-package-overrides:
|
||||
- unicode-transforms ==0.4.0.1
|
||||
- unidecode ==0.1.0.4
|
||||
- unification-fd ==0.11.2
|
||||
- union ==0.1.2
|
||||
- union-angle ==0.1.0.1
|
||||
- union-find ==0.2
|
||||
- unipatterns ==0.0.0.0
|
||||
@ -2696,7 +2695,7 @@ default-package-overrides:
|
||||
- vector-th-unbox ==0.2.2
|
||||
- vectortiles ==1.5.1
|
||||
- verbosity ==0.4.0.0
|
||||
- versions ==5.0.3
|
||||
- versions ==5.0.4
|
||||
- vformat ==0.14.1.0
|
||||
- vformat-time ==0.1.0.0
|
||||
- ViennaRNAParser ==1.3.3
|
||||
|
@ -234,6 +234,7 @@ dont-distribute-packages:
|
||||
- KiCS-debugger
|
||||
- KiCS-prophecy
|
||||
- LDAPv3
|
||||
- LPPaver
|
||||
- LambdaHack
|
||||
- LambdaINet
|
||||
- LambdaPrettyQuote
|
||||
@ -811,6 +812,7 @@ dont-distribute-packages:
|
||||
- blubber
|
||||
- bluetile
|
||||
- blunt
|
||||
- bnb-staking-csvs
|
||||
- bno055-haskell
|
||||
- bogre-banana
|
||||
- boilerplate
|
||||
@ -922,6 +924,7 @@ dont-distribute-packages:
|
||||
- cheapskate-terminal
|
||||
- check-pvp
|
||||
- chevalier-common
|
||||
- chiasma-test
|
||||
- chitauri
|
||||
- choose-exe
|
||||
- chorale-geo
|
||||
@ -1346,6 +1349,8 @@ dont-distribute-packages:
|
||||
- eventsource-geteventstore-store
|
||||
- eventsource-store-specs
|
||||
- eventsource-stub-store
|
||||
- eventuo11y-batteries
|
||||
- eventuo11y-json
|
||||
- every-bit-counts
|
||||
- exception-monads-fd
|
||||
- exference
|
||||
@ -1555,7 +1560,7 @@ dont-distribute-packages:
|
||||
- gi-ges
|
||||
- gi-gsk
|
||||
- gi-gstpbutils
|
||||
- gi-gtk_4_0_5
|
||||
- gi-gtk_4_0_6
|
||||
- gipeda
|
||||
- git-config
|
||||
- git-fmt
|
||||
@ -2134,6 +2139,7 @@ dont-distribute-packages:
|
||||
- hpaste
|
||||
- hpc-tracer
|
||||
- hplayground
|
||||
- hpqtypes-effectful
|
||||
- hpqtypes-extras
|
||||
- hprotoc-fork
|
||||
- hps
|
||||
@ -2173,6 +2179,7 @@ dont-distribute-packages:
|
||||
- hsfacter
|
||||
- hsinspect-lsp
|
||||
- hslogstash
|
||||
- hslua-module-zip
|
||||
- hsnsq
|
||||
- hspec-expectations-pretty
|
||||
- hspec-pg-transact
|
||||
@ -2224,6 +2231,7 @@ dont-distribute-packages:
|
||||
- huzzy
|
||||
- hw-all
|
||||
- hw-aws-sqs-conduit
|
||||
- hw-kafka-avro
|
||||
- hw-uri
|
||||
- hworker-ses
|
||||
- hwormhole
|
||||
@ -2278,7 +2286,6 @@ dont-distribute-packages:
|
||||
- indentation-parsec
|
||||
- indentation-trifecta
|
||||
- indexation
|
||||
- indieweb-algorithms
|
||||
- indigo
|
||||
- infernu
|
||||
- infinity
|
||||
@ -2446,6 +2453,7 @@ dont-distribute-packages:
|
||||
- lambdiff
|
||||
- lang
|
||||
- language-Modula2
|
||||
- language-avro
|
||||
- language-boogie
|
||||
- language-ecmascript-analysis
|
||||
- language-eiffel
|
||||
@ -2653,7 +2661,6 @@ dont-distribute-packages:
|
||||
- metar-http
|
||||
- metronome
|
||||
- micro-gateway
|
||||
- microformats2-parser
|
||||
- microformats2-types
|
||||
- midimory
|
||||
- mighttpd
|
||||
@ -2715,6 +2722,8 @@ dont-distribute-packages:
|
||||
- morpheus-graphql-cli
|
||||
- morpheus-graphql-client
|
||||
- morpheus-graphql-code-gen
|
||||
- morpheus-graphql-code-gen-utils
|
||||
- morpheus-graphql-server
|
||||
- morpheus-graphql-subscriptions
|
||||
- morphisms-functors-inventory
|
||||
- mortred
|
||||
@ -2994,6 +3003,7 @@ dont-distribute-packages:
|
||||
- pisigma
|
||||
- pitchtrack
|
||||
- pkgtreediff
|
||||
- pkgtreediff_0_6_0
|
||||
- planet-mitchell
|
||||
- playlists-http
|
||||
- plocketed
|
||||
@ -3272,6 +3282,7 @@ dont-distribute-packages:
|
||||
- ribosome-host
|
||||
- ribosome-host-test
|
||||
- ribosome-root
|
||||
- ribosome-test
|
||||
- ridley-extras
|
||||
- rio-process-pool
|
||||
- riot
|
||||
@ -3473,7 +3484,7 @@ dont-distribute-packages:
|
||||
- skeletons
|
||||
- sketch-frp-copilot
|
||||
- skylark-client
|
||||
- skylighting_0_13
|
||||
- skylighting_0_13_1
|
||||
- slate
|
||||
- slidemews
|
||||
- slip32
|
||||
@ -3528,6 +3539,7 @@ dont-distribute-packages:
|
||||
- sock2stream
|
||||
- socket-io
|
||||
- sockets
|
||||
- solana-staking-csvs
|
||||
- solga-swagger
|
||||
- solr
|
||||
- souffle-dsl
|
||||
|
@ -27,6 +27,10 @@
|
||||
# If you have an override of this kind, see configuration-common.nix instead.
|
||||
{ pkgs, haskellLib }:
|
||||
|
||||
let
|
||||
inherit (pkgs) lib;
|
||||
in
|
||||
|
||||
with haskellLib;
|
||||
|
||||
# All of the overrides in this set should look like:
|
||||
@ -788,6 +792,16 @@ self: super: builtins.intersectAttrs super {
|
||||
# Tests access internet
|
||||
prune-juice = dontCheck super.prune-juice;
|
||||
|
||||
citeproc = lib.pipe super.citeproc [
|
||||
enableSeparateBinOutput
|
||||
# Enable executable being built and add missing dependencies
|
||||
(enableCabalFlag "executable")
|
||||
(addBuildDepends [ self.aeson-pretty ])
|
||||
# TODO(@sternenseemann): we may want to enable that for improved performance
|
||||
# Is correctness good enough since 0.5?
|
||||
(disableCabalFlag "icu")
|
||||
];
|
||||
|
||||
# based on https://github.com/gibiansky/IHaskell/blob/aafeabef786154d81ab7d9d1882bbcd06fc8c6c4/release.nix
|
||||
ihaskell = overrideCabal (drv: {
|
||||
# ihaskell's cabal file forces building a shared executable, which we need
|
||||
@ -887,7 +901,11 @@ self: super: builtins.intersectAttrs super {
|
||||
'';
|
||||
}) super.nvfetcher);
|
||||
|
||||
rel8 = addTestToolDepend pkgs.postgresql super.rel8;
|
||||
rel8 = pkgs.lib.pipe super.rel8 [
|
||||
(addTestToolDepend pkgs.postgresql)
|
||||
# https://github.com/NixOS/nixpkgs/issues/198495
|
||||
(overrideCabal { doCheck = pkgs.postgresql.doCheck; })
|
||||
];
|
||||
|
||||
cachix = self.generateOptparseApplicativeCompletions [ "cachix" ] (super.cachix.override { nix = pkgs.nixVersions.nix_2_9; });
|
||||
|
||||
@ -1054,7 +1072,7 @@ self: super: builtins.intersectAttrs super {
|
||||
# Make sure that Cabal 3.8.* can be built as-is
|
||||
Cabal_3_8_1_0 = doDistribute (super.Cabal_3_8_1_0.override {
|
||||
Cabal-syntax = self.Cabal-syntax_3_8_1_0;
|
||||
process = self.process_1_6_15_0;
|
||||
process = self.process_1_6_16_0;
|
||||
});
|
||||
|
||||
# cabal-install switched to build type simple in 3.2.0.0
|
||||
|
2536
pkgs/development/haskell-modules/hackage-packages.nix
generated
2536
pkgs/development/haskell-modules/hackage-packages.nix
generated
File diff suppressed because it is too large
Load Diff
@ -7,13 +7,13 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "flatbuffers";
|
||||
version = "2.0.7";
|
||||
version = "22.10.26";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "google";
|
||||
repo = "flatbuffers";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-tIM6CdIPq++xFbpA22zDm3D4dT9soNDe/9GRY/FyLrw=";
|
||||
sha256 = "sha256-Kub076FkWwHNlphGtTx2c3Jojv8otKLo492uN6Oq1F0=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake python3 ];
|
||||
|
@ -6,13 +6,13 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "intel-gmmlib";
|
||||
version = "22.2.1";
|
||||
version = "22.3.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "intel";
|
||||
repo = "gmmlib";
|
||||
rev = "intel-gmmlib-${version}";
|
||||
sha256 = "sha256-/v2RUn/s3wrBdfClXkm6MM9KfSEWjbE2Njs3fDqXaj8=";
|
||||
sha256 = "sha256-ZJQ4KLKWA9SIXqKffU/uxUU+aXgfDdxQ5Wejgcfowgs=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
@ -4,6 +4,7 @@
|
||||
, fetchFromGitHub
|
||||
, poetry-core
|
||||
, pythonOlder
|
||||
, setuptools
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@ -23,10 +24,10 @@ buildPythonPackage rec {
|
||||
nativeBuildInputs = [
|
||||
cython
|
||||
poetry-core
|
||||
setuptools
|
||||
];
|
||||
|
||||
# Not running tests as aiomysql is missing support for
|
||||
# pymysql>=0.9.3
|
||||
# Not running tests as aiomysql is missing support for pymysql>=0.9.3
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [
|
||||
|
52
pkgs/development/python-modules/bundlewrap/default.nix
Normal file
52
pkgs/development/python-modules/bundlewrap/default.nix
Normal file
@ -0,0 +1,52 @@
|
||||
{ lib
|
||||
, fetchFromGitHub
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, cryptography
|
||||
, jinja2
|
||||
, Mako
|
||||
, passlib
|
||||
, pytest
|
||||
, pyyaml
|
||||
, requests
|
||||
, rtoml
|
||||
, setuptools
|
||||
, tomlkit
|
||||
, librouteros
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "bundlewrap";
|
||||
version = "4.15.0";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "bundlewrap";
|
||||
repo = "bundlewrap";
|
||||
rev = version;
|
||||
sha256 = "sha256-O31lh43VyaFnd/IUkx44wsgxkWubZKzjsKXzHwcGox0";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ setuptools ];
|
||||
propagatedBuildInputs = [
|
||||
cryptography jinja2 Mako passlib pyyaml requests tomlkit librouteros
|
||||
] ++ lib.optional (pythonOlder "3.11") [ rtoml ];
|
||||
|
||||
pythonImportsCheck = [ "bundlewrap" ];
|
||||
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
|
||||
pytestFlagsArray = [
|
||||
# only unit tests as integration tests need a OpenSSH client/server setup
|
||||
"tests/unit"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://bundlewrap.org/";
|
||||
description = "Easy, Concise and Decentralized Config management with Python";
|
||||
license = [ licenses.gpl3 ] ;
|
||||
maintainers = with maintainers; [ wamserma ];
|
||||
};
|
||||
}
|
@ -9,6 +9,7 @@
|
||||
, osqp
|
||||
, scipy
|
||||
, scs
|
||||
, setuptools
|
||||
, useOpenmp ? (!stdenv.isDarwin)
|
||||
# Check inputs
|
||||
, pytestCheckHook
|
||||
@ -33,6 +34,7 @@ buildPythonPackage rec {
|
||||
osqp
|
||||
scipy
|
||||
scs
|
||||
setuptools
|
||||
];
|
||||
|
||||
# Required flags from https://github.com/cvxgrp/cvxpy/releases/tag/v1.1.11
|
||||
@ -49,6 +51,8 @@ buildPythonPackage rec {
|
||||
disabledTests = [
|
||||
"test_tv_inpainting"
|
||||
"test_diffcp_sdp_example"
|
||||
"test_huber"
|
||||
"test_partial_problem"
|
||||
] ++ lib.optionals stdenv.isAarch64 [
|
||||
"test_ecos_bb_mi_lp_2" # https://github.com/cvxgrp/cvxpy/issues/1241#issuecomment-780912155
|
||||
];
|
||||
|
@ -3,29 +3,38 @@
|
||||
, fetchFromGitHub
|
||||
, pytestCheckHook
|
||||
, cython
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "editdistance";
|
||||
version = "0.6.0";
|
||||
version = "0.6.1";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "roy-ht";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "17xkndwdyf14nfxk25z1qnhkzm0yxw65fpj78c01haq241zfzjr5";
|
||||
hash = "sha256-c0TdH1nJAKrepatCSCTLaKsDv9NKruMQadCjclKGxBw=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cython ];
|
||||
nativeBuildInputs = [
|
||||
cython
|
||||
];
|
||||
|
||||
preBuild = ''
|
||||
cythonize --inplace editdistance/bycython.pyx
|
||||
'';
|
||||
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "editdistance" ];
|
||||
pythonImportsCheck = [
|
||||
"editdistance"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python implementation of the edit distance (Levenshtein distance)";
|
||||
|
@ -7,6 +7,7 @@
|
||||
, parts
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, setuptools
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@ -21,6 +22,10 @@ buildPythonPackage rec {
|
||||
hash = "sha256-y9Nv59pLWk1kRjZG3EmalT34Mjx7RLZ4WkvJlRrK5LI=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
fe25519
|
||||
parts
|
||||
|
@ -18,7 +18,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "meshtastic";
|
||||
version = "1.3.43";
|
||||
version = "1.3.44";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
@ -27,7 +27,7 @@ buildPythonPackage rec {
|
||||
owner = "meshtastic";
|
||||
repo = "Meshtastic-python";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-Gy9fnYUbv5jR+YeFjbNGdng+loM/J71Yn9Y1mKERVUA=";
|
||||
hash = "sha256-3OINNcdyZyhofGJDvAVyDLv/ylomM6LP4cEBkmeYwn4=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
@ -24,6 +24,10 @@ buildPythonPackage rec {
|
||||
hash = "sha256-svoXquQqftSY7CYbM/Jiu0s2BefoRkBiFZ2froF/DWE=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
sed -i 's/sp.random/np.random/g' src/osqp/tests/*.py
|
||||
'';
|
||||
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||||
|
||||
dontUseCmakeConfigure = true;
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pysqueezebox";
|
||||
version = "0.6.0";
|
||||
version = "0.6.1";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
@ -17,8 +17,8 @@ buildPythonPackage rec {
|
||||
src = fetchFromGitHub {
|
||||
owner = "rajlaud";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-0ArKVRy4H0NWShlQMziKvbHp9OjpAkEKp4zrvpVlXOk=";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-NCADVSsnaOJfLJ7i18i7d7wlWcyt1DoRFGOVXEEYHPI=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
@ -8,7 +8,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyswitchbee";
|
||||
version = "1.6.0";
|
||||
version = "1.6.1";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.9";
|
||||
@ -17,7 +17,7 @@ buildPythonPackage rec {
|
||||
owner = "jafar-atili";
|
||||
repo = "pySwitchbee";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-ZAe47Oxw5n6OM/PRKz7OR8yzi/c9jnXeOYNjCbs0j1E=";
|
||||
hash = "sha256-5Mc70yi9Yj+8ye81v9NbKZnNoD5PQmBVAiYF5IM5ix8=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
@ -44,8 +44,7 @@ buildPythonPackage rec {
|
||||
meta = with lib; {
|
||||
description = "Library to control SwitchBee smart home device";
|
||||
homepage = "https://github.com/jafar-atili/pySwitchbee/";
|
||||
# https://github.com/jafar-atili/pySwitchbee/issues/1
|
||||
license = with licenses; [ unfree ];
|
||||
license = with licenses; [ asl20 ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
|
@ -7,6 +7,8 @@
|
||||
, pyyaml
|
||||
, ruamel-yaml
|
||||
, toml
|
||||
, tomli
|
||||
, tomli-w
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@ -14,7 +16,7 @@ buildPythonPackage rec {
|
||||
version = "6.0.2";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "cdgriffith";
|
||||
@ -23,16 +25,37 @@ buildPythonPackage rec {
|
||||
hash = "sha256-IE2qyRzvrOTymwga+hCwE785sAVTqQtcN1DL/uADpbQ=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
msgpack
|
||||
pyyaml
|
||||
ruamel-yaml
|
||||
toml
|
||||
];
|
||||
passthru.optional-dependencies = {
|
||||
all = [
|
||||
msgpack
|
||||
ruamel-yaml
|
||||
toml
|
||||
];
|
||||
yaml = [
|
||||
ruamel-yaml
|
||||
];
|
||||
ruamel-yaml = [
|
||||
ruamel-yaml
|
||||
];
|
||||
PyYAML = [
|
||||
pyyaml
|
||||
];
|
||||
tomli = [
|
||||
tomli-w
|
||||
] ++ lib.optionals (pythonOlder "3.11") [
|
||||
tomli
|
||||
];
|
||||
toml = [
|
||||
toml
|
||||
];
|
||||
msgpack = [
|
||||
msgpack
|
||||
];
|
||||
};
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
] ++ passthru.optional-dependencies.all;
|
||||
|
||||
pythonImportsCheck = [
|
||||
"box"
|
||||
|
@ -10,24 +10,31 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "python-gitlab";
|
||||
version = "3.10.0";
|
||||
version = "3.11.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-FJMKFv3X829nuTc+fU1HIOjjdIAAKDgCidszBun3RhQ=";
|
||||
hash = "sha256-25Rytq5PupaLQJ3DL67iDdZQiQZdqpPgjSG3lqZdZXg=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
argcomplete
|
||||
pyyaml
|
||||
requests
|
||||
requests-toolbelt
|
||||
];
|
||||
|
||||
# tests rely on a gitlab instance on a local docker setup
|
||||
passthru.optional-dependencies = {
|
||||
autocompletion = [
|
||||
argcomplete
|
||||
];
|
||||
yaml = [
|
||||
pyyaml
|
||||
];
|
||||
};
|
||||
|
||||
# Tests rely on a gitlab instance on a local docker setup
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [
|
||||
@ -37,7 +44,7 @@ buildPythonPackage rec {
|
||||
meta = with lib; {
|
||||
description = "Interact with GitLab API";
|
||||
homepage = "https://github.com/python-gitlab/python-gitlab";
|
||||
license = licenses.lgpl3;
|
||||
license = licenses.lgpl3Only;
|
||||
maintainers = with maintainers; [ nyanloutre ];
|
||||
};
|
||||
}
|
||||
|
@ -2,36 +2,44 @@
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, loguru
|
||||
, pytestCheckHook
|
||||
, six
|
||||
, pytest-asyncio
|
||||
, pytest-mypy
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "python-utils";
|
||||
version = "3.3.3";
|
||||
version = "3.4.5";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "WoLpH";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-U6yamXbG8CUrNnFmGTBpHUelZSgoaNyB2CdUSH9WdMA=";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-O/+jvdzzxUFaQdAfUM9p40fPPDNN+stTauCD993HH6Y=";
|
||||
};
|
||||
|
||||
# disable coverage and linting
|
||||
postPatch = ''
|
||||
sed -i '/--cov/d' pytest.ini
|
||||
sed -i '/--flake8/d' pytest.ini
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
loguru
|
||||
six
|
||||
];
|
||||
passthru.optional-dependencies = {
|
||||
loguru = [
|
||||
loguru
|
||||
];
|
||||
};
|
||||
|
||||
checkInputs = [
|
||||
pytest-asyncio
|
||||
pytest-mypy
|
||||
pytestCheckHook
|
||||
] ++ passthru.optional-dependencies.loguru;
|
||||
|
||||
pythonImportsCheck = [
|
||||
"python_utils"
|
||||
];
|
||||
|
||||
pytestFlagsArray = [
|
||||
@ -42,5 +50,6 @@ buildPythonPackage rec {
|
||||
description = "Module with some convenient utilities";
|
||||
homepage = "https://github.com/WoLpH/python-utils";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
}
|
||||
|
@ -1,28 +1,49 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, unittest2
|
||||
, robotframework
|
||||
, fetchFromGitHub
|
||||
, lxml
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, requests
|
||||
, robotframework
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "0.9.3";
|
||||
pname = "robotframework-requests";
|
||||
version = "0.9.4";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-C754uOezq5vsSWilG/N5XiZxABp4Cyt+vyriFSmI2jU=";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "MarketSquare";
|
||||
repo = pname;
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-XjcR29dH9K9XEnJZlQ4UUDI1MG92dRO1puiB6fcN58k=";
|
||||
};
|
||||
|
||||
buildInputs = [ unittest2 ];
|
||||
propagatedBuildInputs = [ robotframework lxml requests ];
|
||||
propagatedBuildInputs = [
|
||||
lxml
|
||||
requests
|
||||
robotframework
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"RequestsLibrary"
|
||||
];
|
||||
|
||||
pytestFlagsArray = [
|
||||
"utests"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Robot Framework keyword library wrapper around the HTTP client library requests";
|
||||
homepage = "https://github.com/bulkan/robotframework-requests";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ buildPythonPackage, fetchFromGitHub, lib, isPyPy
|
||||
{ buildPythonPackage, fetchFromGitHub, stdenv, lib, isPyPy
|
||||
, pycrypto, ecdsa # TODO
|
||||
, tox, mock, coverage, can, brotli
|
||||
, withOptionalDeps ? true, tcpdump, ipython
|
||||
@ -7,6 +7,7 @@
|
||||
, withPlottingSupport ? true, matplotlib
|
||||
, withGraphicsSupport ? false, pyx, texlive, graphviz, imagemagick
|
||||
, withManufDb ? false, wireshark
|
||||
, libpcap
|
||||
# 2D/3D graphics and graphs TODO: VPython
|
||||
# TODO: nmap, numpy
|
||||
}:
|
||||
@ -24,8 +25,20 @@ buildPythonPackage rec {
|
||||
sha256 = "0nxci1v32h5517gl9ic6zjq8gc8drwr0n5pz04c91yl97xznnw94";
|
||||
};
|
||||
|
||||
patches = [
|
||||
./find-library.patch
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
printf "${version}" > scapy/VERSION
|
||||
|
||||
libpcap_file="${lib.getLib libpcap}/lib/libpcap${stdenv.hostPlatform.extensions.sharedLibrary}"
|
||||
if ! [ -e "$libpcap_file" ]; then
|
||||
echo "error: $libpcap_file not found" >&2
|
||||
exit 1
|
||||
fi
|
||||
substituteInPlace "scapy/libs/winpcapy.py" \
|
||||
--replace "@libpcap_file@" "$libpcap_file"
|
||||
'' + lib.optionalString withManufDb ''
|
||||
substituteInPlace scapy/data.py --replace "/opt/wireshark" "${wireshark}"
|
||||
'';
|
||||
|
12
pkgs/development/python-modules/scapy/find-library.patch
Normal file
12
pkgs/development/python-modules/scapy/find-library.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -uNr a/scapy/libs/winpcapy.py b/scapy/libs/winpcapy.py
|
||||
--- a/scapy/libs/winpcapy.py 1970-01-01 01:00:01.000000000 +0100
|
||||
+++ b/scapy/libs/winpcapy.py 2022-08-12 17:57:52.830224862 +0200
|
||||
@@ -33,7 +33,7 @@
|
||||
else:
|
||||
# Try to load libpcap
|
||||
SOCKET = c_int
|
||||
- _lib_name = find_library("pcap")
|
||||
+ _lib_name = "@libpcap_file@"
|
||||
if not _lib_name:
|
||||
raise OSError("Cannot find libpcap.so library")
|
||||
_lib = CDLL(_lib_name)
|
@ -1,37 +1,44 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pythonOlder
|
||||
, redis
|
||||
, requests
|
||||
, six
|
||||
, urllib3
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "spotipy";
|
||||
version = "2.20.0";
|
||||
version = "2.21.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-4mqZt1vi/EI3WytLNV3ET6Hlnvx3OvoXt4ThpMCoGMk=";
|
||||
hash = "sha256-YhFhqbWqAVaBwu4buIc87i7mtEDYQEDanSpXzWf31eU=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
redis
|
||||
requests
|
||||
six
|
||||
urllib3
|
||||
];
|
||||
|
||||
# tests want to access the spotify API
|
||||
# Tests want to access the spotify API
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [
|
||||
"spotipy"
|
||||
"spotipy.oauth2"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Library for the Spotify Web API";
|
||||
homepage = "https://spotipy.readthedocs.org/";
|
||||
changelog = "https://github.com/plamere/spotipy/blob/${version}/CHANGELOG.md";
|
||||
description = "A light weight Python library for the Spotify Web API";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ rvolosatovs ];
|
||||
};
|
||||
|
@ -98,14 +98,16 @@ in buildPythonPackage {
|
||||
(
|
||||
cd unpacked/tensorflow*
|
||||
# Adjust dependency requirements:
|
||||
# - Relax flatbuffers, gast and tensorflow-estimator version requirements that don't match what we have packaged
|
||||
# - Relax flatbuffers, gast, protobuf, tensorboard, and tensorflow-estimator version requirements that don't match what we have packaged
|
||||
# - The purpose of python3Packages.libclang is not clear at the moment and we don't have it packaged yet
|
||||
# - keras and tensorlow-io-gcs-filesystem will be considered as optional for now.
|
||||
sed -i *.dist-info/METADATA \
|
||||
-e "/Requires-Dist: flatbuffers/d" \
|
||||
-e "/Requires-Dist: gast/d" \
|
||||
-e "/Requires-Dist: libclang/d" \
|
||||
-e "/Requires-Dist: keras/d" \
|
||||
-e "/Requires-Dist: libclang/d" \
|
||||
-e "/Requires-Dist: protobuf/d" \
|
||||
-e "/Requires-Dist: tensorboard/d" \
|
||||
-e "/Requires-Dist: tensorflow-estimator/d" \
|
||||
-e "/Requires-Dist: tensorflow-io-gcs-filesystem/d"
|
||||
)
|
||||
|
@ -13,13 +13,13 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "cppcheck";
|
||||
version = "2.9";
|
||||
version = "2.9.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "danmar";
|
||||
repo = "cppcheck";
|
||||
rev = version;
|
||||
sha256 = "sha256-UkmtW/3CLU9tFNjVLhQPhYkYflFLOBc/7Qc8lSBOo3I=";
|
||||
sha256 = "sha256-8vwuNK7qQg+pkUnWpEe8272BuHJUaidm8MoGsXVt1X8=";
|
||||
};
|
||||
|
||||
buildInputs = [ pcre
|
||||
|
@ -8,16 +8,16 @@
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "ruff";
|
||||
version = "0.0.89";
|
||||
version = "0.0.91";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "charliermarsh";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-S+lnIzwdh3xv5Hoprl1gElD91zSa63TnAavIeT8XmKQ=";
|
||||
sha256 = "sha256-KAifSlIFJPw0A83pH6kZz2fCmYf6QVmuhAwZWtXEV3o=";
|
||||
};
|
||||
|
||||
cargoSha256 = "sha256-v7hR7t0mVwiF/CAd221ZQSncM7c05bltUB7w3+5xxjM=";
|
||||
cargoSha256 = "sha256-Zy6RQwRc3IYzK+pFs/CsZXZoRmnUfWeZTGpxjHTl6dY=";
|
||||
|
||||
buildInputs = lib.optionals stdenv.isDarwin [
|
||||
CoreServices
|
||||
|
37
pkgs/development/tools/rust/cargo-lambda/default.nix
Normal file
37
pkgs/development/tools/rust/cargo-lambda/default.nix
Normal file
@ -0,0 +1,37 @@
|
||||
{ stdenv, lib, rustPlatform, fetchFromGitHub, makeWrapper, cargo-watch, zig, Security }:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "cargo-lambda";
|
||||
version = "0.11.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = pname;
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-IK4HVj8Y8Vz+mza8G9C+m5JRfNT3BWWdlbQQkJPu6RI=";
|
||||
};
|
||||
|
||||
cargoSha256 = "sha256-oSqoSvv8IiChtduQQA31wItHcsnRBAQgOCrQN4sjcx8=";
|
||||
|
||||
buildInputs = lib.optionals stdenv.isDarwin [ Security ];
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/cargo-lambda --prefix PATH : ${lib.makeBinPath [ cargo-watch zig ]}
|
||||
'';
|
||||
|
||||
checkFlags = [
|
||||
# Disabled because it accesses the network.
|
||||
"--skip test_download_example"
|
||||
# Disabled because it makes assumptions about the file system.
|
||||
"--skip test_target_dir_from_env"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A Cargo subcommand to help you work with AWS Lambda";
|
||||
homepage = "https://cargo-lambda.info";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ taylor1791 ];
|
||||
};
|
||||
}
|
@ -2,16 +2,16 @@
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "flyctl";
|
||||
version = "0.0.424";
|
||||
version = "0.0.425";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "superfly";
|
||||
repo = "flyctl";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-VipCiWSuC1SSJPWk9WXgcMd0G0C2TsUSQgW2GM9yAII=";
|
||||
sha256 = "sha256-SIvJQbPCQhZ9zPQI5QSCOrJNlCNL+S9U2v41ik3h4HU=";
|
||||
};
|
||||
|
||||
vendorSha256 = "sha256-a0ZnZlKB/Uotrm4npXB1dd1+oWHRhJVW7ofMSKlqcvM=";
|
||||
vendorSha256 = "sha256-wMVvDB/6ZDY3EwTWRJ1weCIlRZM+Ye24UnRl1YZzAcA=";
|
||||
|
||||
subPackages = [ "." ];
|
||||
|
||||
|
@ -63,10 +63,7 @@ let
|
||||
inherit dwarf-fortress-unfuck;
|
||||
};
|
||||
|
||||
# unfuck is linux-only right now, we will only use it there.
|
||||
dwarf-fortress-unfuck =
|
||||
if stdenv.isLinux then callPackage ./unfuck.nix { inherit dfVersion; }
|
||||
else null;
|
||||
dwarf-fortress-unfuck = callPackage ./unfuck.nix { inherit dfVersion; };
|
||||
|
||||
twbt = callPackage ./twbt { inherit dfVersion; };
|
||||
|
||||
@ -83,11 +80,7 @@ let
|
||||
in
|
||||
callPackage ./wrapper {
|
||||
inherit (self) themes;
|
||||
|
||||
dwarf-fortress = dwarf-fortress;
|
||||
twbt = twbt;
|
||||
dfhack = dfhack;
|
||||
dwarf-therapist = dwarf-therapist;
|
||||
inherit dwarf-fortress twbt dfhack dwarf-therapist;
|
||||
|
||||
jdk = jdk8; # TODO: remove override https://github.com/NixOS/nixpkgs/pull/89731
|
||||
};
|
||||
|
@ -18,8 +18,6 @@ with lib;
|
||||
let
|
||||
libpath = makeLibraryPath [ stdenv.cc.cc stdenv.cc.libc dwarf-fortress-unfuck SDL ];
|
||||
|
||||
homepage = "http://www.bay12games.com/dwarves/";
|
||||
|
||||
# Map Dwarf Fortress platform names to Nixpkgs platform names.
|
||||
# Other srcs are avilable like 32-bit mac & win, but I have only
|
||||
# included the ones most likely to be needed by Nixpkgs users.
|
||||
@ -56,7 +54,7 @@ stdenv.mkDerivation {
|
||||
version = dfVersion;
|
||||
|
||||
src = fetchurl {
|
||||
url = "${homepage}df_${baseVersion}_${patchVersion}_${dfPlatform}.tar.bz2";
|
||||
url = "https://www.bay12games.com/dwarves/df_${baseVersion}_${patchVersion}_${dfPlatform}.tar.bz2";
|
||||
inherit sha256;
|
||||
};
|
||||
|
||||
@ -103,7 +101,7 @@ stdenv.mkDerivation {
|
||||
|
||||
meta = {
|
||||
description = "A single-player fantasy game with a randomly generated adventure world";
|
||||
inherit homepage;
|
||||
homepage = "https://www.bay12games.com/dwarves/";
|
||||
license = licenses.unfreeRedistributable;
|
||||
platforms = attrNames platforms;
|
||||
maintainers = with maintainers; [ a1russell robbinch roconnor abbradar numinit shazow ];
|
||||
|
@ -137,4 +137,6 @@ stdenv.mkDerivation {
|
||||
'';
|
||||
|
||||
preferLocalBuild = true;
|
||||
|
||||
inherit (dwarf-fortress) meta;
|
||||
}
|
||||
|
@ -3,17 +3,18 @@
|
||||
, useSteamRun ? true }:
|
||||
|
||||
let
|
||||
rev = "6246fde6b54f8c7e340057fe2d940287c437153f";
|
||||
rev = "1.0.2";
|
||||
in
|
||||
buildDotnetModule rec {
|
||||
pname = "XIVLauncher";
|
||||
version = "1.0.1.0";
|
||||
version = rev;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "goatcorp";
|
||||
repo = "FFXIVQuickLauncher";
|
||||
repo = "XIVLauncher.Core";
|
||||
inherit rev;
|
||||
sha256 = "sha256-sM909/ysrlwsiVSBrMo4cOZUWxjRA3ZSwlloGythOAY=";
|
||||
sha256 = "DlSMxIbgzL5cy+A5nm7ZaA2A0TdINtq2GHW27uxORKI=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ copyDesktopItems ];
|
||||
@ -31,7 +32,7 @@ in
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace src/XIVLauncher.Common/Game/Patch/Acquisition/Aria/AriaHttpPatchAcquisition.cs \
|
||||
substituteInPlace lib/FFXIVQuickLauncher/src/XIVLauncher.Common/Game/Patch/Acquisition/Aria/AriaHttpPatchAcquisition.cs \
|
||||
--replace 'ariaPath = "aria2c"' 'ariaPath = "${aria2}/bin/aria2c"'
|
||||
'';
|
||||
|
||||
@ -57,6 +58,7 @@ in
|
||||
desktopName = "XIVLauncher";
|
||||
comment = meta.description;
|
||||
categories = [ "Game" ];
|
||||
startupWMClass = "XIVLauncher.Core";
|
||||
})
|
||||
];
|
||||
|
||||
@ -66,5 +68,6 @@ in
|
||||
license = licenses.gpl3;
|
||||
maintainers = with maintainers; [ ashkitten sersorrel ];
|
||||
platforms = [ "x86_64-linux" ];
|
||||
mainProgram = "XIVLauncher.Core";
|
||||
};
|
||||
}
|
||||
|
21
pkgs/games/xivlauncher/deps.nix
generated
21
pkgs/games/xivlauncher/deps.nix
generated
@ -4,6 +4,7 @@
|
||||
{ fetchNuGet }: [
|
||||
(fetchNuGet { pname = "Castle.Core"; version = "4.4.1"; sha256 = "13dja1jxl5zwhi0ghkgvgmqdrixn57f9hk52jy5vpaaakzr550r7"; })
|
||||
(fetchNuGet { pname = "CheapLoc"; version = "1.1.6"; sha256 = "1m6cgx9yh7h3vrq2d4f99xyvsxc9jvz8zjq1q14qgylfmyq4hx4l"; })
|
||||
(fetchNuGet { pname = "CommandLineParser"; version = "2.9.1"; sha256 = "1sldkj8lakggn4hnyabjj1fppqh50fkdrr1k99d4gswpbk5kv582"; })
|
||||
(fetchNuGet { pname = "Config.Net"; version = "4.19.0"; sha256 = "17iv0vy0693s6d8626lbz3w1ppn5abn77aaki7h4qi4izysizgim"; })
|
||||
(fetchNuGet { pname = "Downloader"; version = "2.2.8"; sha256 = "0farwh3pc6m8hsgqywigdpcb4gr2m9myyxm2idzjmhhkzfqghj28"; })
|
||||
(fetchNuGet { pname = "goaaats.NativeLibraryLoader"; version = "4.9.0-beta1-g70f642e82e"; sha256 = "1bjjgsw4ry9cz8dzsgwx428hn06wms194pqz8nclwrqcwfx7gmxk"; })
|
||||
@ -16,14 +17,13 @@
|
||||
(fetchNuGet { pname = "goaaats.Veldrid.StartupUtilities"; version = "4.9.0-beta1-g70f642e82e"; sha256 = "03r3x9h0fyb07d6d28ny6r5s688m50xc0lgc6zf2cy684kfnvmp5"; })
|
||||
(fetchNuGet { pname = "ImGui.NET"; version = "1.87.2"; sha256 = "0rv0n18fvz1gbh45crhzn1f8xw8zkc8qyiyj91vajjcry8mq1x7q"; })
|
||||
(fetchNuGet { pname = "KeySharp"; version = "1.0.5"; sha256 = "1ic10v0a174fw6w89iyg4yzji36bsj15573y676cj5n09n6s75d4"; })
|
||||
(fetchNuGet { pname = "Microsoft.Bcl.AsyncInterfaces"; version = "6.0.0"; sha256 = "15gqy2m14fdlvy1g59207h5kisznm355kbw010gy19vh47z8gpz3"; })
|
||||
(fetchNuGet { pname = "Microsoft.CodeAnalysis.Analyzers"; version = "3.3.3"; sha256 = "09m4cpry8ivm9ga1abrxmvw16sslxhy2k5sl14zckhqb1j164im6"; })
|
||||
(fetchNuGet { pname = "Microsoft.CodeAnalysis.BannedApiAnalyzers"; version = "3.3.3"; sha256 = "1z6x0d8lpcfjr3sxy25493i17vvcg5bsay6c03qan6mnj5aqzw2k"; })
|
||||
(fetchNuGet { pname = "Microsoft.CodeAnalysis.Common"; version = "4.0.1"; sha256 = "0axjv1nhk1z9d4c51d9yxdp09l8yqqnqaifhqcwnxnv0r4y5cka9"; })
|
||||
(fetchNuGet { pname = "Microsoft.CodeAnalysis.CSharp"; version = "4.0.1"; sha256 = "1h6jfifg7pw2vacpdds4v4jqnaydg9b108irf315wzx6rh8yv9cb"; })
|
||||
(fetchNuGet { pname = "Microsoft.CodeAnalysis.NetAnalyzers"; version = "6.0.0"; sha256 = "06zy947m5lrbwb684g42ijb07r5jsqycvfnphc6cqfdrfnzqv6k9"; })
|
||||
(fetchNuGet { pname = "Microsoft.NETCore.Platforms"; version = "1.0.1"; sha256 = "01al6cfxp68dscl15z7rxfw9zvhm64dncsw09a1vmdkacsa2v6lr"; })
|
||||
(fetchNuGet { pname = "Microsoft.NETCore.Platforms"; version = "1.1.0"; sha256 = "08vh1r12g6ykjygq5d3vq09zylgb84l63k49jc4v8faw9g93iqqm"; })
|
||||
(fetchNuGet { pname = "Microsoft.NETCore.Targets"; version = "1.0.1"; sha256 = "0ppdkwy6s9p7x9jix3v4402wb171cdiibq7js7i13nxpdky7074p"; })
|
||||
(fetchNuGet { pname = "Microsoft.NETCore.Targets"; version = "1.1.0"; sha256 = "193xwf33fbm0ni3idxzbr5fdq3i2dlfgihsac9jj7whj0gd902nh"; })
|
||||
(fetchNuGet { pname = "Microsoft.Win32.Primitives"; version = "4.3.0"; sha256 = "0j0c1wj4ndj21zsgivsc24whiya605603kxrbiw6wkfdync464wq"; })
|
||||
(fetchNuGet { pname = "Microsoft.Win32.Registry"; version = "6.0.0-preview.5.21301.5"; sha256 = "02712s86n2i8s5j6vxdayqwcc7r538yw3frhf1gfrc6ah6hvqnzc"; })
|
||||
@ -76,14 +76,12 @@
|
||||
(fetchNuGet { pname = "runtime.unix.System.Net.Sockets"; version = "4.3.0"; sha256 = "03npdxzy8gfv035bv1b9rz7c7hv0rxl5904wjz51if491mw0xy12"; })
|
||||
(fetchNuGet { pname = "runtime.unix.System.Private.Uri"; version = "4.3.0"; sha256 = "1jx02q6kiwlvfksq1q9qr17fj78y5v6mwsszav4qcz9z25d5g6vk"; })
|
||||
(fetchNuGet { pname = "runtime.unix.System.Runtime.Extensions"; version = "4.3.0"; sha256 = "0pnxxmm8whx38dp6yvwgmh22smknxmqs5n513fc7m4wxvs1bvi4p"; })
|
||||
(fetchNuGet { pname = "Serilog"; version = "2.10.0"; sha256 = "08bih205i632ywryn3zxkhb15dwgyaxbhmm1z3b5nmby9fb25k7v"; })
|
||||
(fetchNuGet { pname = "Serilog"; version = "2.9.0"; sha256 = "0z0ib82w9b229a728bbyhzc2hnlbl0ki7nnvmgnv3l741f2vr4i6"; })
|
||||
(fetchNuGet { pname = "Serilog"; version = "2.12.0"; sha256 = "0lqxpc96qcjkv9pr1rln7mi4y7n7jdi4vb36c2fv3845w1vswgr4"; })
|
||||
(fetchNuGet { pname = "Serilog.Enrichers.Thread"; version = "3.1.0"; sha256 = "1y75aiv2k1sxnh012ixkx92fq1yl8srqggy8l439igg4p223hcqi"; })
|
||||
(fetchNuGet { pname = "Serilog.Sinks.Async"; version = "1.4.0"; sha256 = "00kqrn3xmfzg469y155vihsiby8dbbs382fi6qg8p2zg3i5dih1d"; })
|
||||
(fetchNuGet { pname = "Serilog.Sinks.Async"; version = "1.5.0"; sha256 = "0bcb3n6lmg5wfj806mziybfmbb8gyiszrivs3swf0msy8w505gyg"; })
|
||||
(fetchNuGet { pname = "Serilog.Sinks.Console"; version = "3.1.1"; sha256 = "0j99as641y1k6havwwkhyr0n08vibiblmfjj6nz051mz8g3864fn"; })
|
||||
(fetchNuGet { pname = "Serilog.Sinks.Console"; version = "4.0.1"; sha256 = "080vh9kcyn9lx4j7p34146kp9byvhqlaz5jn9wzx70ql9cwd0hlz"; })
|
||||
(fetchNuGet { pname = "Serilog.Sinks.Debug"; version = "1.0.1"; sha256 = "0969mb254kr59bgkq01ybyzca89z3f4n9ng5mdj8m53d5653zf22"; })
|
||||
(fetchNuGet { pname = "Serilog.Sinks.File"; version = "4.1.0"; sha256 = "1ry7p9hf1zlnai1j5zjhjp4dqm2agsbpq6cvxgpf5l8m26x6mgca"; })
|
||||
(fetchNuGet { pname = "Serilog.Sinks.File"; version = "5.0.0"; sha256 = "097rngmgcrdfy7jy8j7dq3xaq2qky8ijwg0ws6bfv5lx0f3vvb0q"; })
|
||||
(fetchNuGet { pname = "SharedMemory"; version = "2.3.2"; sha256 = "078qaab0j8p2fjcc9n7r4sr5pr7567a9bspfiikkc85bsx7vfm8w"; })
|
||||
(fetchNuGet { pname = "SharpGen.Runtime"; version = "2.0.0-beta.10"; sha256 = "0yxq0b4m96z71afc7sywfrlwz2pgr5nilacmssjk803v70f0ydr1"; })
|
||||
@ -113,13 +111,10 @@
|
||||
(fetchNuGet { pname = "System.Globalization"; version = "4.3.0"; sha256 = "1cp68vv683n6ic2zqh2s1fn4c2sd87g5hpp6l4d4nj4536jz98ki"; })
|
||||
(fetchNuGet { pname = "System.Globalization.Calendars"; version = "4.3.0"; sha256 = "1xwl230bkakzzkrggy1l1lxmm3xlhk4bq2pkv790j5lm8g887lxq"; })
|
||||
(fetchNuGet { pname = "System.Globalization.Extensions"; version = "4.3.0"; sha256 = "02a5zfxavhv3jd437bsncbhd2fp1zv4gxzakp1an9l6kdq1mcqls"; })
|
||||
(fetchNuGet { pname = "System.IO"; version = "4.1.0"; sha256 = "1g0yb8p11vfd0kbkyzlfsbsp5z44lwsvyc0h3dpw6vqnbi035ajp"; })
|
||||
(fetchNuGet { pname = "System.IO"; version = "4.3.0"; sha256 = "05l9qdrzhm4s5dixmx68kxwif4l99ll5gqmh7rqgw554fx0agv5f"; })
|
||||
(fetchNuGet { pname = "System.IO.Compression"; version = "4.3.0"; sha256 = "084zc82yi6yllgda0zkgl2ys48sypiswbiwrv7irb3r0ai1fp4vz"; })
|
||||
(fetchNuGet { pname = "System.IO.Compression.ZipFile"; version = "4.3.0"; sha256 = "1yxy5pq4dnsm9hlkg9ysh5f6bf3fahqqb6p8668ndy5c0lk7w2ar"; })
|
||||
(fetchNuGet { pname = "System.IO.FileSystem"; version = "4.0.1"; sha256 = "0kgfpw6w4djqra3w5crrg8xivbanh1w9dh3qapb28q060wb9flp1"; })
|
||||
(fetchNuGet { pname = "System.IO.FileSystem"; version = "4.3.0"; sha256 = "0z2dfrbra9i6y16mm9v1v6k47f0fm617vlb7s5iybjjsz6g1ilmw"; })
|
||||
(fetchNuGet { pname = "System.IO.FileSystem.Primitives"; version = "4.0.1"; sha256 = "1s0mniajj3lvbyf7vfb5shp4ink5yibsx945k6lvxa96r8la1612"; })
|
||||
(fetchNuGet { pname = "System.IO.FileSystem.Primitives"; version = "4.3.0"; sha256 = "0j6ndgglcf4brg2lz4wzsh1av1gh8xrzdsn9f0yznskhqn1xzj9c"; })
|
||||
(fetchNuGet { pname = "System.Linq"; version = "4.3.0"; sha256 = "1w0gmba695rbr80l1k2h4mrwzbzsyfl2z4klmpbsvsg5pm4a56s7"; })
|
||||
(fetchNuGet { pname = "System.Linq.Expressions"; version = "4.3.0"; sha256 = "0ky2nrcvh70rqq88m9a5yqabsl4fyd17bpr63iy2mbivjs2nyypv"; })
|
||||
@ -143,7 +138,6 @@
|
||||
(fetchNuGet { pname = "System.Reflection.Primitives"; version = "4.3.0"; sha256 = "04xqa33bld78yv5r93a8n76shvc8wwcdgr1qvvjh959g3rc31276"; })
|
||||
(fetchNuGet { pname = "System.Reflection.TypeExtensions"; version = "4.3.0"; sha256 = "0y2ssg08d817p0vdag98vn238gyrrynjdj4181hdg780sif3ykp1"; })
|
||||
(fetchNuGet { pname = "System.Resources.ResourceManager"; version = "4.3.0"; sha256 = "0sjqlzsryb0mg4y4xzf35xi523s4is4hz9q4qgdvlvgivl7qxn49"; })
|
||||
(fetchNuGet { pname = "System.Runtime"; version = "4.1.0"; sha256 = "02hdkgk13rvsd6r9yafbwzss8kr55wnj8d5c7xjnp8gqrwc8sn0m"; })
|
||||
(fetchNuGet { pname = "System.Runtime"; version = "4.3.0"; sha256 = "066ixvgbf2c929kgknshcxqj6539ax7b9m570cp8n179cpfkapz7"; })
|
||||
(fetchNuGet { pname = "System.Runtime.CompilerServices.Unsafe"; version = "4.4.0"; sha256 = "0a6ahgi5b148sl5qyfpyw383p3cb4yrkm802k29fsi4mxkiwir29"; })
|
||||
(fetchNuGet { pname = "System.Runtime.CompilerServices.Unsafe"; version = "4.5.0"; sha256 = "17labczwqk3jng3kkky73m0jhi8wc21vbl7cz5c0hj2p1dswin43"; })
|
||||
@ -151,7 +145,6 @@
|
||||
(fetchNuGet { pname = "System.Runtime.CompilerServices.Unsafe"; version = "5.0.0"; sha256 = "02k25ivn50dmqx5jn8hawwmz24yf0454fjd823qk6lygj9513q4x"; })
|
||||
(fetchNuGet { pname = "System.Runtime.CompilerServices.Unsafe"; version = "6.0.0"; sha256 = "0qm741kh4rh57wky16sq4m0v05fxmkjjr87krycf5vp9f0zbahbc"; })
|
||||
(fetchNuGet { pname = "System.Runtime.Extensions"; version = "4.3.0"; sha256 = "1ykp3dnhwvm48nap8q23893hagf665k0kn3cbgsqpwzbijdcgc60"; })
|
||||
(fetchNuGet { pname = "System.Runtime.Handles"; version = "4.0.1"; sha256 = "1g0zrdi5508v49pfm3iii2hn6nm00bgvfpjq1zxknfjrxxa20r4g"; })
|
||||
(fetchNuGet { pname = "System.Runtime.Handles"; version = "4.3.0"; sha256 = "0sw2gfj2xr7sw9qjn0j3l9yw07x73lcs97p8xfc9w1x9h5g5m7i8"; })
|
||||
(fetchNuGet { pname = "System.Runtime.InteropServices"; version = "4.3.0"; sha256 = "00hywrn4g7hva1b2qri2s6rabzwgxnbpw9zfxmz28z09cpwwgh7j"; })
|
||||
(fetchNuGet { pname = "System.Runtime.InteropServices.RuntimeInformation"; version = "4.3.0"; sha256 = "0q18r1sh4vn7bvqgd6dmqlw5v28flbpj349mkdish2vjyvmnb2ii"; })
|
||||
@ -172,19 +165,17 @@
|
||||
(fetchNuGet { pname = "System.Security.Principal.Windows"; version = "4.3.0"; sha256 = "00a0a7c40i3v4cb20s2cmh9csb5jv2l0frvnlzyfxh848xalpdwr"; })
|
||||
(fetchNuGet { pname = "System.Security.Principal.Windows"; version = "5.0.0"; sha256 = "1mpk7xj76lxgz97a5yg93wi8lj0l8p157a5d50mmjy3gbz1904q8"; })
|
||||
(fetchNuGet { pname = "System.Security.Principal.Windows"; version = "6.0.0-preview.5.21301.5"; sha256 = "1q3iikvjcfrm5p89p1j7qlw1szvryq680qypk023wgy9phmlwi57"; })
|
||||
(fetchNuGet { pname = "System.Text.Encoding"; version = "4.0.11"; sha256 = "1dyqv0hijg265dwxg6l7aiv74102d6xjiwplh2ar1ly6xfaa4iiw"; })
|
||||
(fetchNuGet { pname = "System.Text.Encoding"; version = "4.3.0"; sha256 = "1f04lkir4iladpp51sdgmis9dj4y8v08cka0mbmsy0frc9a4gjqr"; })
|
||||
(fetchNuGet { pname = "System.Text.Encoding.CodePages"; version = "4.5.1"; sha256 = "1z21qyfs6sg76rp68qdx0c9iy57naan89pg7p6i3qpj8kyzn921w"; })
|
||||
(fetchNuGet { pname = "System.Text.Encoding.Extensions"; version = "4.0.11"; sha256 = "08nsfrpiwsg9x5ml4xyl3zyvjfdi4mvbqf93kjdh11j4fwkznizs"; })
|
||||
(fetchNuGet { pname = "System.Text.Encoding.Extensions"; version = "4.3.0"; sha256 = "11q1y8hh5hrp5a3kw25cb6l00v5l5dvirkz8jr3sq00h1xgcgrxy"; })
|
||||
(fetchNuGet { pname = "System.Text.Encodings.Web"; version = "6.0.0"; sha256 = "06n9ql3fmhpjl32g3492sj181zjml5dlcc5l76xq2h38c4f87sai"; })
|
||||
(fetchNuGet { pname = "System.Text.Json"; version = "6.0.6"; sha256 = "0bkfrnr9618brbl1gvhyqrf5720syawf9dvpk8xfvkxbg7imlpjx"; })
|
||||
(fetchNuGet { pname = "System.Text.RegularExpressions"; version = "4.3.0"; sha256 = "1bgq51k7fwld0njylfn7qc5fmwrk2137gdq7djqdsw347paa9c2l"; })
|
||||
(fetchNuGet { pname = "System.Threading"; version = "4.3.0"; sha256 = "0rw9wfamvhayp5zh3j7p1yfmx9b5khbf4q50d8k5rk993rskfd34"; })
|
||||
(fetchNuGet { pname = "System.Threading.Tasks"; version = "4.0.11"; sha256 = "0nr1r41rak82qfa5m0lhk9mp0k93bvfd7bbd9sdzwx9mb36g28p5"; })
|
||||
(fetchNuGet { pname = "System.Threading.Tasks"; version = "4.3.0"; sha256 = "134z3v9abw3a6jsw17xl3f6hqjpak5l682k2vz39spj4kmydg6k7"; })
|
||||
(fetchNuGet { pname = "System.Threading.Tasks.Extensions"; version = "4.3.0"; sha256 = "1xxcx2xh8jin360yjwm4x4cf5y3a2bwpn2ygkfkwkicz7zk50s2z"; })
|
||||
(fetchNuGet { pname = "System.Threading.Tasks.Extensions"; version = "4.5.4"; sha256 = "0y6ncasgfcgnjrhynaf0lwpkpkmv4a07sswwkwbwb5h7riisj153"; })
|
||||
(fetchNuGet { pname = "System.Threading.ThreadPool"; version = "4.3.0"; sha256 = "027s1f4sbx0y1xqw2irqn6x161lzj8qwvnh2gn78ciiczdv10vf1"; })
|
||||
(fetchNuGet { pname = "System.Threading.Timer"; version = "4.0.1"; sha256 = "15n54f1f8nn3mjcjrlzdg6q3520571y012mx7v991x2fvp73lmg6"; })
|
||||
(fetchNuGet { pname = "System.Threading.Timer"; version = "4.3.0"; sha256 = "1nx773nsx6z5whv8kaa1wjh037id2f1cxhb69pvgv12hd2b6qs56"; })
|
||||
(fetchNuGet { pname = "System.Windows.Extensions"; version = "6.0.0"; sha256 = "1wy9pq9vn1bqg5qnv53iqrbx04yzdmjw4x5yyi09y3459vaa1sip"; })
|
||||
(fetchNuGet { pname = "System.Xml.ReaderWriter"; version = "4.3.0"; sha256 = "0c47yllxifzmh8gq6rq6l36zzvw4kjvlszkqa9wq3fr59n0hl3s1"; })
|
||||
|
@ -24,14 +24,14 @@
|
||||
assert (!libsOnly) -> kernel != null;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "18.0.2-53077";
|
||||
version = "18.0.3-53079";
|
||||
pname = "prl-tools";
|
||||
|
||||
# We download the full distribution to extract prl-tools-lin.iso from
|
||||
# => ${dmg}/Parallels\ Desktop.app/Contents/Resources/Tools/prl-tools-lin.iso
|
||||
src = fetchurl {
|
||||
url = "https://download.parallels.com/desktop/v${lib.versions.major version}/${version}/ParallelsDesktop-${version}.dmg";
|
||||
sha256 = "sha256-yrCg3qr96SUCHmT3IAF79/Ha+L82V3nIC6Hb5ugXoGk=";
|
||||
sha256 = "sha256-z9B2nhcTSZr3L30fa54zYi6WnonQ2wezHoneT2tQWAc=";
|
||||
};
|
||||
|
||||
patches = lib.optionals (lib.versionAtLeast kernel.version "6.0") [
|
||||
|
@ -8,43 +8,32 @@ let
|
||||
py = python3.override {
|
||||
packageOverrides = final: prev: {
|
||||
django = prev.django_4;
|
||||
fido2 = prev.fido2.overridePythonAttrs (old: rec {
|
||||
version = "0.9.3";
|
||||
src = prev.fetchPypi {
|
||||
pname = "fido2";
|
||||
inherit version;
|
||||
sha256 = "sha256-tF6JphCc/Lfxu1E3dqotZAjpXEgi+DolORi5RAg0Zuw=";
|
||||
};
|
||||
});
|
||||
};
|
||||
};
|
||||
in
|
||||
py.pkgs.buildPythonApplication rec {
|
||||
pname = "healthchecks";
|
||||
version = "2.2.1";
|
||||
version = "2.4.1";
|
||||
format = "other";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "healthchecks";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-C+NUvs5ijbj/l8G1sjSXvUJDNSOTVFAStfS5KtYFpUs=";
|
||||
sha256 = "sha256-K2zA0ZkAPMgm+IofNiCf+mVTF/RIoorTupWLOowT29g=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with py.pkgs; [
|
||||
apprise
|
||||
cffi
|
||||
cron-descriptor
|
||||
cronsim
|
||||
cryptography
|
||||
django
|
||||
django-compressor
|
||||
fido2
|
||||
minio
|
||||
psycopg2
|
||||
py
|
||||
pycurl
|
||||
pyotp
|
||||
requests
|
||||
segno
|
||||
statsd
|
||||
whitenoise
|
||||
|
@ -2,13 +2,13 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "HyFetch";
|
||||
version = "1.4.1";
|
||||
version = "1.4.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
repo = "hyfetch";
|
||||
owner = "hykilpikonna";
|
||||
rev = "refs/tags/${version}";
|
||||
sha256 = "sha256-aVALjuFXg3ielDfxEDMTOtaPghsBg9+vKRbR3aDTalQ=";
|
||||
sha256 = "sha256-5TzIhbyrhQmuxR/Vs3XpOj/8FnykmBiDj6sXfFZK0uM=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
@ -4,23 +4,22 @@
|
||||
}:
|
||||
buildGoModule rec {
|
||||
pname = "hysteria";
|
||||
version = "1.2.1";
|
||||
version = "1.2.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "HyNetwork";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-xL8xRVJdCyaP39TO+cJLAPbdc7WHxgBQMEyxkyhWlA8=";
|
||||
sha256 = "sha256-XAf835p2a7ThGgYL62pcEWqjp0rs/cRYfzTJsV6j2oA=";
|
||||
};
|
||||
|
||||
vendorSha256 = "sha256-VCQHkkYmGU0ZPmTuYu2XFa5ezDJ3x7dZGN+Usmq4sOY=";
|
||||
vendorSha256 = "sha256-nVUS3KquKUSN/8OHPlcMK9gDJmrxvWS8nHYE7m6hZPQ=";
|
||||
proxyVendor = true;
|
||||
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
"-X main.appVersion=${version}"
|
||||
"-X main.appCommit=${version}"
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
|
69
pkgs/tools/networking/xray/default.nix
Normal file
69
pkgs/tools/networking/xray/default.nix
Normal file
@ -0,0 +1,69 @@
|
||||
{ lib
|
||||
, fetchFromGitHub
|
||||
, fetchurl
|
||||
, symlinkJoin
|
||||
, buildGoModule
|
||||
, runCommand
|
||||
, makeWrapper
|
||||
, nix-update-script
|
||||
, v2ray-geoip
|
||||
, v2ray-domain-list-community
|
||||
, assets ? [ v2ray-geoip v2ray-domain-list-community ]
|
||||
}:
|
||||
|
||||
let
|
||||
assetsDrv = symlinkJoin {
|
||||
name = "v2ray-assets";
|
||||
paths = assets;
|
||||
};
|
||||
|
||||
in
|
||||
buildGoModule rec {
|
||||
pname = "xray";
|
||||
version = "1.6.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "XTLS";
|
||||
repo = "Xray-core";
|
||||
rev = "v${version}";
|
||||
sha256 = "0g2bmy522lhip0rgb3hqyi3bidf4ljyjvvv3n1kb6lvm0p3br51b";
|
||||
};
|
||||
|
||||
vendorSha256 = "sha256-QAF/05/5toP31a/l7mTIetFhXuAKsT69OI1K/gMXei0=";
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
doCheck = false;
|
||||
|
||||
ldflags = [ "-s" "-w" "-buildid=" ];
|
||||
subPackages = [ "main" ];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
install -Dm555 "$GOPATH"/bin/main $out/bin/xray
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
assetsDrv = symlinkJoin {
|
||||
name = "v2ray-assets";
|
||||
paths = assets;
|
||||
};
|
||||
|
||||
postFixup = ''
|
||||
wrapProgram $out/bin/xray \
|
||||
--suffix XRAY_LOCATION_ASSET : $assetsDrv/share/v2ray
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
updateScript = nix-update-script {
|
||||
attrPath = pname;
|
||||
};
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "A platform for building proxies to bypass network restrictions. A replacement for v2ray-core, with XTLS support and fully compatible configuration";
|
||||
homepage = "https://github.com/XTLS/Xray-core";
|
||||
license = with lib.licenses; [ mpl20 ];
|
||||
maintainers = with lib.maintainers; [ iopq ];
|
||||
};
|
||||
}
|
@ -12585,6 +12585,8 @@ with pkgs;
|
||||
|
||||
xplr = callPackage ../applications/misc/xplr {};
|
||||
|
||||
xray = callPackage ../tools/networking/xray { };
|
||||
|
||||
testdisk = libsForQt5.callPackage ../tools/system/testdisk { };
|
||||
|
||||
testdisk-qt = testdisk.override { enableQt = true; };
|
||||
@ -13637,6 +13639,11 @@ with pkgs;
|
||||
|
||||
fasmg = callPackage ../development/compilers/fasmg { };
|
||||
|
||||
fbc = if stdenv.hostPlatform.isDarwin then
|
||||
callPackage ../development/compilers/fbc/mac-bin.nix { }
|
||||
else
|
||||
callPackage ../development/compilers/fbc { };
|
||||
|
||||
filecheck = with python3Packages; toPythonApplication filecheck;
|
||||
|
||||
firrtl = callPackage ../development/compilers/firrtl { };
|
||||
@ -14985,6 +14992,9 @@ with pkgs;
|
||||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
};
|
||||
cargo-insta = callPackage ../development/tools/rust/cargo-insta { };
|
||||
cargo-lambda = callPackage ../development/tools/rust/cargo-lambda {
|
||||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
};
|
||||
cargo-limit = callPackage ../development/tools/rust/cargo-limit { };
|
||||
cargo-make = callPackage ../development/tools/rust/cargo-make {
|
||||
inherit (darwin.apple_sdk.frameworks) Security SystemConfiguration;
|
||||
@ -16432,6 +16442,8 @@ with pkgs;
|
||||
# until more issues are fixed default to libbpf 0.x
|
||||
libbpf = libbpf_0;
|
||||
|
||||
bundlewrap = with python3.pkgs; toPythonApplication bundlewrap;
|
||||
|
||||
bpftools = callPackage ../os-specific/linux/bpftools { };
|
||||
|
||||
bcc = callPackage ../os-specific/linux/bcc {
|
||||
@ -32013,10 +32025,8 @@ with pkgs;
|
||||
# customConfig = builtins.readFile ./tabbed.config.h;
|
||||
};
|
||||
|
||||
# Use GHC 9.0 when this asserts starts to fire
|
||||
taffybar = assert haskellPackages.taffybar.version == "3.3.0";
|
||||
callPackage ../applications/window-managers/taffybar {
|
||||
inherit (haskell.packages.ghc810) ghcWithPackages taffybar;
|
||||
taffybar = callPackage ../applications/window-managers/taffybar {
|
||||
inherit (haskellPackages) ghcWithPackages taffybar;
|
||||
};
|
||||
|
||||
tagainijisho = libsForQt5.callPackage ../applications/office/tagainijisho {};
|
||||
@ -33526,7 +33536,8 @@ with pkgs;
|
||||
};
|
||||
|
||||
zcash = callPackage ../applications/blockchains/zcash {
|
||||
stdenv = if stdenv.isDarwin then stdenv else llvmPackages_13.stdenv;
|
||||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
stdenv = llvmPackages_14.stdenv;
|
||||
};
|
||||
|
||||
zecwallet-lite = callPackage ../applications/blockchains/zecwallet-lite { };
|
||||
@ -35707,6 +35718,8 @@ with pkgs;
|
||||
|
||||
monosat = callPackage ../applications/science/logic/monosat {};
|
||||
|
||||
nusmv = callPackage ../applications/science/logic/nusmv { };
|
||||
|
||||
nuXmv = callPackage ../applications/science/logic/nuXmv {};
|
||||
|
||||
opensmt = callPackage ../applications/science/logic/opensmt { };
|
||||
|
@ -1446,6 +1446,8 @@ self: super: with self; {
|
||||
|
||||
bunch = callPackage ../development/python-modules/bunch { };
|
||||
|
||||
bundlewrap = callPackage ../development/python-modules/bundlewrap { };
|
||||
|
||||
bx-python = callPackage ../development/python-modules/bx-python { };
|
||||
|
||||
bwapy = callPackage ../development/python-modules/bwapy { };
|
||||
|
@ -394,6 +394,9 @@ let
|
||||
compilerNames.ghc902
|
||||
compilerNames.ghc924
|
||||
];
|
||||
purescript = [
|
||||
compilerNames.ghc924
|
||||
];
|
||||
purescript-cst = [
|
||||
compilerNames.ghc8107
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user