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] authored Mar 11, 2024
2 parents 5198400 + c17b850 commit e5f37c0
Show file tree
Hide file tree
Showing 105 changed files with 1,715 additions and 1,332 deletions.
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7427,6 +7427,12 @@
githubId = 21156405;
name = "GuangTao Zhang";
};
Guanran928 = {
email = "guanran928@outlook.com";
github = "Guanran928";
githubId = 68757440;
name = "Guanran928";
};
guekka = {
github = "Guekka";
githubId = 39066502;
Expand Down
7 changes: 4 additions & 3 deletions nixos/modules/programs/clash-verge.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
{
options.programs.clash-verge = {
enable = lib.mkEnableOption (lib.mdDoc "Clash Verge");
package = lib.mkPackageOption pkgs "clash-verge" {};
autoStart = lib.mkEnableOption (lib.mdDoc "Clash Verge auto launch");
tunMode = lib.mkEnableOption (lib.mdDoc "Clash Verge TUN mode");
};
Expand All @@ -14,18 +15,18 @@
lib.mkIf cfg.enable {

environment.systemPackages = [
pkgs.clash-verge
cfg.package
(lib.mkIf cfg.autoStart (pkgs.makeAutostartItem {
name = "clash-verge";
package = pkgs.clash-verge;
package = cfg.package;
}))
];

security.wrappers.clash-verge = lib.mkIf cfg.tunMode {
owner = "root";
group = "root";
capabilities = "cap_net_bind_service,cap_net_admin=+ep";
source = "${lib.getExe pkgs.clash-verge}";
source = "${lib.getExe cfg.package}";
};
};

Expand Down
2 changes: 1 addition & 1 deletion nixos/modules/services/security/yubikey-agent.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ in

# This overrides the systemd user unit shipped with the
# yubikey-agent package
systemd.user.services.yubikey-agent = mkIf (pinentryFlavor != null) {
systemd.user.services.yubikey-agent = mkIf (config.programs.gnupg.agent.pinentryPackage != null) {
path = [ config.programs.gnupg.agent.pinentryPackage ];
wantedBy = [ "default.target" ];
};
Expand Down
27 changes: 10 additions & 17 deletions pkgs/applications/audio/youtube-music/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{ lib
, fetchFromGitHub
, buildNpmPackage
, makeWrapper
, electron
, python3
Expand All @@ -14,21 +13,17 @@
, makeDesktopItem
}:

let
stdenv.mkDerivation (finalAttrs: {
pname = "youtube-music";
version = "3.1.0";
version = "3.3.1";

src = fetchFromGitHub {
owner = "th-ch";
repo = pname;
rev = "v${version}";
hash = "sha256-6ZiftpdCwxCkJzcHryVrUKzM+mM1eQpdLNFl0Dja59Q=";
repo = "youtube-music";
rev = "v${finalAttrs.version}";
hash = "sha256-N6TzDTKvMyasksE0qcEGKeNjGAD08OzxpmpoQ11/ZW4=";
};

in
stdenv.mkDerivation (finalAttrs: {
inherit pname version src;

pnpmDeps = stdenvNoCC.mkDerivation {
pname = "${finalAttrs.pname}-pnpm-deps";
inherit (finalAttrs) src version ELECTRON_SKIP_BINARY_DOWNLOAD;
Expand All @@ -51,17 +46,15 @@ stdenv.mkDerivation (finalAttrs: {
dontBuild = true;
dontFixup = true;
outputHashMode = "recursive";
outputHashAlgo = "sha256";
outputHash = {
x86_64-linux = "sha256-Oy11V7FXfVhLUR9gX0sjQEFuVPFpbaVdT518oOSLcvA=";
aarch64-linux = "sha256-6nXemaGiQjp2stjjKItPJ62VcH5Q5pRf63qKtl2haXI=";
x86_64-darwin = "sha256-jSMAw+AMD63vqPckZjblw4EDngA4E8h0WlsZu3hUShY=";
aarch64-darwin = "sha256-zujXURpIcw7IOw63AW167h6cywYXydhHZMzA2apGZAs=";
x86_64-linux = "sha256-V6CSawxBWFbXmAPbck0xCXqRlANpqFAoqSAB4Duf8qM=";
aarch64-linux = "sha256-cqBn35soV14CmobKt0napRELio4HKKA8Iw3QSWTxzP8=";
x86_64-darwin = "sha256-DY9T1N8Hxr57/XisYT+u2+hQvYMIiyQ3UHeTuA6BhSY=";
aarch64-darwin = "sha256-3Zk0SyhVKaz5QdO69/xzWFZj9ueJS6GLWhfW7odWvHc=";
}.${stdenv.system} or (throw "Unsupported system: ${stdenv.system}");
};

nativeBuildInputs =
[ makeWrapper python3 nodePackages.pnpm nodePackages.nodejs ]
nativeBuildInputs = [ makeWrapper python3 nodePackages.pnpm nodePackages.nodejs ]
++ lib.optionals (!stdenv.isDarwin) [ copyDesktopItems ];


Expand Down
12 changes: 6 additions & 6 deletions pkgs/applications/editors/vscode/vscodium.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ let
archive_fmt = if stdenv.isDarwin then "zip" else "tar.gz";

sha256 = {
x86_64-linux = "0pz2dn245jzjw2n79mm9angvdlwlwxb4lwdq8za1i99g2m4il1bz";
x86_64-darwin = "0d0ivs672zh7w60pxy95awq7c8gxhs7d8wv5cf25289gnzcd6qff";
aarch64-linux = "1srir5gr0bdvnxyqrfq00p34ligg0pppr22g9zrdm8jasvrz6fb0";
aarch64-darwin = "046kcsanz5msf5xd94b1lxcwclsp3dcwxgzrcxycbsykxslz9gpq";
armv7l-linux = "0h576q3jbdy48bvg4h9swd2w7cynxmnm2klj6p719myigx7h2jzg";
x86_64-linux = "02rkp86rj7irs5011g6180yihllwfx47afk5vybxab4v23vigidr";
x86_64-darwin = "1hpj6kkyby9chr27w2382az7h2bg3x1x7c9j6i5bh8vl81s9yfd4";
aarch64-linux = "04fhmfplvyqg2l5xlqldl6kfy1m3y19sf2nikigmsm550b8m6sgc";
aarch64-darwin = "1yhyybd27ympg12mp4w46z64g2mi1hbv4d6hfl34l7fq4c5jkjf2";
armv7l-linux = "0jpjsfal67la123hqp9607bih3vnjdpbnrghyy1vywy15z71pff5";
}.${system} or throwSystem;

sourceRoot = lib.optionalString (!stdenv.isDarwin) ".";
Expand All @@ -29,7 +29,7 @@ in

# Please backport all compatible updates to the stable release.
# This is important for the extension ecosystem.
version = "1.86.2.24057";
version = "1.87.1.24068";
pname = "vscodium";

executableName = "codium";
Expand Down
6 changes: 3 additions & 3 deletions pkgs/applications/emulators/ripes/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
stdenv.mkDerivation rec {
pname = "ripes";
# Pulling unstable version as latest stable does not build against gcc-13.
version = "2.2.6-unstable-2024-01-02";
version = "2.2.6-unstable-2024-03-03";

src = fetchFromGitHub {
owner = "mortbopet";
repo = "Ripes";
rev = "0faf41b669a93a1944707cd7d111a5e9241425fe";
rev = "b71f0ddd5d2d346cb97b28fd3f70fef55bb9b6b7";
fetchSubmodules = true;
hash = "sha256-3+jibS1mGYBy9jmucytc7GvB1ZKRfh7aXtDty77hA3k=";
hash = "sha256-zQrrWBHNIacRoAEIjR0dlgUTncBCiodcBeT/wbDClWg=";
};

nativeBuildInputs = [
Expand Down
19 changes: 1 addition & 18 deletions pkgs/applications/misc/mkgmap/build.xml.patch
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
--- a/build.xml (revision 4555)
+++ a/build.xml (working copy)
@@ -222,13 +222,13 @@
<property name="svn.version.build" value="none"/>

<propertyfile file="${build.classes}/mkgmap-version.properties">
- <entry key="svn.version" value="${svn.version.build}" />
- <entry key="build.timestamp" value="${build.timestamp}" />
+ <entry key="svn.version" value="@version@" />
+ <entry key="build.timestamp" value="unknown" />
</propertyfile>
@@ -228,7 +228,7 @@
</target>

<!-- Compile the product itself (no tests). -->
Expand All @@ -35,12 +27,3 @@
<mkdir dir="tmp/report"/>
<junit printsummary="yes" failureproperty="junit.failure" forkmode="once">

@@ -351,7 +351,7 @@
ignoreerrors="true"/>
</target>

- <target name="dist" depends="build, check-version, version-file"
+ <target name="dist" depends="build, version-file"
description="Make the distribution area">

<mkdir dir="${dist}"/>
61 changes: 43 additions & 18 deletions pkgs/applications/misc/mkgmap/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{ lib, stdenv
{ lib
, stdenv
, fetchurl
, fetchsvn
, substituteAll
, jdk
, jre
, ant
Expand All @@ -24,14 +24,24 @@ stdenv.mkDerivation rec {
};

patches = [
(substituteAll {
# Disable automatic download of dependencies
src = ./build.xml.patch;
inherit version;
})
# Disable automatic download of dependencies
./build.xml.patch
./ignore-impure-test.patch
];

postPatch = with deps; ''
# Fix the output jar timestamps for reproducibility
substituteInPlace build.xml \
--replace-fail '<jar ' '<jar modificationtime="0" '
# Manually create version properties file for reproducibility
mkdir -p build/classes
cat > build/classes/mkgmap-version.properties << EOF
svn.version=${version}
build.timestamp=unknown
EOF
# Put pre-fetched dependencies into the right place
mkdir -p lib/compile
cp ${fastutil} lib/compile/${fastutil.name}
cp ${osmpbf} lib/compile/${osmpbf.name}
Expand All @@ -53,36 +63,51 @@ stdenv.mkDerivation rec {

nativeBuildInputs = [ jdk ant makeWrapper ];

buildPhase = "ant";
buildPhase = ''
runHook preBuild
ant
runHook postBuild
'';

inherit doCheck;

checkPhase = "ant test";
checkPhase = ''
runHook preCheck
ant test
runHook postCheck
'';

installPhase = ''
runHook preInstall
install -Dm644 dist/mkgmap.jar -t $out/share/java/mkgmap
install -Dm644 dist/doc/mkgmap.1 -t $out/share/man/man1
cp -r dist/lib/ $out/share/java/mkgmap/
makeWrapper ${jre}/bin/java $out/bin/mkgmap \
--add-flags "-jar $out/share/java/mkgmap/mkgmap.jar"
'' + lib.optionalString withExamples ''
mkdir -p $out/share/mkgmap
cp -r dist/examples $out/share/mkgmap/
${lib.optionalString withExamples ''
mkdir -p $out/share/mkgmap
cp -r dist/examples $out/share/mkgmap/
''}
runHook postInstall
'';

passthru.updateScript = [ ./update.sh "mkgmap" meta.downloadPage ];

meta = with lib; {
description = "Create maps for Garmin GPS devices from OpenStreetMap (OSM) data";
homepage = "https://www.mkgmap.org.uk/";
downloadPage = "https://www.mkgmap.org.uk/download/mkgmap.html";
sourceProvenance = with sourceTypes; [
fromSource
binaryBytecode # deps
];
homepage = "https://www.mkgmap.org.uk/";
license = licenses.gpl2Only;
mainProgram = "mkgmap";
maintainers = with maintainers; [ sikmir ];
platforms = platforms.all;
mainProgram = "mkgmap";
sourceProvenance = with sourceTypes; [
fromSource
binaryBytecode # deps
];
};

}
20 changes: 20 additions & 0 deletions pkgs/applications/misc/mkgmap/ignore-impure-test.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
diff --git a/test/uk/me/parabola/imgfmt/app/srt/SrtCollatorTest.java b/test/uk/me/parabola/imgfmt/app/srt/SrtCollatorTest.java
index e1e4ac7..954b918 100644
--- a/test/uk/me/parabola/imgfmt/app/srt/SrtCollatorTest.java
+++ b/test/uk/me/parabola/imgfmt/app/srt/SrtCollatorTest.java
@@ -17,6 +17,7 @@ import java.text.Collator;
import uk.me.parabola.mkgmap.srt.SrtTextReader;

import org.junit.Before;
+import org.junit.Ignore;
import org.junit.Test;

import static org.junit.Assert.*;
@@ -111,6 +112,7 @@ public class SrtCollatorTest {
* meant to be identical to the java one.
*/
@Test
+ @Ignore
public void testJavaRules() {
Collator collator = Collator.getInstance();

18 changes: 1 addition & 17 deletions pkgs/applications/misc/mkgmap/splitter/build.xml.patch
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
--- a/build.xml (revision 597)
+++ a/build.xml (working copy)
@@ -207,12 +207,12 @@
<property name="svn.version.build" value="unknown"/>

<propertyfile file="${build.classes}/splitter-version.properties">
- <entry key="svn.version" value="${svn.version.build}" />
- <entry key="build.timestamp" value="${build.timestamp}" />
+ <entry key="svn.version" value="@version@" />
+ <entry key="build.timestamp" value="unknown" />
@@ -212,7 +212,7 @@
</propertyfile>
</target>

Expand All @@ -25,15 +18,6 @@
<javac srcdir="${test}" destdir="${build.test-classes}" debug="yes" includeantruntime="false">
<include name="**/*.java"/>
<classpath refid="test.classpath"/>
@@ -261,7 +261,7 @@
<fail if="junit.failure" message="Test failed. See test-reports/index.html"/>
</target>

- <target name="dist" depends="build, check-version, version-file" description="Make the distribution area">
+ <target name="dist" depends="build, version-file" description="Make the distribution area">

<mkdir dir="${dist}"/>
<mkdir dir="${dist}/doc/api"/>
@@ -324,7 +324,7 @@
</target>

Expand Down
Loading

0 comments on commit e5f37c0

Please sign in to comment.