Skip to content

Commit

Permalink
Merge staging-next into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jul 31, 2023
2 parents 88ce27f + 28f4120 commit 8eb8f04
Show file tree
Hide file tree
Showing 42 changed files with 522 additions and 104 deletions.
2 changes: 1 addition & 1 deletion nixos/modules/services/misc/gogs.nix
Expand Up @@ -25,7 +25,7 @@ let
DOMAIN = ${cfg.domain}
HTTP_ADDR = ${cfg.httpAddress}
HTTP_PORT = ${toString cfg.httpPort}
ROOT_URL = ${cfg.rootUrl}
EXTERNAL_URL = ${cfg.rootUrl}
[session]
COOKIE_NAME = session
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/audio/musescore/default.nix
Expand Up @@ -48,13 +48,13 @@ let
} else portaudio;
in stdenv'.mkDerivation rec {
pname = "musescore";
version = "4.1.0";
version = "4.1.1";

src = fetchFromGitHub {
owner = "musescore";
repo = "MuseScore";
rev = "v${version}";
sha256 = "sha256-CqW1f0VsF2lW79L3FY2ev+6FoHLbYOJ9LWHeBlWegeU=";
sha256 = "sha256-jXievVIA0tqLdKLy6oPaOHPIbDoFstveEQBri9M0Aoo=";
};
patches = [
# Upstream from some reason wants to install qml files from qtbase in
Expand Down
6 changes: 3 additions & 3 deletions pkgs/applications/editors/tijolo/default.nix
Expand Up @@ -11,13 +11,13 @@
}:
crystal.buildCrystalPackage rec {
pname = "tijolo";
version = "0.7.3";
version = "0.7.4";

src = fetchFromGitHub {
owner = "hugopl";
repo = "tijolo";
rev = "v${version}";
hash = "sha256-15not/B+O+wIZ/fvLFy26/dyvq0E+bZUeoSZ6HxMMKg=";
hash = "sha256-3TfXvRVP3lu43qF3RWCHnZ3czTaSl5EzrhuTlpnMfKo=";
};

nativeBuildInputs = [ wrapGAppsHook ]
Expand All @@ -27,7 +27,7 @@ crystal.buildCrystalPackage rec {
buildTargets = [ "all" ];
doCheck = false;

shardsFile = ./tijolo-shards.nix;
shardsFile = ./shards.nix;

installTargets = [ "install" "install-fonts"];
doInstallCheck = false;
Expand Down
File renamed without changes.
4 changes: 3 additions & 1 deletion pkgs/applications/misc/joplin-desktop/default.nix
Expand Up @@ -11,13 +11,15 @@ let
suffix = {
x86_64-linux = "AppImage";
x86_64-darwin = "dmg";
aarch64-darwin = "dmg";
}.${system} or throwSystem;

src = fetchurl {
url = "https://github.com/laurent22/joplin/releases/download/v${version}/Joplin-${version}.${suffix}";
sha256 = {
x86_64-linux = "sha256-r64+y+LfMrJnUdabVdak5+LQB50YLOuMXftlZ4s3C/w=";
x86_64-darwin = "sha256-/dvaYHa7PT6FA63kmtjrErJZI9O+hIlKvHnf5RnfeZg=";
aarch64-darwin = "sha256-/dvaYHa7PT6FA63kmtjrErJZI9O+hIlKvHnf5RnfeZg=";
}.${system} or throwSystem;
};

Expand All @@ -37,7 +39,7 @@ let
homepage = "https://joplinapp.org";
license = licenses.agpl3Plus;
maintainers = with maintainers; [ hugoreeves qjoly ];
platforms = [ "x86_64-linux" "x86_64-darwin" ];
platforms = [ "x86_64-linux" "x86_64-darwin" "aarch64-darwin"];
};

linux = appimageTools.wrapType2 rec {
Expand Down
6 changes: 3 additions & 3 deletions pkgs/applications/misc/transifex-cli/default.nix
Expand Up @@ -5,16 +5,16 @@

buildGoModule rec {
pname = "transifex-cli";
version = "1.6.7";
version = "1.6.9";

src = fetchFromGitHub {
owner = "transifex";
repo = "cli";
rev = "v${version}";
sha256 = "sha256-5166P44HSRKQ0pCh1BCPd1ZUryh/IBDumcnLYA+CSBY=";
sha256 = "sha256-92FT0LLo5kw4uCTNVnY+TLegOG5Xs8WWUocU8yb/HJ4=";
};

vendorSha256 = "sha256-rcimaHr3fFeHSjZXw1w23cKISCT+9t8SgtPnY/uYGAU=";
vendorHash = "sha256-rcimaHr3fFeHSjZXw1w23cKISCT+9t8SgtPnY/uYGAU=";

ldflags = [
"-s" "-w" "-X 'github.com/transifex/cli/internal/txlib.Version=${version}'"
Expand Down
6 changes: 3 additions & 3 deletions pkgs/applications/misc/ttdl/default.nix
Expand Up @@ -5,16 +5,16 @@

rustPlatform.buildRustPackage rec {
pname = "ttdl";
version = "3.10.0";
version = "4.0.0";

src = fetchFromGitHub {
owner = "VladimirMarkelov";
repo = "ttdl";
rev = "v${version}";
sha256 = "sha256-46oqQaDYFxpSjqFdP2V0aBP1S6BDG+hSO/V76WwCzAQ=";
sha256 = "sha256-er2IDPVFbcuT0COBCpBymNVBKtETdWjzR2330WUBp6U=";
};

cargoHash = "sha256-Kol7pCHq91zOE9boRatv12pgh/rfra5snUe3HNho1DU=";
cargoHash = "sha256-WcqkvnXRgsDJM7p2WGa5lmeeuwNwBy2ZQATVkTHRX7Q=";

meta = with lib; {
description = "A CLI tool to manage todo lists in todo.txt format";
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/networking/browsers/lagrange/default.nix
Expand Up @@ -17,13 +17,13 @@

stdenv.mkDerivation (finalAttrs: {
pname = "lagrange";
version = "1.16.5";
version = "1.16.6";

src = fetchFromGitHub {
owner = "skyjake";
repo = "lagrange";
rev = "v${finalAttrs.version}";
hash = "sha256-OLKUw0qimt0WgcW26T4IWVK16nDGSmqHSuSJ8tHhbsE=";
hash = "sha256-avBZnQi1xuyrJX7YG+8O3+122Of11innCCr5sPYyySg=";
};

nativeBuildInputs = [ cmake pkg-config zip ];
Expand Down
6 changes: 3 additions & 3 deletions pkgs/applications/networking/cluster/helmfile/default.nix
Expand Up @@ -8,16 +8,16 @@

buildGoModule rec {
pname = "helmfile";
version = "0.155.0";
version = "0.155.1";

src = fetchFromGitHub {
owner = "helmfile";
repo = "helmfile";
rev = "v${version}";
sha256 = "sha256-9YOgpXiZegimS81owjHW/in0NbxMTL+DQEgSBWdW7Rs=";
sha256 = "sha256-6y+7Jrs/sIpxJjO9Zzv2ht1RprrqcBjwyOsCnqDHxUY=";
};

vendorHash = "sha256-ioZJr3v/8HhOEJJZpsCw5Gkbg9XvMMEOugyfRhevWBc=";
vendorHash = "sha256-MCx+6K3CqVfFEYgkxT1sFvy0vshpKwW07AUngEG2muk=";

doCheck = false;

Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/networking/cluster/pluto/default.nix
Expand Up @@ -2,13 +2,13 @@

buildGoModule rec {
pname = "pluto";
version = "5.18.1";
version = "5.18.2";

src = fetchFromGitHub {
owner = "FairwindsOps";
repo = "pluto";
rev = "v${version}";
sha256 = "sha256-E4DPJDBa/WX5JVsWgqdEv/O/XCvHDLyaL+nSMmw6Npg=";
sha256 = "sha256-PouKOIyKv7mxlBZJYCBppADdkf/XD28gavozCFFcO24=";
};

vendorHash = "sha256-okqDtxSKVLlmnm5JdCKSvRZkXTsghi/L5R9TX10WWjY=";
Expand Down
3 changes: 2 additions & 1 deletion pkgs/applications/video/davinci-resolve/default.nix
Expand Up @@ -74,6 +74,7 @@ let
"email" = "someone@nixos.org";
"phone" = "+31 71 452 5670";
"country" = "nl";
"street" = "Hogeweide 346";
"state" = "Province of Utrecht";
"city" = "Utrecht";
"product" = "DaVinci Resolve";
Expand All @@ -98,7 +99,7 @@ let
curl \
--retry 3 --retry-delay 3 \
--header "Host: sw.blackmagicdesign.com" \
--header "Host: sw.cloud.blackmagicdesign.com" \
--header "Upgrade-Insecure-Requests: 1" \
--header "$USERAGENT" \
--header "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8" \
Expand Down
3 changes: 2 additions & 1 deletion pkgs/data/fonts/scheherazade/default.nix
@@ -1,10 +1,11 @@
{ lib, stdenvNoCC, fetchzip, version ? "3.300" }:
{ lib, stdenvNoCC, fetchzip, version ? "4.000" }:

let
new = lib.versionAtLeast version "3.000";
hash = {
"2.100" = "sha256-d2UyOOOnmE1afCwyIrM1bL3lQC7XRwh03hzetk/4V30=";
"3.300" = "sha256-LaaA6DWAE2dcwVVX4go9cJaiuwI6efYbPk82ym3W3IY=";
"4.000" = "sha256-FhgHlHCfojIl3Y11EDYhNTmLYwQ60OrwnA9nbZbZGJE=";
}."${version}";
pname = "scheherazade${lib.optionalString new "-new"}";
in
Expand Down
6 changes: 3 additions & 3 deletions pkgs/development/compilers/gambit/bootstrap.nix
Expand Up @@ -6,11 +6,11 @@

gccStdenv.mkDerivation {
pname = "gambit-bootstrap";
version = "4.9.3";
version = "4.9.5";

src = fetchurl {
url = "http://www.iro.umontreal.ca/~gambit/download/gambit/v4.9/source/gambit-v4_9_3.tgz";
sha256 = "1p6172vhcrlpjgia6hsks1w4fl8rdyjf9xjh14wxfkv7dnx8a5hk";
url = "https://gambitscheme.org/4.9.5/gambit-v4_9_5.tgz";
sha256 = "sha256-4o74218OexFZcgwVAFPcq498TK4fDlyDiUR5cHP4wdw=";
};

buildInputs = [ autoconf ];
Expand Down
27 changes: 18 additions & 9 deletions pkgs/development/compilers/gambit/build.nix
@@ -1,5 +1,5 @@
{ gccStdenv, lib, git, openssl, autoconf, pkgs, makeStaticLibraries, gcc, coreutils, gnused, gnugrep,
src, version, git-version,
src, version, git-version, stampYmd ? 0, stampHms ? 0,
gambit-support, optimizationSetting ? "-O1", gambit-params ? pkgs.gambit-support.stable-params }:

# Note that according to a benchmark run by Marc Feeley on May 2018,
Expand All @@ -26,6 +26,7 @@ gccStdenv.mkDerivation rec {
bootstrap = gambit-support.gambit-bootstrap;

nativeBuildInputs = [ git autoconf ];

# TODO: if/when we can get all the library packages we depend on to have static versions,
# we could use something like (makeStaticLibraries openssl) to enable creation
# of statically linked binaries by gsc.
Expand All @@ -39,11 +40,14 @@ gccStdenv.mkDerivation rec {
"--enable-targets=${gambit-params.targets}"
"--enable-single-host"
"--enable-c-opt=${optimizationSetting}"
"--enable-c-opt-rts=-O2"
"--enable-gcc-opts"
"--enable-shared"
"--enable-absolute-shared-libs" # Yes, NixOS will want an absolute path, and fix it.
"--enable-openssl"
#"--enable-default-compile-options='(compactness 9)'" # Make life easier on the JS backend
"--enable-default-runtime-options=${gambit-params.defaultRuntimeOptions}"
# "--enable-rtlib-debug" # used by Geiser, but only on recent-enough gambit, and messes js runtime
# "--enable-debug" # Nope: enables plenty of good stuff, but also the costly console.log
# "--enable-multiple-versions" # Nope, NixOS already does version multiplexing
# "--enable-guide"
Expand All @@ -58,9 +62,9 @@ gccStdenv.mkDerivation rec {
# "--enable-coverage"
# "--enable-inline-jumps"
# "--enable-char-size=1" # default is 4
] ++
# due not enable poll on darwin due to https://github.com/gambit/gambit/issues/498
lib.optional (!gccStdenv.isDarwin) "--enable-poll";
] ++ gambit-params.extraOptions
# Do not enable poll on darwin due to https://github.com/gambit/gambit/issues/498
++ lib.optional (!gccStdenv.isDarwin) "--enable-poll";

configurePhase = ''
export CC=${gccStdenv.cc}/bin/${gccStdenv.cc.targetPrefix}gcc \
Expand All @@ -71,31 +75,35 @@ gccStdenv.mkDerivation rec {
XMKMF=${coreutils}/bin/false
unset CFLAGS LDFLAGS LIBS CPPFLAGS CXXFLAGS
${gambit-params.fix-stamp git-version}
${gambit-params.fixStamp git-version stampYmd stampHms}
./configure --prefix=$out/gambit ${builtins.concatStringsSep " " configureFlags}
# OS-specific paths are hardcoded in ./configure
substituteInPlace config.status \
--replace "/usr/local/opt/openssl@1.1" "${lib.getLib openssl}" \
--replace "/usr/local/opt/openssl" "${lib.getLib openssl}"
${lib.optionalString (gccStdenv.isDarwin && !gambit-params.stable)
''--replace "/usr/local/opt/openssl@1.1" "${lib.getLib openssl}"''} \
--replace "/usr/local/opt/openssl" "${lib.getLib openssl}"
./config.status
'';

buildPhase = ''
# Make bootstrap compiler, from release bootstrap
# The MAKEFLAGS setting is a workaround for https://github.com/gambit/gambit/issues/833
export MAKEFLAGS="--output-sync=recurse"
echo "Make bootstrap compiler, from release bootstrap"
mkdir -p boot
cp -rp ${bootstrap}/gambit/. boot/.
chmod -R u+w boot
cd boot
cp ../gsc/makefile.in ../gsc/*.scm gsc/
echo > include/stamp.h # No stamp needed for the bootstrap compiler
./configure
for i in lib gsi gsc ; do (cd $i ; make -j$NIX_BUILD_CORES) ; done
cd ..
cp boot/gsc/gsc gsc-boot
# Now use the bootstrap compiler to build the real thing!
echo "Now use the bootstrap compiler to build the real thing!"
make -j$NIX_BUILD_CORES from-scratch
${lib.optionalString gambit-params.modules "make -j$NIX_BUILD_CORES modules"}
'';
Expand All @@ -107,6 +115,7 @@ gccStdenv.mkDerivation rec {
'';

doCheck = true;
dontStrip = true;

meta = gambit-support.meta;
}
6 changes: 3 additions & 3 deletions pkgs/development/compilers/gambit/default.nix
@@ -1,10 +1,10 @@
{ callPackage, fetchurl }:

callPackage ./build.nix rec {
version = "4.9.3";
version = "4.9.5";
git-version = version;
src = fetchurl {
url = "http://www.iro.umontreal.ca/~gambit/download/gambit/v4.9/source/gambit-v4_9_3.tgz";
sha256 = "1p6172vhcrlpjgia6hsks1w4fl8rdyjf9xjh14wxfkv7dnx8a5hk";
url = "https://gambitscheme.org/4.9.5/gambit-v4_9_5.tgz";
sha256 = "sha256-4o74218OexFZcgwVAFPcq498TK4fDlyDiUR5cHP4wdw=";
};
}
37 changes: 19 additions & 18 deletions pkgs/development/compilers/gambit/gambit-support.nix
Expand Up @@ -3,37 +3,38 @@
rec {
stable-params = {
stable = true;
defaultRuntimeOptions = "f8,-8,t8";
buildRuntimeOptions = "f8,-8,t8";
fix-stamp = git-version : "";
targets = "java,js,php,python,ruby";
modules = false;
};

unstable-params = {
stable = false;
defaultRuntimeOptions = "iL,fL,-L,tL";
buildRuntimeOptions = "i8,f8,-8,t8";
fix-stamp = git-version : ''
targets = "js"; # arm,java,js,php,python,riscv-32,riscv-64,ruby,x86,x86-64
#fixStamp = _: _: _: "";
fixStamp = git-version: stampYmd: stampHms: ''
echo "Fixing timestamp recipe in Makefile"
substituteInPlace configure \
--replace "$(grep '^PACKAGE_VERSION=.*$' configure)" 'PACKAGE_VERSION="v${git-version}"' \
--replace "$(grep '^PACKAGE_STRING=.*$' configure)" 'PACKAGE_STRING="Gambit v${git-version}"' ;
substituteInPlace include/makefile.in \
--replace "echo > stamp.h;" "(echo '#define ___STAMP_VERSION \"${git-version}\"'; echo '#define ___STAMP_YMD ${toString stampYmd}'; echo '#define ___STAMP_HMS ${toString stampHms}';) > stamp.h;";
'';
targets = "arm,java,js,php,python,riscv-32,riscv-64,ruby,x86,x86-64"; # eats 100% cpu on _digest
modules = false;
modules = true;
extraOptions = [];
};

unstable-params = stable-params // {
stable = false;
extraOptions = ["--enable-trust-c-tco"];
};

export-gambopt = params : "export GAMBOPT=${params.buildRuntimeOptions} ;";

gambit-bootstrap = import ./bootstrap.nix ( pkgs );

meta = {
meta = with lib; {
description = "Optimizing Scheme to C compiler";
homepage = "http://gambitscheme.org";
license = lib.licenses.lgpl21; # dual, also asl20
# NB regarding platforms: continuously tested on Linux,
# tested on macOS once in a while, *should* work everywhere.
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ thoughtpolice raskin fare ];
license = licenses.lgpl21Only; # dual, also asl20
# NB regarding platforms: continuously tested on Linux x86_64 and regularly tested on macOS x86_64.
# *should* work everywhere.
platforms = platforms.unix;
maintainers = with maintainers; [ thoughtpolice raskin fare ];
};
}
12 changes: 7 additions & 5 deletions pkgs/development/compilers/gambit/unstable.nix
@@ -1,13 +1,15 @@
{ callPackage, fetchFromGitHub, gambit-support }:

callPackage ./build.nix {
version = "unstable-2020-09-20";
git-version = "4.9.3-1234-g6acd87df";
version = "unstable-2023-07-30";
git-version = "4.9.5-3-ge059fffd";
stampYmd = 20230730;
stampHms = 151945;
src = fetchFromGitHub {
owner = "feeley";
owner = "gambit";
repo = "gambit";
rev = "6acd87dfa95bfca33082a431e72f023345dc07ee";
sha256 = "0a3dy4ij8hzlp3sjam4b6dp6yvyz5d7g2x784qm3gp89fi2ck56r";
rev = "e059fffdfbd91e27c350ff2ebd671adefadd5212";
sha256 = "0q7hdfchl6lw53xawmmjvhyjdmqxjdsnzjqv9vpkl2qa4vyir5fs";
};
gambit-params = gambit-support.unstable-params;
}

0 comments on commit 8eb8f04

Please sign in to comment.