Skip to content

Commit

Permalink
automatic merge by nix-conf
Browse files Browse the repository at this point in the history
Merged branches:
- amc-my-patches
- ucspi-tcp-ipv6-support
- gnuplot-info
- nixos-rebuild-dont-reexec
- kicad-8.0.6
  • Loading branch information
nix-conf committed Nov 15, 2024
6 parents 5e4fbfb + 887f1df + 27f8c01 + a40a1dc + 454c080 + b45ee72 commit 6a3f128
Show file tree
Hide file tree
Showing 8 changed files with 164 additions and 33 deletions.
22 changes: 11 additions & 11 deletions pkgs/applications/science/electronics/kicad/versions.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,23 @@
{
"kicad" = {
kicadVersion = {
version = "8.0.5";
version = "8.0.6";
src = {
rev = "1413b8bfab256aa09ae3f23027b9ffe278161ca6";
sha256 = "1g0w3g1gq6p72gg0jikdrh5mczcv5y16jmqi79bkp6nfl8gbx4l5";
rev = "16c59e4e71dab2a0ed2f9e61f990b69657b4bfe2";
sha256 = "1vc9igk8id2c34shilg7lh361psvwiqxpsn2yq7cwnwgaq7v1swq";
};
};
libVersion = {
version = "8.0.5";
version = "8.0.6";
libSources = {
symbols.rev = "3bd95a02b135941ba00e5e4671e7c3ebc7672db4";
symbols.sha256 = "12v8g48fgbalp0xrlgn3vm3ld79ymmwccv5aib6jz2qycdjxmznf";
templates.rev = "4644b7570ba73dfe03a06a674c98d3fe2a7fe1e4";
symbols.rev = "5fab56fc44319fed1d159cd7fa48e4468b0a5dad";
symbols.sha256 = "1ahzx14bmjgpvifsl2xm8c76zagkj2spc9cpb8ms4jlda92lp078";
templates.rev = "2343281a4df1ffbd4e0c6fcb9856f81adbbc201e";
templates.sha256 = "03idwrk3vj9h2az8j8lqpbdbnfxdbkzh4db68kq3644yj3cnlcza";
footprints.rev = "4d2be8bf917b9c31f0510fa953532b88ef8b8be8";
footprints.sha256 = "0ixfiraahi09gvszzxsdz21mdr9wsxyby5qp3n57pzid42gs35a1";
packages3d.rev = "2f3ea516116cc553c9d488424fbb196f4e65ef29";
packages3d.sha256 = "03yicqv36zx0wrb0njpkk45l4ysvv3dlsjlpi4j8j75gla060mai";
footprints.rev = "2e76906e448f352228a8f6bc06f77ae959a57975";
footprints.sha256 = "1fv0liwbl2blwd2xy9whwinkczi98ah83rwi4v6bvm9d9318vbig";
packages3d.rev = "005244f418b0d014e2907ca42df5ab85a1e29466";
packages3d.sha256 = "1i6ypl7lw7hnifl943z3lwv4sy00mfwgqi001bj9qh547kf9rxd4";
};
};
};
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
From 20c120c57a65eb0ab9203cb347bb78b664b80974 Mon Sep 17 00:00:00 2001
From: Michal Sojka <[email protected]>
Date: Sun, 21 Jan 2018 23:13:00 +0100
Subject: [PATCH 1/2] AMC-TXT: New global option ShowGroupText

When this option is enabled (default), the text after group start/end
marks i.e., after "*(" or "*)", is shown in the printed tests. This is
the same behavior as before this commit.

By setting this option to 0, no group marks are generated. This is
useful if groups are used merely as containers for similar questions
and have numquestions=1 option. In this case, it makes little sense to
add group text before and after every question.
---
AMC-perl/AMC/Filter/plain.pm | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/AMC-perl/AMC/Filter/plain.pm b/AMC-perl/AMC/Filter/plain.pm
index 5970266d..e0f7d4be 100644
--- a/AMC-perl/AMC/Filter/plain.pm
+++ b/AMC-perl/AMC/Filter/plain.pm
@@ -63,6 +63,7 @@ sub new {
TitleWidth
Pages
RandomSeed
+ ShowGroupText
PreAssociation PreAssociationKey PreAssociationName
/
];
@@ -75,6 +76,7 @@ sub new {
CompleteMulti SeparateAnswerSheet AutoMarks
Arabic
ManualDuplex SingleSided
+ ShowGroupText
/
];

@@ -119,6 +121,7 @@ sub new {
namefieldlinespace => '.5em',
titlewidth => ".47\\linewidth",
randomseed => "1527384",
+ showgrouptext => 1,
lang => '',
code => 0,
'latex-preambule' => '',
@@ -487,7 +490,7 @@ sub read_file {
if (/^\s*\*([\(\)])(?:\[([^]]*)\])?\s*(.*)/) {
my $action = $1;
my $options = $2;
- my $text = $3;
+ my $text=$self->{'options'}->{'showgrouptext'} ? $3 : "";
debug "Group A=" . printable($action) . " O=" . printable($options);
my %oo = $self->read_options($options);
if ( $action eq '(' ) {
--
2.34.1

Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
From bed560fcf352343d75f8a4c719d2710c60420672 Mon Sep 17 00:00:00 2001
From: Michal Sojka <[email protected]>
Date: Fri, 25 Jan 2019 18:26:26 +0100
Subject: [PATCH 2/2] Test 8-page alignment

---
AMC-buildpdf.cc | 2 ++
AMC-perl/AMC/Annotate.pm | 11 +++++++++++
2 files changed, 13 insertions(+)

diff --git a/AMC-buildpdf.cc b/AMC-buildpdf.cc
index 73dea3ca..a4549e57 100644
--- a/AMC-buildpdf.cc
+++ b/AMC-buildpdf.cc
@@ -89,6 +89,8 @@ int main(int argc, char** argv )
processing_error = PDF.load_pdf(command + 9);
} else if(sscanf(command, "page pdf %ld", &i) == 1) {
processing_error = PDF.new_page_from_pdf(i);
+ } else if(strcmp(command, "page empty") == 0) {
+ processing_error = PDF.next_page();
} else if(strcmp(command, "matrix identity") == 0) {
PDF.identity_matrix();
} else if(sscanf(command, "matrix %lf %lf %lf %lf %lf %lf",
diff --git a/AMC-perl/AMC/Annotate.pm b/AMC-perl/AMC/Annotate.pm
index 6e15af59..cbb49f37 100644
--- a/AMC-perl/AMC/Annotate.pm
+++ b/AMC-perl/AMC/Annotate.pm
@@ -1036,6 +1036,14 @@ sub student_draw_page {
}
}

+sub draw_empty_page {
+ my ($self,$page)=@_;
+
+ debug "Drawing empty page #$page";
+
+ $self->command("page empty");
+}
+
# process a student copy

sub process_student {
@@ -1077,6 +1085,9 @@ sub process_student {
for my $page ( $self->student_pages($student) ) {
$self->student_draw_page( $student, $page );
}
+ for (my $i = $self->student_pages($student); $i % 8 != 0; $i++) {
+ $self->draw_empty_page($i+1);
+ }

$self->{data}->end_transaction('aOST');
}
--
2.34.1

5 changes: 5 additions & 0 deletions pkgs/by-name/au/auto-multiple-choice/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ stdenv.mkDerivation (finalAttrs: rec {
"GCC_PP=${stdenv.cc.targetPrefix}c++"
];

patches = [
./0001-AMC-TXT-New-global-option-ShowGroupText.patch
./0002-Test-8-page-alignment.patch
];

preFixup = ''
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';
Expand Down
22 changes: 19 additions & 3 deletions pkgs/by-name/uc/ucspi-tcp/package.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{ lib, stdenv, fetchurl }:

{ lib, stdenv, fetchurl
, ipv6Support ? true
}:
stdenv.mkDerivation rec {
pname = "ucspi-tcp";
version = "0.88";
Expand All @@ -15,7 +16,11 @@ stdenv.mkDerivation rec {
url = "http://ftp.de.debian.org/debian/pool/main/u/ucspi-tcp/ucspi-tcp_0.88-3.diff.gz";
sha256 = "0mzmhz8hjkrs0khmkzs5i0s1kgmgaqz07h493bd5jj5fm5njxln6";
})
./remove-setuid.patch
] ++ lib.optional ipv6Support [
(fetchurl {
url = "https://salsa.debian.org/debian/ucspi-tcp/-/raw/debian/1%250.88-7/debian/ipv6-support.patch";
sha256 = "sha256-sFOVWJBsnLNZhsOH+TFmYt7NyMwJfbtSg/qCKEAyaQI=";
})
];

# Apply Debian patches
Expand All @@ -24,6 +29,9 @@ stdenv.mkDerivation rec {
echo "Applying patch $fname"
patch < "$fname"
done
# Remove setuid
substituteInPlace hier.c --replace ',02755);' ',0755);'
'';

# The build system is weird; 'make install' doesn't install anything, instead
Expand All @@ -46,6 +54,14 @@ stdenv.mkDerivation rec {
# run the newly built installer
./install
'' + lib.optionalString ipv6Support ''
# Replicate Debian's man install logic (some man pages from
# ipv6-support.patch will be overwritten below by
# debian/ucspi-tcp-man/*.1).
rm -rf "$out/usr/man/man5" # don't include tcp-environ(5)
mv -v "$out"/man/man1/*.1 "$out/share/man/man1/"
'' + ''
# Install Debian man pages (upstream has none)
cp debian/ucspi-tcp-man/*.1 "$out/share/man/man1"
'';
Expand Down
15 changes: 0 additions & 15 deletions pkgs/by-name/uc/ucspi-tcp/remove-setuid.patch

This file was deleted.

9 changes: 6 additions & 3 deletions pkgs/os-specific/linux/nixos-rebuild/nixos-rebuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -480,9 +480,12 @@ if [[ -z $_NIXOS_REBUILD_REEXEC && -n $canRun && -z $fast ]]; then
SHOULD_REEXEC=1
fi
else
runCmd nix "${flakeFlags[@]}" build --out-link "${tmpDir}/nixos-rebuild" "$flake#$flakeAttr.config.system.build.nixos-rebuild" "${extraBuildFlags[@]}" "${lockFlags[@]}"
if p=$(readlink -e "${tmpDir}/nixos-rebuild"); then
SHOULD_REEXEC=1
targetSystem=$(runCmd nix eval --raw "$flake#$flakeAttr.pkgs.system")
if [[ $(nix show-config --json | jq -r '.system.value') == $targetSystem ]]; then
runCmd nix "${flakeFlags[@]}" build --out-link "${tmpDir}/nixos-rebuild" "$flake#$flakeAttr.config.system.build.nixos-rebuild" "${extraBuildFlags[@]}" "${lockFlags[@]}"
if p=$(readlink -e "${tmpDir}/nixos-rebuild"); then
SHOULD_REEXEC=1
fi
fi
fi

Expand Down
12 changes: 11 additions & 1 deletion pkgs/tools/graphics/gnuplot/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
, gnused ? null
, coreutils ? null
, withQt ? false, mkDerivation, qttools, qtbase, qtsvg
, enableInfo ? true, emacs
}:

assert libX11 != null -> (fontconfig != null && gnused != null && coreutils != null);
Expand All @@ -28,7 +29,12 @@ in
sha256 = "sha256-6FpmDBoqGAj/JPfmmYH/y6xmpFydz3EbZWELJupxN5o=";
};

nativeBuildInputs = [ makeWrapper pkg-config texinfo ] ++ lib.optional withQt qttools;
outputs = [ "out" ] ++ lib.optional enableInfo "info";

nativeBuildInputs =
[ makeWrapper pkg-config texinfo ]
++ lib.optional withQt qttools
++ lib.optional enableInfo emacs;

buildInputs =
[ cairo gd libcerf pango readline zlib ]
Expand Down Expand Up @@ -75,6 +81,10 @@ in

enableParallelBuilding = true;

installTargets =
[ "install" ]
++ lib.optional enableInfo "install-info";

meta = with lib; {
homepage = "http://www.gnuplot.info/";
description = "Portable command-line driven graphing utility for many platforms";
Expand Down

0 comments on commit 6a3f128

Please sign in to comment.