Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2bbfa82c2f8e
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: c1661fa7e1a0
Choose a head ref
  • 6 commits
  • 6 files changed
  • 1 contributor

Commits on Nov 12, 2020

  1. klayout: 0.26.6 -> 0.26.8

    Signed-off-by: Austin Seipp <aseipp@pobox.com>
    thoughtpolice committed Nov 12, 2020

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    Ma27 Maximilian Bosch
    Copy the full SHA
    9a7e498 View commit details
  2. iverilog: unstable-2020-08-24 -> unstable-2020-10-24

    Signed-off-by: Austin Seipp <aseipp@pobox.com>
    thoughtpolice committed Nov 12, 2020
    2
    Copy the full SHA
    58a906a View commit details
  3. yosys: 2020.10.20 -> 0.9+3675 (new version scheme)

    Yosys now has their own official scheme for tagging unstable builds;
    an automation robot appears from the darkness once every few hours,
    bumps the version number, and disappears as silently as they came.
    
    While Nix packages use a date-based version format for unstable
    packages, many (most!) users of Yosys use an unstable version.  And so
    synchronizing the version of the Nix package with the repository version
    is significantly less confusing to users. This also adds a safeguard to
    ensure others don't forget to bump the version number correctly in the
    future.
    
    The testsuite also saw an overhaul (now parallel to help build time), so
    some tweaks were needed to get it working again.
    
    Signed-off-by: Austin Seipp <aseipp@pobox.com>
    thoughtpolice committed Nov 12, 2020
    Copy the full SHA
    e80eeae View commit details
  4. trellis: 2020.07.27 -> 2020.11.07

    Signed-off-by: Austin Seipp <aseipp@pobox.com>
    thoughtpolice committed Nov 12, 2020
    Copy the full SHA
    bf094b1 View commit details
  5. nextpnr: 2020.08.22 -> 2020.11.10

    Signed-off-by: Austin Seipp <aseipp@pobox.com>
    thoughtpolice committed Nov 12, 2020
    Copy the full SHA
    a22061a View commit details
  6. magic-vlsi: 8.3.5 -> 8.3.80, co-maintain

    Signed-off-by: Austin Seipp <aseipp@pobox.com>
    thoughtpolice committed Nov 12, 2020
    Copy the full SHA
    c1661fa View commit details
4 changes: 2 additions & 2 deletions pkgs/applications/misc/klayout/default.nix
Original file line number Diff line number Diff line change
@@ -5,13 +5,13 @@

mkDerivation rec {
pname = "klayout";
version = "0.26.6";
version = "0.26.8";

src = fetchFromGitHub {
owner = "KLayout";
repo = "klayout";
rev = "v${version}";
sha256 = "0z17pdjdc2r2m5yi5bfz504dzzs978z8p6bhlf08v2npvigp8vz1";
sha256 = "0pkhvxcfk70dnmgczyyq585mxrfwqai44ikshs4c1imh92z25llq";
};

postPatch = ''
22 changes: 14 additions & 8 deletions pkgs/applications/science/electronics/magic-vlsi/default.nix
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
{ stdenv, fetchurl, m4, tcsh, libX11, tcl, tk, cairo, ncurses, mesa_glu, python3 }:
{ stdenv, fetchurl
, m4, tcsh, libX11, tcl, tk
, cairo, ncurses, mesa_glu, python3
}:

stdenv.mkDerivation {
stdenv.mkDerivation rec {
pname = "magic-vlsi";
version = "8.3.5";
version = "8.3.80";

src = fetchurl {
url = "http://opencircuitdesign.com/magic/archive/magic-8.3.5.tgz";
sha256 = "0wv4zmxlqjfaakgp802icn0cd9f8ylkz2sppix83axq8p5cg90yq";
url = "http://opencircuitdesign.com/magic/archive/magic-${version}.tgz";
sha256 = "0a5x4sh5xsr79pqbgv6221jc4fvaxkg2pvrdhy1cs4bmsc1sbm9j";
};

buildInputs = [ m4 tcsh libX11 tcl tk cairo ncurses mesa_glu ];
nativeBuildInputs = [ python3 ];
enableParallelBuilding = true;

configureFlags = [
"--with-tcl=${tcl}"
@@ -22,15 +26,17 @@ stdenv.mkDerivation {
patchShebangs scripts/*
'';

NIX_CFLAGS_COMPILE = "-Wno-implicit-function-declaration";

patches = [
./0001-strip-bin-prefix.patch
./0002-fix-format-security.patch
];

meta = with stdenv.lib; {
description = "VLSI layout tool written in Tcl";
homepage = "http://opencircuitdesign.com/magic/";
license = licenses.mit;
maintainers = [ maintainers.anna328p ];
homepage = "http://opencircuitdesign.com/magic/";
license = licenses.mit;
maintainers = with maintainers; [ anna328p thoughtpolice ];
};
}
47 changes: 21 additions & 26 deletions pkgs/applications/science/electronics/verilog/default.nix
Original file line number Diff line number Diff line change
@@ -6,40 +6,35 @@

let
iverilog-test = fetchFromGitHub {
owner = "steveicarus";
repo = "ivtest";
rev = "6882cb8ec08926c4e356c6092f0c5f8c23328d5c";
sha256 = "04sj5nqzwls1y760kgnd9c2whkcrr8kvj9lisd5rvk0w580kjb2x";
owner = "steveicarus";
repo = "ivtest";
rev = "d4c80beb845cad92136c05074b3910b822a9315f";
sha256 = "13cpnkki3xmhsh2v4bp2s35mhwknapcikdh85g4q6925ka940r45";
};
in
stdenv.mkDerivation rec {
pname = "iverilog";
version = "unstable-2020-08-24";
pname = "iverilog";
version = "unstable-2020-10-24";

src = fetchFromGitHub {
owner = "steveicarus";
repo = pname;
rev = "d8556e4c86e1465b68bdc8d5ba2056ba95a42dfd";
sha256 = "sha256-sT9j/0Q2FD5MOGpH/quMGvAuM7t7QavRHKD9lX7Elfs=";
owner = "steveicarus";
repo = pname;
rev = "d6e01d0c557253414109a4dde46b2966a5a3fb08";
sha256 = "1bl75mbycj9zpjbpay8z12384yk9ih5q9agsrjh9pva0vv3h4y4y";
};

enableParallelBuilding = true;

preConfigure = ''
chmod +x $PWD/autoconf.sh
$PWD/autoconf.sh
'';

nativeBuildInputs = [ autoconf gperf flex bison ];

buildInputs = [ readline ncurses bzip2 zlib ];

# tests from .travis.yml
doCheck = true; # runs ``make check``
# most tests pass, but some that rely on exact text of floating-point numbers fail on aarch64.
preConfigure = "bash $PWD/autoconf.sh";

enableParallelBuilding = true;
doCheck = true;

# most tests pass, but some that rely on exact text of floating-point numbers
# fail on aarch64.
doInstallCheck = !stdenv.isAarch64;
installCheckInputs = [ perl ];

installCheckPhase = ''
# copy tests to allow writing results
export TESTDIR=$(mktemp -d)
@@ -58,9 +53,9 @@ stdenv.mkDerivation rec {

meta = with stdenv.lib; {
description = "Icarus Verilog compiler";
homepage = "http://iverilog.icarus.com/";
license = with licenses; [ gpl2Plus lgpl21Plus] ;
maintainers = with maintainers; [ winden ];
platforms = platforms.all;
homepage = "http://iverilog.icarus.com/";
license = with licenses; [ gpl2Plus lgpl21Plus ];
maintainers = with maintainers; [ winden thoughtpolice ];
platforms = platforms.all;
};
}
6 changes: 3 additions & 3 deletions pkgs/development/compilers/nextpnr/default.nix
Original file line number Diff line number Diff line change
@@ -14,14 +14,14 @@ let
in
with stdenv; mkDerivation rec {
pname = "nextpnr";
version = "2020.08.22";
version = "2020.11.10";

srcs = [
(fetchFromGitHub {
owner = "YosysHQ";
repo = "nextpnr";
rev = "c8ecb8341ca766e1e7565cc2b652b63eaba67508";
sha256 = "1cf9ad7w5x452qdc6m9c3in6v9yzip3n1as978lbdh76f5mc00fv";
rev = "cf331ca2a7fa92d3414fabf003ce6fc7b515f76b";
sha256 = "0ka8ncfq3v8v70m3gwb3nd2rb39sy4vz0lx9hi277cbdsprmf55j";
name = "nextpnr";
})
(fetchFromGitHub {
39 changes: 31 additions & 8 deletions pkgs/development/compilers/yosys/default.nix
Original file line number Diff line number Diff line change
@@ -14,15 +14,32 @@
, zlib
}:

# NOTE: as of late 2020, yosys has switched to an automation robot that
# automatically tags their repository Makefile with a new build number every
# day when changes are committed. please MAKE SURE that the version number in
# the 'version' field exactly matches the YOSYS_VER field in the Yosys
# makefile!
#
# if a change in yosys isn't yet available under a build number like this (i.e.
# it was very recently merged, within an hour), wait a few hours for the
# automation robot to tag the new version, like so:
#
# https://github.com/YosysHQ/yosys/commit/71ca9a825309635511b64b3ec40e5e5e9b6ad49b
#
# note that while most nix packages for "unstable versions" use a date-based
# version scheme, synchronizing the nix package version here with the unstable
# yosys version number helps users report better bugs upstream, and is
# ultimately less confusing than using dates.

stdenv.mkDerivation rec {
pname = "yosys";
version = "2020.10.20";
version = "0.9+3675";

src = fetchFromGitHub {
owner = "YosysHQ";
repo = "yosys";
rev = "06347b119b08257eff37cdd10ed802e794c1a3cf";
sha256 = "07058r8095192gwkiy2yyvj9vxv09fcw9bqi2b39wn85lh5kx2k2";
rev = "71ca9a825309635511b64b3ec40e5e5e9b6ad49b";
sha256 = "03jlhfvm5rxx8yybf94nqd3ld2y6brp8r0k6gfi56chv3iqqavy3";
};

enableParallelBuilding = true;
@@ -55,11 +72,17 @@ stdenv.mkDerivation rec {
(cd misc && ${protobuf}/bin/protoc --cpp_out ../backends/protobuf/ ./yosys.proto)
if ! grep -q "ABCREV = ${shortAbcRev}" Makefile; then
echo "yosys isn't compatible with the provided abc (${shortAbcRev}), failing."
echo "ERROR: yosys isn't compatible with the provided abc (${shortAbcRev}), failing."
exit 1
fi
if ! grep -q "YOSYS_VER := ${version}" Makefile; then
echo "ERROR: yosys version in Makefile isn't equivalent to version of the nix package (${version}), failing."
exit 1
fi
'';

checkTarget = "test";
doCheck = true;
checkInputs = [ verilog ];

@@ -68,10 +91,10 @@ stdenv.mkDerivation rec {
# they just assume that 'yosys-abc' is available -- but it's not installed
# when using ABCEXTERNAL
#
# add a symlink to fake things so that both variants work the same way.
postInstall = ''
ln -sfv ${abc-verifier}/bin/abc $out/bin/yosys-abc
'';
# add a symlink to fake things so that both variants work the same way. this
# is also needed at build time for the test suite.
postBuild = "ln -sfv ${abc-verifier}/bin/abc ./yosys-abc";
postInstall = "ln -sfv ${abc-verifier}/bin/abc $out/bin/yosys-abc";

meta = with stdenv.lib; {
description = "Open RTL synthesis framework and tools";
12 changes: 6 additions & 6 deletions pkgs/development/tools/trellis/default.nix
Original file line number Diff line number Diff line change
@@ -8,26 +8,26 @@ let
in
stdenv.mkDerivation rec {
pname = "trellis";
version = "2020.07.27";
version = "2020.11.07";

# git describe --tags
realVersion = with stdenv.lib; with builtins;
"1.0-182-g${substring 0 7 (elemAt srcs 0).rev}";
"1.0-469-g${substring 0 7 (elemAt srcs 0).rev}";

srcs = [
(fetchFromGitHub {
owner = "SymbiFlow";
repo = "prjtrellis";
rev = "8c0a6382e11b160ed88d17af8493c12a897617ed";
sha256 = "1g0ppjfw8dq5cg5kl2p1p87grb0i88apaim4f5b6wj4sfqz8iln8";
rev = "b013a135a9b95c18ece559e19aa73ad6c84446c9";
sha256 = "09bx30jm9bgdxmbxf49a27spg4yd1nk5r5mympq7xi28hq1xwjnf";
name = "trellis";
})

(fetchFromGitHub {
owner = "SymbiFlow";
repo = "prjtrellis-db";
rev = "c137076fdd8bfca3d2bf9cdacda9983dbbec599a";
sha256 = "1br0vw8wwcn2qhs8kxkis5xqlr2nw7r3mf1qwjp8xckd6fa1wlcw";
rev = "2cf058e7a3ba36134d21e34823e9b2ecaaceac2c";
sha256 = "1hjaw5jkwiaiznm2z0smy88m2cdz63cd51z4nibajfih7ikvkj6g";
name = "trellis-database";
})
];