Merge master into staging-next
This commit is contained in:
commit
8ee0e6664b
38 changed files with 280 additions and 146 deletions
|
@ -4,12 +4,31 @@ Ant-based Java packages are typically built from source as follows:
|
||||||
|
|
||||||
```nix
|
```nix
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "...";
|
pname = "...";
|
||||||
|
version = "...";
|
||||||
|
|
||||||
src = fetchurl { ... };
|
src = fetchurl { ... };
|
||||||
|
|
||||||
nativeBuildInputs = [ jdk ant ];
|
nativeBuildInputs = [
|
||||||
|
ant
|
||||||
|
jdk
|
||||||
|
stripJavaArchivesHook # removes timestamp metadata from jar files
|
||||||
|
];
|
||||||
|
|
||||||
buildPhase = "ant";
|
buildPhase = ''
|
||||||
|
runHook preBuild
|
||||||
|
ant # build the project using ant
|
||||||
|
runHook postBuild
|
||||||
|
'';
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
|
# copy generated jar file(s) to an appropriate location in $out
|
||||||
|
install -Dm644 build/foo.jar $out/share/java/foo.jar
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -17,6 +36,10 @@ Note that `jdk` is an alias for the OpenJDK (self-built where available,
|
||||||
or pre-built via Zulu). Platforms with OpenJDK not (yet) in Nixpkgs
|
or pre-built via Zulu). Platforms with OpenJDK not (yet) in Nixpkgs
|
||||||
(`Aarch32`, `Aarch64`) point to the (unfree) `oraclejdk`.
|
(`Aarch32`, `Aarch64`) point to the (unfree) `oraclejdk`.
|
||||||
|
|
||||||
|
Also note that not using `stripJavaArchivesHook` will likely cause the
|
||||||
|
generated `.jar` files to be non-deterministic, which is not optimal.
|
||||||
|
Using it, however, does not always guarantee reproducibility.
|
||||||
|
|
||||||
JAR files that are intended to be used by other packages should be
|
JAR files that are intended to be used by other packages should be
|
||||||
installed in `$out/share/java`. JDKs have a stdenv setup hook that add
|
installed in `$out/share/java`. JDKs have a stdenv setup hook that add
|
||||||
any JARs in the `share/java` directories of the build inputs to the
|
any JARs in the `share/java` directories of the build inputs to the
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
, dpkg
|
, dpkg
|
||||||
, writeScript
|
, writeScript
|
||||||
, bash
|
, bash
|
||||||
, strip-nondeterminism
|
, stripJavaArchivesHook
|
||||||
, tor
|
, tor
|
||||||
, zip
|
, zip
|
||||||
, xz
|
, xz
|
||||||
|
@ -50,7 +50,7 @@ stdenv.mkDerivation rec {
|
||||||
dpkg
|
dpkg
|
||||||
imagemagick
|
imagemagick
|
||||||
makeWrapper
|
makeWrapper
|
||||||
strip-nondeterminism
|
stripJavaArchivesHook
|
||||||
xz
|
xz
|
||||||
zip
|
zip
|
||||||
findutils
|
findutils
|
||||||
|
@ -89,7 +89,6 @@ stdenv.mkDerivation rec {
|
||||||
tar --sort=name --mtime="@$SOURCE_DATE_EPOCH" -cJf native/linux/x64/tor.tar.xz tor
|
tar --sort=name --mtime="@$SOURCE_DATE_EPOCH" -cJf native/linux/x64/tor.tar.xz tor
|
||||||
tor_jar_file=$(find ./opt/bisq/lib/app -name "tor-binary-linux64-*.jar")
|
tor_jar_file=$(find ./opt/bisq/lib/app -name "tor-binary-linux64-*.jar")
|
||||||
zip -r $tor_jar_file native
|
zip -r $tor_jar_file native
|
||||||
strip-nondeterminism ./opt/bisq/lib/app/*.jar
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
, stdenv
|
, stdenv
|
||||||
, fetchzip
|
, fetchzip
|
||||||
, ant
|
, ant
|
||||||
, canonicalize-jars-hook
|
, stripJavaArchivesHook
|
||||||
, jdk
|
, jdk
|
||||||
, makeWrapper
|
, makeWrapper
|
||||||
}:
|
}:
|
||||||
|
@ -18,7 +18,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
ant
|
ant
|
||||||
canonicalize-jars-hook
|
stripJavaArchivesHook
|
||||||
jdk
|
jdk
|
||||||
makeWrapper
|
makeWrapper
|
||||||
];
|
];
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
, jre
|
, jre
|
||||||
, ant
|
, ant
|
||||||
, makeWrapper
|
, makeWrapper
|
||||||
|
, stripJavaArchivesHook
|
||||||
, doCheck ? true
|
, doCheck ? true
|
||||||
, withExamples ? false
|
, withExamples ? false
|
||||||
}:
|
}:
|
||||||
|
@ -30,10 +31,6 @@ stdenv.mkDerivation rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = with deps; ''
|
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
|
# Manually create version properties file for reproducibility
|
||||||
mkdir -p build/classes
|
mkdir -p build/classes
|
||||||
cat > build/classes/mkgmap-version.properties << EOF
|
cat > build/classes/mkgmap-version.properties << EOF
|
||||||
|
@ -61,7 +58,7 @@ stdenv.mkDerivation rec {
|
||||||
'') testInputs}
|
'') testInputs}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ jdk ant makeWrapper ];
|
nativeBuildInputs = [ jdk ant makeWrapper stripJavaArchivesHook ];
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
runHook preBuild
|
runHook preBuild
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
, jre
|
, jre
|
||||||
, ant
|
, ant
|
||||||
, makeWrapper
|
, makeWrapper
|
||||||
|
, stripJavaArchivesHook
|
||||||
, doCheck ? true
|
, doCheck ? true
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
|
@ -30,10 +31,6 @@ stdenv.mkDerivation rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = with deps; ''
|
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
|
# Manually create version properties file for reproducibility
|
||||||
mkdir -p build/classes
|
mkdir -p build/classes
|
||||||
cat > build/classes/splitter-version.properties << EOF
|
cat > build/classes/splitter-version.properties << EOF
|
||||||
|
@ -58,7 +55,7 @@ stdenv.mkDerivation rec {
|
||||||
'') testInputs}
|
'') testInputs}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ jdk ant makeWrapper ];
|
nativeBuildInputs = [ jdk ant makeWrapper stripJavaArchivesHook ];
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
runHook preBuild
|
runHook preBuild
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
, wrapGAppsHook
|
, wrapGAppsHook
|
||||||
, makeDesktopItem
|
, makeDesktopItem
|
||||||
, copyDesktopItems
|
, copyDesktopItems
|
||||||
, canonicalize-jars-hook
|
, stripJavaArchivesHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation (finalAttrs: {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
|
@ -27,7 +27,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
makeWrapper
|
makeWrapper
|
||||||
wrapGAppsHook
|
wrapGAppsHook
|
||||||
copyDesktopItems
|
copyDesktopItems
|
||||||
canonicalize-jars-hook
|
stripJavaArchivesHook
|
||||||
];
|
];
|
||||||
|
|
||||||
dontWrapGApps = true;
|
dontWrapGApps = true;
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
, jre
|
, jre
|
||||||
, makeWrapper
|
, makeWrapper
|
||||||
, copyDesktopItems
|
, copyDesktopItems
|
||||||
, canonicalize-jars-hook
|
, stripJavaArchivesHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation (finalAttrs: {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
|
@ -25,7 +25,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
jdk
|
jdk
|
||||||
makeWrapper
|
makeWrapper
|
||||||
copyDesktopItems
|
copyDesktopItems
|
||||||
canonicalize-jars-hook
|
stripJavaArchivesHook
|
||||||
];
|
];
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
, makeDesktopItem
|
, makeDesktopItem
|
||||||
, makeWrapper
|
, makeWrapper
|
||||||
, wrapGAppsHook
|
, wrapGAppsHook
|
||||||
|
, stripJavaArchivesHook
|
||||||
, ant
|
, ant
|
||||||
, jdk
|
, jdk
|
||||||
, jre
|
, jre
|
||||||
|
@ -46,13 +47,7 @@ stdenv.mkDerivation rec {
|
||||||
hash = "sha256-MSVSd5DyVL+dcfTDv1M99hxickPwT2Pt6QGNsu6DGZI=";
|
hash = "sha256-MSVSd5DyVL+dcfTDv1M99hxickPwT2Pt6QGNsu6DGZI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
nativeBuildInputs = [ ant jdk wrapGAppsHook makeWrapper stripJavaArchivesHook ];
|
||||||
# Fix jar timestamps for reproducibility
|
|
||||||
substituteInPlace build/build.xml \
|
|
||||||
--replace-fail '<jar ' '<jar modificationtime="0" '
|
|
||||||
'';
|
|
||||||
|
|
||||||
nativeBuildInputs = [ ant jdk wrapGAppsHook makeWrapper ];
|
|
||||||
buildInputs = lib.optionals stdenv.isLinux [ gtk2 glib libXtst ]
|
buildInputs = lib.optionals stdenv.isLinux [ gtk2 glib libXtst ]
|
||||||
++ lib.optional stdenv.isDarwin Cocoa;
|
++ lib.optional stdenv.isDarwin Cocoa;
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
, jdk
|
, jdk
|
||||||
, jre
|
, jre
|
||||||
, makeWrapper
|
, makeWrapper
|
||||||
, canonicalize-jars-hook
|
, stripJavaArchivesHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation (finalAttrs: {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
|
@ -29,7 +29,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
ant
|
ant
|
||||||
jdk
|
jdk
|
||||||
makeWrapper
|
makeWrapper
|
||||||
canonicalize-jars-hook
|
stripJavaArchivesHook
|
||||||
];
|
];
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
{ substituteAll, unzip, zip }:
|
|
||||||
|
|
||||||
substituteAll {
|
|
||||||
name = "canonicalize-jar";
|
|
||||||
src = ./canonicalize-jar.sh;
|
|
||||||
|
|
||||||
unzip = "${unzip}/bin/unzip";
|
|
||||||
zip = "${zip}/bin/zip";
|
|
||||||
}
|
|
|
@ -1,29 +0,0 @@
|
||||||
# Canonicalize the manifest & repack with deterministic timestamps.
|
|
||||||
canonicalizeJar() {
|
|
||||||
local input='' outer=''
|
|
||||||
input="$(realpath -sm -- "$1")"
|
|
||||||
outer="$(pwd)"
|
|
||||||
# -qq: even quieter
|
|
||||||
@unzip@ -qq "$input" -d "$input-tmp"
|
|
||||||
canonicalizeJarManifest "$input-tmp/META-INF/MANIFEST.MF"
|
|
||||||
# Sets all timestamps to Jan 1 1980, the earliest mtime zips support.
|
|
||||||
find -- "$input-tmp" -exec touch -t 198001010000.00 {} +
|
|
||||||
rm "$input"
|
|
||||||
pushd "$input-tmp" 2>/dev/null
|
|
||||||
# -q|--quiet, -r|--recurse-paths
|
|
||||||
# -o|--latest-time: canonicalizes overall archive mtime
|
|
||||||
# -X|--no-extra: don't store platform-specific extra file attribute fields
|
|
||||||
@zip@ -qroX "$outer/tmp-out.jar" . 2> /dev/null
|
|
||||||
popd 2>/dev/null
|
|
||||||
rm -rf "$input-tmp"
|
|
||||||
mv "$outer/tmp-out.jar" "$input"
|
|
||||||
}
|
|
||||||
|
|
||||||
# See also the Java specification's JAR requirements:
|
|
||||||
# https://docs.oracle.com/javase/8/docs/technotes/guides/jar/jar.html#Notes_on_Manifest_and_Signature_Files
|
|
||||||
canonicalizeJarManifest() {
|
|
||||||
local input=''
|
|
||||||
input="$(realpath -sm -- "$1")"
|
|
||||||
(head -n 1 "$input" && tail -n +2 "$input" | sort | grep -v '^\s*$') > "$input-tmp"
|
|
||||||
mv "$input-tmp" "$input"
|
|
||||||
}
|
|
|
@ -1,16 +0,0 @@
|
||||||
# This setup hook causes the fixup phase to repack all JAR files in a
|
|
||||||
# canonical & deterministic fashion, e.g. resetting mtimes (like with normal
|
|
||||||
# store files) and avoiding impure metadata.
|
|
||||||
|
|
||||||
fixupOutputHooks+=('if [ -z "$dontCanonicalizeJars" -a -e "$prefix" ]; then canonicalizeJarsIn "$prefix"; fi')
|
|
||||||
|
|
||||||
canonicalizeJarsIn() {
|
|
||||||
local dir="$1"
|
|
||||||
echo "canonicalizing jars in $dir"
|
|
||||||
dir="$(realpath -sm -- "$dir")"
|
|
||||||
while IFS= read -rd '' f; do
|
|
||||||
canonicalizeJar "$f"
|
|
||||||
done < <(find -- "$dir" -type f -name '*.jar' -print0)
|
|
||||||
}
|
|
||||||
|
|
||||||
source @canonicalize_jar@
|
|
16
pkgs/build-support/setup-hooks/strip-java-archives.sh
Normal file
16
pkgs/build-support/setup-hooks/strip-java-archives.sh
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
# This setup hook makes the fixup phase to repack all java archives in a
|
||||||
|
# deterministic fashion. The most important change being done is the resetting
|
||||||
|
# of the modification times of the archive entries
|
||||||
|
|
||||||
|
fixupOutputHooks+=('stripJavaArchivesIn $prefix')
|
||||||
|
|
||||||
|
stripJavaArchivesIn() {
|
||||||
|
local dir="$1"
|
||||||
|
echo "stripping java archives in $dir"
|
||||||
|
find $dir -type f -regextype posix-egrep -regex ".*\.(jar|war|hpi|apk)$" -print0 |
|
||||||
|
while IFS= read -rd '' f; do
|
||||||
|
echo "stripping java archive $f"
|
||||||
|
strip-nondeterminism --type jar "$f"
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
, jdk11
|
, jdk11
|
||||||
, git
|
, git
|
||||||
, xmlstarlet
|
, xmlstarlet
|
||||||
|
, stripJavaArchivesHook
|
||||||
, xcbuild
|
, xcbuild
|
||||||
, udev
|
, udev
|
||||||
, xorg
|
, xorg
|
||||||
|
@ -42,13 +43,6 @@ stdenv.mkDerivation {
|
||||||
substituteInPlace gluegen/src/java/com/jogamp/common/util/IOUtil.java \
|
substituteInPlace gluegen/src/java/com/jogamp/common/util/IOUtil.java \
|
||||||
--replace-fail '#!/bin/true' '#!${coreutils}/bin/true'
|
--replace-fail '#!/bin/true' '#!${coreutils}/bin/true'
|
||||||
''
|
''
|
||||||
# set timestamp of files in jar to a fixed point in time
|
|
||||||
+ ''
|
|
||||||
xmlstarlet ed --inplace \
|
|
||||||
--append //jar --type attr -n modificationtime --value 1980-01-01T00:00Z \
|
|
||||||
gluegen/make/{build.xml,gluegen-cpptasks-base.xml} \
|
|
||||||
jogl/make/{build.xml,build-nativewindow.xml,build-jogl.xml}
|
|
||||||
''
|
|
||||||
# prevent looking for native libraries in /usr/lib
|
# prevent looking for native libraries in /usr/lib
|
||||||
+ ''
|
+ ''
|
||||||
substituteInPlace jogl/make/build-*.xml \
|
substituteInPlace jogl/make/build-*.xml \
|
||||||
|
@ -72,6 +66,7 @@ stdenv.mkDerivation {
|
||||||
jdk11
|
jdk11
|
||||||
git
|
git
|
||||||
xmlstarlet
|
xmlstarlet
|
||||||
|
stripJavaArchivesHook
|
||||||
] ++ lib.optionals stdenv.isDarwin [
|
] ++ lib.optionals stdenv.isDarwin [
|
||||||
xcbuild
|
xcbuild
|
||||||
];
|
];
|
||||||
|
|
|
@ -5,14 +5,14 @@
|
||||||
|
|
||||||
python3.pkgs.buildPythonApplication rec {
|
python3.pkgs.buildPythonApplication rec {
|
||||||
pname = "pre2k";
|
pname = "pre2k";
|
||||||
version = "3.0-unstable-2024-03-14";
|
version = "3.0";
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "garrettfoster13";
|
owner = "garrettfoster13";
|
||||||
repo = "pre2k";
|
repo = "pre2k";
|
||||||
rev = "3baa7b73aedd45f52e417210081da3dd010c1b22";
|
rev = "refs/tags/${version}";
|
||||||
hash = "sha256-0lgH7Z9LuiZwODdFvKWcqS1TV02aVjzD9RgOhX0lU6s=";
|
hash = "sha256-z1ttuRos7x/zdWiYYozxWzRarFExd4W5rUYAEiUMugU=";
|
||||||
};
|
};
|
||||||
|
|
||||||
pythonRelaxDeps = [
|
pythonRelaxDeps = [
|
||||||
|
@ -42,6 +42,7 @@ python3.pkgs.buildPythonApplication rec {
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Tool to query for the existence of pre-windows 2000 computer objects";
|
description = "Tool to query for the existence of pre-windows 2000 computer objects";
|
||||||
homepage = "https://github.com/garrettfoster13/pre2k";
|
homepage = "https://github.com/garrettfoster13/pre2k";
|
||||||
|
changelog = "https://github.com/garrettfoster13/pre2k/releases/tag/${version}";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ fab ];
|
maintainers = with maintainers; [ fab ];
|
||||||
mainProgram = "pre2k";
|
mainProgram = "pre2k";
|
||||||
|
|
120
pkgs/by-name/uv/uv/Cargo.lock
generated
120
pkgs/by-name/uv/uv/Cargo.lock
generated
|
@ -885,6 +885,15 @@ version = "0.1.3"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "63dfa964fe2a66f3fde91fc70b267fe193d822c7e603e2a675a49a7f46ad3f49"
|
checksum = "63dfa964fe2a66f3fde91fc70b267fe193d822c7e603e2a675a49a7f46ad3f49"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "deranged"
|
||||||
|
version = "0.3.11"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "b42b6fa04a440b495c8b04d0e71b707c585f83cb9cb28cf8cd0d976c315e31b4"
|
||||||
|
dependencies = [
|
||||||
|
"powerfmt",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "derivative"
|
name = "derivative"
|
||||||
version = "2.2.0"
|
version = "2.2.0"
|
||||||
|
@ -1956,6 +1965,15 @@ dependencies = [
|
||||||
"vcpkg",
|
"vcpkg",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "line-wrap"
|
||||||
|
version = "0.1.1"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "f30344350a2a51da54c1d53be93fade8a237e545dbcc4bdbe635413f2117cab9"
|
||||||
|
dependencies = [
|
||||||
|
"safemem",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "linked-hash-map"
|
name = "linked-hash-map"
|
||||||
version = "0.5.6"
|
version = "0.5.6"
|
||||||
|
@ -2168,6 +2186,12 @@ dependencies = [
|
||||||
"windows-sys 0.48.0",
|
"windows-sys 0.48.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "num-conv"
|
||||||
|
version = "0.1.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "51d515d32fb182ee37cda2ccdcb92950d6a3c2893aa280e540671c2cd0f3b1d9"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "num-traits"
|
name = "num-traits"
|
||||||
version = "0.2.18"
|
version = "0.2.18"
|
||||||
|
@ -2256,6 +2280,16 @@ version = "0.2.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d"
|
checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "os_info"
|
||||||
|
version = "3.7.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "006e42d5b888366f1880eda20371fedde764ed2213dc8496f49622fa0c99cd5e"
|
||||||
|
dependencies = [
|
||||||
|
"log",
|
||||||
|
"winapi",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "overload"
|
name = "overload"
|
||||||
version = "0.1.1"
|
version = "0.1.1"
|
||||||
|
@ -2453,11 +2487,26 @@ dependencies = [
|
||||||
name = "platform-tags"
|
name = "platform-tags"
|
||||||
version = "0.0.1"
|
version = "0.0.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
|
"insta",
|
||||||
"rustc-hash",
|
"rustc-hash",
|
||||||
"serde",
|
"serde",
|
||||||
"thiserror",
|
"thiserror",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "plist"
|
||||||
|
version = "1.6.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "e5699cc8a63d1aa2b1ee8e12b9ad70ac790d65788cd36101fa37f87ea46c4cef"
|
||||||
|
dependencies = [
|
||||||
|
"base64 0.21.7",
|
||||||
|
"indexmap 2.2.5",
|
||||||
|
"line-wrap",
|
||||||
|
"quick-xml",
|
||||||
|
"serde",
|
||||||
|
"time",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "png"
|
name = "png"
|
||||||
version = "0.17.13"
|
version = "0.17.13"
|
||||||
|
@ -2486,6 +2535,12 @@ version = "1.6.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "7170ef9988bc169ba16dd36a7fa041e5c4cbeb6a35b76d4c03daded371eae7c0"
|
checksum = "7170ef9988bc169ba16dd36a7fa041e5c4cbeb6a35b76d4c03daded371eae7c0"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "powerfmt"
|
||||||
|
version = "0.2.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "ppv-lite86"
|
name = "ppv-lite86"
|
||||||
version = "0.2.17"
|
version = "0.2.17"
|
||||||
|
@ -2683,6 +2738,15 @@ dependencies = [
|
||||||
"toml",
|
"toml",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "quick-xml"
|
||||||
|
version = "0.31.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "1004a344b30a54e2ee58d66a71b32d2db2feb0a31f9a2d302bf0536f15de2a33"
|
||||||
|
dependencies = [
|
||||||
|
"memchr",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "quote"
|
name = "quote"
|
||||||
version = "1.0.35"
|
version = "1.0.35"
|
||||||
|
@ -3209,6 +3273,12 @@ version = "1.0.17"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "e86697c916019a8588c99b5fac3cead74ec0b4b819707a682fd4d23fa0ce1ba1"
|
checksum = "e86697c916019a8588c99b5fac3cead74ec0b4b819707a682fd4d23fa0ce1ba1"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "safemem"
|
||||||
|
version = "0.3.3"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "ef703b7cb59335eae2eb93ceb664c0eb7ea6bf567079d843e09420219668e072"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "same-file"
|
name = "same-file"
|
||||||
version = "1.0.6"
|
version = "1.0.6"
|
||||||
|
@ -3546,6 +3616,16 @@ version = "0.1.2"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "2047c6ded9c721764247e62cd3b03c09ffc529b2ba5b10ec482ae507a4a70160"
|
checksum = "2047c6ded9c721764247e62cd3b03c09ffc529b2ba5b10ec482ae507a4a70160"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "sys-info"
|
||||||
|
version = "0.9.1"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "0b3a0d0aba8bf96a0e1ddfdc352fc53b3df7f39318c71854910c3c4b024ae52c"
|
||||||
|
dependencies = [
|
||||||
|
"cc",
|
||||||
|
"libc",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "system-configuration"
|
name = "system-configuration"
|
||||||
version = "0.5.1"
|
version = "0.5.1"
|
||||||
|
@ -3725,6 +3805,37 @@ dependencies = [
|
||||||
"tikv-jemalloc-sys",
|
"tikv-jemalloc-sys",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "time"
|
||||||
|
version = "0.3.34"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "c8248b6521bb14bc45b4067159b9b6ad792e2d6d754d6c41fb50e29fefe38749"
|
||||||
|
dependencies = [
|
||||||
|
"deranged",
|
||||||
|
"itoa",
|
||||||
|
"num-conv",
|
||||||
|
"powerfmt",
|
||||||
|
"serde",
|
||||||
|
"time-core",
|
||||||
|
"time-macros",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "time-core"
|
||||||
|
version = "0.1.2"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "ef927ca75afb808a4d64dd374f00a2adf8d0fcff8e7b184af886c3c87ec4a3f3"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "time-macros"
|
||||||
|
version = "0.2.17"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "7ba3a3ef41e6672a2f0f001392bb5dcd3ff0a9992d618ca761a11c3121547774"
|
||||||
|
dependencies = [
|
||||||
|
"num-conv",
|
||||||
|
"time-core",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "tiny-skia"
|
name = "tiny-skia"
|
||||||
version = "0.8.4"
|
version = "0.8.4"
|
||||||
|
@ -4198,7 +4309,7 @@ checksum = "f00cc9702ca12d3c81455259621e676d0f7251cec66a21e98fe2e9a37db93b2a"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "uv"
|
name = "uv"
|
||||||
version = "0.1.21"
|
version = "0.1.22"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anstream",
|
"anstream",
|
||||||
"anyhow",
|
"anyhow",
|
||||||
|
@ -4301,6 +4412,7 @@ dependencies = [
|
||||||
"insta",
|
"insta",
|
||||||
"itertools 0.12.1",
|
"itertools 0.12.1",
|
||||||
"once_cell",
|
"once_cell",
|
||||||
|
"pep440_rs",
|
||||||
"pep508_rs",
|
"pep508_rs",
|
||||||
"pypi-types",
|
"pypi-types",
|
||||||
"pyproject-toml",
|
"pyproject-toml",
|
||||||
|
@ -4359,9 +4471,11 @@ dependencies = [
|
||||||
"hyper 0.14.28",
|
"hyper 0.14.28",
|
||||||
"insta",
|
"insta",
|
||||||
"install-wheel-rs",
|
"install-wheel-rs",
|
||||||
|
"os_info",
|
||||||
"pep440_rs",
|
"pep440_rs",
|
||||||
"pep508_rs",
|
"pep508_rs",
|
||||||
"platform-tags",
|
"platform-tags",
|
||||||
|
"plist",
|
||||||
"pypi-types",
|
"pypi-types",
|
||||||
"reqwest",
|
"reqwest",
|
||||||
"reqwest-middleware",
|
"reqwest-middleware",
|
||||||
|
@ -4374,6 +4488,7 @@ dependencies = [
|
||||||
"serde",
|
"serde",
|
||||||
"serde_json",
|
"serde_json",
|
||||||
"sha2",
|
"sha2",
|
||||||
|
"sys-info",
|
||||||
"task-local-extensions",
|
"task-local-extensions",
|
||||||
"tempfile",
|
"tempfile",
|
||||||
"thiserror",
|
"thiserror",
|
||||||
|
@ -4386,6 +4501,7 @@ dependencies = [
|
||||||
"uv-auth",
|
"uv-auth",
|
||||||
"uv-cache",
|
"uv-cache",
|
||||||
"uv-fs",
|
"uv-fs",
|
||||||
|
"uv-interpreter",
|
||||||
"uv-normalize",
|
"uv-normalize",
|
||||||
"uv-version",
|
"uv-version",
|
||||||
"uv-warnings",
|
"uv-warnings",
|
||||||
|
@ -4719,7 +4835,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "uv-version"
|
name = "uv-version"
|
||||||
version = "0.1.21"
|
version = "0.1.22"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "uv-virtualenv"
|
name = "uv-virtualenv"
|
||||||
|
|
|
@ -11,13 +11,13 @@
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "uv";
|
pname = "uv";
|
||||||
version = "0.1.21";
|
version = "0.1.22";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "astral-sh";
|
owner = "astral-sh";
|
||||||
repo = "uv";
|
repo = "uv";
|
||||||
rev = version;
|
rev = version;
|
||||||
hash = "sha256-xc1+33BCycl7BJqqcQKLR9Sgg8xTRcF8P7gRIyeRIZ4=";
|
hash = "sha256-AbixSkwyhj3eBMLvGlodpz7XE3ln0IokNMdu5SOZjOE=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoLock = {
|
cargoLock = {
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
, jdk
|
, jdk
|
||||||
, jre
|
, jre
|
||||||
, makeWrapper
|
, makeWrapper
|
||||||
, canonicalize-jars-hook
|
, stripJavaArchivesHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
@ -30,7 +30,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
jdk
|
jdk
|
||||||
fakeHostname
|
fakeHostname
|
||||||
makeWrapper
|
makeWrapper
|
||||||
canonicalize-jars-hook
|
stripJavaArchivesHook
|
||||||
];
|
];
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
, ant
|
, ant
|
||||||
, jdk8
|
, jdk8
|
||||||
, makeWrapper
|
, makeWrapper
|
||||||
, canonicalize-jars-hook
|
, stripJavaArchivesHook
|
||||||
, callPackage
|
, callPackage
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ in stdenv.mkDerivation (finalAttrs: {
|
||||||
ant
|
ant
|
||||||
jdk
|
jdk
|
||||||
makeWrapper
|
makeWrapper
|
||||||
canonicalize-jars-hook
|
stripJavaArchivesHook
|
||||||
];
|
];
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
, ant
|
, ant
|
||||||
, jdk8
|
, jdk8
|
||||||
, sharutils
|
, sharutils
|
||||||
|
, stripJavaArchivesHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation (finalAttrs: {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
|
@ -20,16 +21,11 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
ant
|
ant
|
||||||
jdk8
|
jdk8
|
||||||
sharutils
|
sharutils
|
||||||
|
stripJavaArchivesHook
|
||||||
];
|
];
|
||||||
|
|
||||||
sourceRoot = "${finalAttrs.src.name}/freetts-${finalAttrs.version}";
|
sourceRoot = "${finalAttrs.src.name}/freetts-${finalAttrs.version}";
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
# Fix jar timestamps for reproducibility
|
|
||||||
substituteInPlace build.xml demo.xml \
|
|
||||||
--replace-fail '<jar ' '<jar modificationtime="0" '
|
|
||||||
'';
|
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
runHook preBuild
|
runHook preBuild
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
, ant
|
, ant
|
||||||
, jdk
|
, jdk
|
||||||
, makeWrapper
|
, makeWrapper
|
||||||
, canonicalize-jars-hook
|
, stripJavaArchivesHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation (finalAttrs: {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
|
@ -24,7 +24,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
ant
|
ant
|
||||||
jdk
|
jdk
|
||||||
makeWrapper
|
makeWrapper
|
||||||
canonicalize-jars-hook
|
stripJavaArchivesHook
|
||||||
];
|
];
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, ant
|
, ant
|
||||||
, jdk
|
, jdk
|
||||||
, canonicalize-jars-hook
|
, stripJavaArchivesHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
|
@ -20,7 +20,7 @@ stdenv.mkDerivation {
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
ant
|
ant
|
||||||
jdk
|
jdk
|
||||||
canonicalize-jars-hook
|
stripJavaArchivesHook
|
||||||
];
|
];
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{ lib
|
{ lib
|
||||||
, stdenv
|
, stdenv
|
||||||
, canonicalize-jars-hook
|
, stripJavaArchivesHook
|
||||||
, fetchzip
|
, fetchzip
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, atk
|
, atk
|
||||||
|
@ -58,7 +58,7 @@ in stdenv.mkDerivation rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
canonicalize-jars-hook
|
stripJavaArchivesHook
|
||||||
pkg-config
|
pkg-config
|
||||||
];
|
];
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
|
|
53
pkgs/development/python-modules/aioraven/default.nix
Normal file
53
pkgs/development/python-modules/aioraven/default.nix
Normal file
|
@ -0,0 +1,53 @@
|
||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, setuptools
|
||||||
|
, pythonOlder
|
||||||
|
, iso4217
|
||||||
|
, pyserial
|
||||||
|
, pyserial-asyncio
|
||||||
|
, pytestCheckHook
|
||||||
|
, pytest-asyncio
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "aioraven";
|
||||||
|
version = "0.5.2";
|
||||||
|
pyproject = true;
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.9";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "cottsay";
|
||||||
|
repo = "aioraven";
|
||||||
|
rev = "refs/tags/${version}";
|
||||||
|
hash = "sha256-ysmIxWy+gufX5oUfQ7Zw5xv0t/yxihFB+eAdYAWAmXs=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
setuptools
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
iso4217
|
||||||
|
pyserial
|
||||||
|
pyserial-asyncio
|
||||||
|
];
|
||||||
|
|
||||||
|
nativeCheckInputs = [
|
||||||
|
pytest-asyncio
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"aioraven"
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Module for communication with RAVEn devices";
|
||||||
|
homepage = "https://github.com/cottsay/aioraven";
|
||||||
|
changelog = "https://github.com/cottsay/aioraven/blob/${version}/CHANGELOG.md";
|
||||||
|
license = licenses.asl20;
|
||||||
|
maintainers = with maintainers; [ fab ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -9,14 +9,14 @@
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "luddite";
|
pname = "luddite";
|
||||||
version = "1.0.3";
|
version = "1.0.4";
|
||||||
format = "setuptools";
|
format = "setuptools";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "jumptrading";
|
owner = "jumptrading";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "refs/tags/v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
hash = "sha256-JXIM7/5LO95oabM16GwAt3v3a8uldGpGXDWmVic8Ins=";
|
hash = "sha256-iJ3h1XRBzLd4cBKFPNOlIV5Z5XJ/miscfIdkpPIpbJ8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "tatsu";
|
pname = "tatsu";
|
||||||
version = "5.11.3";
|
version = "5.12.0";
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.10";
|
disabled = pythonOlder "3.10";
|
||||||
|
@ -19,7 +19,7 @@ buildPythonPackage rec {
|
||||||
owner = "neogeny";
|
owner = "neogeny";
|
||||||
repo = "TatSu";
|
repo = "TatSu";
|
||||||
rev = "refs/tags/v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
hash = "sha256-5tVvElM7pZF3rZJMMk0IIZBhiv+9J8KBLjfoVTPF198=";
|
hash = "sha256-55sTUqNwfWg5h9msByq2RuVx/z23ST7p7pA/ZsIeYr8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "yalexs";
|
pname = "yalexs";
|
||||||
version = "2.0.0";
|
version = "3.0.0";
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.9";
|
disabled = pythonOlder "3.9";
|
||||||
|
@ -27,7 +27,7 @@ buildPythonPackage rec {
|
||||||
owner = "bdraco";
|
owner = "bdraco";
|
||||||
repo = "yalexs";
|
repo = "yalexs";
|
||||||
rev = "refs/tags/v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
hash = "sha256-ozohIzw80YfyB0sxXQ9MY6VpF+EDDvXZYfkpuloE4AU=";
|
hash = "sha256-hY46hUUmbQUWmI+Oa9qIQ1rZdXT5daGo1Vd5JRKfDHE=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
, ant
|
, ant
|
||||||
, jdk
|
, jdk
|
||||||
, makeWrapper
|
, makeWrapper
|
||||||
, canonicalize-jars-hook
|
, stripJavaArchivesHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation (finalAttrs: {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
|
@ -22,7 +22,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
ant
|
ant
|
||||||
jdk
|
jdk
|
||||||
makeWrapper
|
makeWrapper
|
||||||
canonicalize-jars-hook
|
stripJavaArchivesHook
|
||||||
];
|
];
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
, jdk
|
, jdk
|
||||||
, jre
|
, jre
|
||||||
, makeWrapper
|
, makeWrapper
|
||||||
, canonicalize-jars-hook
|
, stripJavaArchivesHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation (finalAttrs: {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
|
@ -23,7 +23,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
ant
|
ant
|
||||||
jdk
|
jdk
|
||||||
makeWrapper
|
makeWrapper
|
||||||
canonicalize-jars-hook
|
stripJavaArchivesHook
|
||||||
];
|
];
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{ lib
|
{ lib
|
||||||
, stdenv
|
, stdenv
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, canonicalize-jars-hook
|
, stripJavaArchivesHook
|
||||||
, cmake
|
, cmake
|
||||||
, cmark
|
, cmark
|
||||||
, Cocoa
|
, Cocoa
|
||||||
|
@ -40,7 +40,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
hash = "sha256-4VsoxZzi/EfEsnDvvwzg2xhj7j5B+k3gvaSqwJFDweE=";
|
hash = "sha256-4VsoxZzi/EfEsnDvvwzg2xhj7j5B+k3gvaSqwJFDweE=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ extra-cmake-modules cmake jdk17 ninja canonicalize-jars-hook ];
|
nativeBuildInputs = [ extra-cmake-modules cmake jdk17 ninja stripJavaArchivesHook ];
|
||||||
buildInputs =
|
buildInputs =
|
||||||
[
|
[
|
||||||
qtbase
|
qtbase
|
||||||
|
|
|
@ -4026,12 +4026,13 @@
|
||||||
aiohttp-cors
|
aiohttp-cors
|
||||||
aiohttp-fast-url-dispatcher
|
aiohttp-fast-url-dispatcher
|
||||||
aiohttp-zlib-ng
|
aiohttp-zlib-ng
|
||||||
|
aioraven
|
||||||
fnv-hash-fast
|
fnv-hash-fast
|
||||||
psutil-home-assistant
|
psutil-home-assistant
|
||||||
pyserial
|
pyserial
|
||||||
pyudev
|
pyudev
|
||||||
sqlalchemy
|
sqlalchemy
|
||||||
]; # missing inputs: aioraven
|
];
|
||||||
"rainmachine" = ps: with ps; [
|
"rainmachine" = ps: with ps; [
|
||||||
regenmaschine
|
regenmaschine
|
||||||
];
|
];
|
||||||
|
@ -6396,6 +6397,7 @@
|
||||||
"radiotherm"
|
"radiotherm"
|
||||||
"rainbird"
|
"rainbird"
|
||||||
"rainforest_eagle"
|
"rainforest_eagle"
|
||||||
|
"rainforest_raven"
|
||||||
"rainmachine"
|
"rainmachine"
|
||||||
"random"
|
"random"
|
||||||
"rapt_ble"
|
"rapt_ble"
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
, makeWrapper
|
, makeWrapper
|
||||||
, makeDesktopItem
|
, makeDesktopItem
|
||||||
, copyDesktopItems
|
, copyDesktopItems
|
||||||
, canonicalize-jars-hook
|
, stripJavaArchivesHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation (finalAttrs: {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
|
@ -28,7 +28,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
jdk8
|
jdk8
|
||||||
makeWrapper
|
makeWrapper
|
||||||
copyDesktopItems
|
copyDesktopItems
|
||||||
canonicalize-jars-hook
|
stripJavaArchivesHook
|
||||||
];
|
];
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
, jdk8
|
, jdk8
|
||||||
, jre8
|
, jre8
|
||||||
, makeWrapper
|
, makeWrapper
|
||||||
, canonicalize-jars-hook
|
, stripJavaArchivesHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
@ -20,7 +20,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
ant
|
ant
|
||||||
jdk
|
jdk
|
||||||
makeWrapper
|
makeWrapper
|
||||||
canonicalize-jars-hook
|
stripJavaArchivesHook
|
||||||
];
|
];
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
|
|
|
@ -5,14 +5,14 @@
|
||||||
|
|
||||||
python3.pkgs.buildPythonApplication rec {
|
python3.pkgs.buildPythonApplication rec {
|
||||||
pname = "ospd-openvas";
|
pname = "ospd-openvas";
|
||||||
version = "22.6.2";
|
version = "22.7.0";
|
||||||
format = "pyproject";
|
pyproject = true;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "greenbone";
|
owner = "greenbone";
|
||||||
repo = "ospd-openvas";
|
repo = "ospd-openvas";
|
||||||
rev = "refs/tags/v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
hash = "sha256-SO2+PpxjyP+Yba0X81EgNCOAu7ntlG7zOeWA+7XdRIA=";
|
hash = "sha256-aBrJODymUMj0sflJW/+dMYZBRPYqtS1L2UBENDXb2Xw=";
|
||||||
};
|
};
|
||||||
|
|
||||||
pythonRelaxDeps = [
|
pythonRelaxDeps = [
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
, jdk
|
, jdk
|
||||||
, jre
|
, jre
|
||||||
, makeWrapper
|
, makeWrapper
|
||||||
|
, stripJavaArchivesHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation (finalAttrs: {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
|
@ -16,16 +17,11 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
hash = "sha256-b7Av17wu6Ar/npKOiwYqzlvBFSIuXTpqTacM1sxtBvc=";
|
hash = "sha256-b7Av17wu6Ar/npKOiwYqzlvBFSIuXTpqTacM1sxtBvc=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
# Fix jar timestamps for reproducibility
|
|
||||||
substituteInPlace fop/build.xml \
|
|
||||||
--replace-fail '<jar ' '<jar modificationtime="0" '
|
|
||||||
'';
|
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
ant
|
ant
|
||||||
jdk
|
jdk
|
||||||
makeWrapper
|
makeWrapper
|
||||||
|
stripJavaArchivesHook
|
||||||
];
|
];
|
||||||
|
|
||||||
# Note: not sure if this is needed anymore
|
# Note: not sure if this is needed anymore
|
||||||
|
|
|
@ -147,6 +147,7 @@ mapAliases ({
|
||||||
callPackage_i686 = pkgsi686Linux.callPackage;
|
callPackage_i686 = pkgsi686Linux.callPackage;
|
||||||
cadence = throw "cadence has been removed from nixpkgs, as it was archived upstream"; # Added 2023-10-28
|
cadence = throw "cadence has been removed from nixpkgs, as it was archived upstream"; # Added 2023-10-28
|
||||||
cask = emacs.pkgs.cask; # Added 2022-11-12
|
cask = emacs.pkgs.cask; # Added 2022-11-12
|
||||||
|
canonicalize-jars-hook = stripJavaArchivesHook; # Added 2024-03-17
|
||||||
cargo-embed = throw "cargo-embed is now part of the probe-rs package"; # Added 2023-07-03
|
cargo-embed = throw "cargo-embed is now part of the probe-rs package"; # Added 2023-07-03
|
||||||
cargo-espflash = espflash;
|
cargo-espflash = espflash;
|
||||||
cargo-flash = throw "cargo-flash is now part of the probe-rs package"; # Added 2023-07-03
|
cargo-flash = throw "cargo-flash is now part of the probe-rs package"; # Added 2023-07-03
|
||||||
|
|
|
@ -212,11 +212,10 @@ with pkgs;
|
||||||
inherit (darwin.apple_sdk.frameworks) Security;
|
inherit (darwin.apple_sdk.frameworks) Security;
|
||||||
};
|
};
|
||||||
|
|
||||||
canonicalize-jar = callPackage ../build-support/java/canonicalize-jar.nix { };
|
stripJavaArchivesHook = makeSetupHook {
|
||||||
canonicalize-jars-hook = makeSetupHook {
|
name = "strip-java-archives-hook";
|
||||||
name = "canonicalize-jars-hook";
|
propagatedBuildInputs = [ strip-nondeterminism ];
|
||||||
substitutions = { canonicalize_jar = canonicalize-jar; };
|
} ../build-support/setup-hooks/strip-java-archives.sh;
|
||||||
} ../build-support/setup-hooks/canonicalize-jars.sh;
|
|
||||||
|
|
||||||
ensureNewerSourcesHook = { year }: makeSetupHook {
|
ensureNewerSourcesHook = { year }: makeSetupHook {
|
||||||
name = "ensure-newer-sources-hook";
|
name = "ensure-newer-sources-hook";
|
||||||
|
|
|
@ -361,6 +361,8 @@ self: super: with self; {
|
||||||
|
|
||||||
aioquic = callPackage ../development/python-modules/aioquic { };
|
aioquic = callPackage ../development/python-modules/aioquic { };
|
||||||
|
|
||||||
|
aioraven = callPackage ../development/python-modules/aioraven { };
|
||||||
|
|
||||||
aiorecollect = callPackage ../development/python-modules/aiorecollect { };
|
aiorecollect = callPackage ../development/python-modules/aiorecollect { };
|
||||||
|
|
||||||
aioredis = callPackage ../development/python-modules/aioredis { };
|
aioredis = callPackage ../development/python-modules/aioredis { };
|
||||||
|
|
Loading…
Reference in a new issue