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: f08e3e38d4bf
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 7aa2b0215b8e
Choose a head ref

Commits on Dec 23, 2019

  1. bcftools: 1.9 -> 1.10.2

    r-ryantm committed Dec 23, 2019
    Copy the full SHA
    c905a6d View commit details
  2. Copy the full SHA
    cf1220b View commit details
  3. Copy the full SHA
    046a9cf View commit details
  4. Copy the full SHA
    057b94a View commit details

Commits on Dec 24, 2019

  1. Copy the full SHA
    3e8cf10 View commit details
  2. sysbench: 1.0.18 -> 1.0.19

    r-ryantm committed Dec 24, 2019
    Copy the full SHA
    d5080b6 View commit details

Commits on Dec 25, 2019

  1. yoshimi: 1.6.0.3 -> 1.6.1

    r-ryantm committed Dec 25, 2019
    Copy the full SHA
    683feaa View commit details

Commits on Dec 26, 2019

  1. Copy the full SHA
    057840d View commit details

Commits on Dec 27, 2019

  1. gleam: 0.5.0 -> 0.6.0

    Br1ght0ne committed Dec 27, 2019
    Copy the full SHA
    dc0c4b9 View commit details
  2. Copy the full SHA
    cfb7d1b View commit details

Commits on Dec 30, 2019

  1. nginx: Clear Last-Modified if ETag is from store

    This is what I've suspected a while ago[1]:
    
    > Heads-up everyone: After testing this in a few production instances,
    > it seems that some browsers still get cache hits for new store paths
    > (and changed contents) for some reason. I highly suspect that it might
    > be due to the last-modified header (as mentioned in [2]).
    >
    > Going to test this with last-modified disabled for a little while and
    > if this is the case I think we should improve that patch by disabling
    > last-modified if serving from a store path.
    
    Much earlier[2] when I reviewed the patch, I wrote this:
    
    > Other than that, it looks good to me.
    >
    > However, I'm not sure what we should do with Last-Modified header.
    > From RFC 2616, section 13.3.4:
    >
    > - If both an entity tag and a Last-Modified value have been
    >   provided by the origin server, SHOULD use both validators in
    >   cache-conditional requests. This allows both HTTP/1.0 and
    >   HTTP/1.1 caches to respond appropriately.
    >
    > I'm a bit nervous about the SHOULD here, as user agents in the wild
    > could possibly just use Last-Modified and use the cached content
    > instead.
    
    Unfortunately, I didn't pursue this any further back then because
    @pbogdan noted[3] the following:
    
    > Hmm, could they (assuming they are conforming):
    >
    >  * If an entity tag has been provided by the origin server, MUST
    >    use that entity tag in any cache-conditional request (using If-
    >    Match or If-None-Match).
    
    Since running with this patch in some deployments, I found that both
    Firefox and Chrome/Chromium do NOT re-validate against the ETag if the
    Last-Modified header is still the same.
    
    So I wrote a small NixOS VM test with Geckodriver to have a test case
    which is closer to the real world and I indeed was able to reproduce
    this.
    
    Whether this is actually a bug in Chrome or Firefox is an entirely
    different issue and even IF it is the fault of the browsers and it is
    fixed at some point, we'd still need to handle this for older browser
    versions.
    
    Apart from clearing the header, I also recreated the patch by using a
    plain "git diff" with a small description on top. This should make it
    easier for future authors to work on that patch.
    
    [1]: #48337 (comment)
    [2]: #48337 (comment)
    [3]: #48337 (comment)
    
    Signed-off-by: aszlig <aszlig@nix.build>
    aszlig committed Dec 30, 2019
    Copy the full SHA
    ccf55be View commit details

Commits on Dec 31, 2019

  1. hyperrogue: 10.5e -> 11.2d

    mehlon committed Dec 31, 2019
    Copy the full SHA
    c510bbf View commit details

Commits on Jan 1, 2020

  1. Copy the full SHA
    a133f8e View commit details
  2. Copy the full SHA
    2f040f6 View commit details
  3. maintainer-list: added cab404

    cab404 committed Jan 1, 2020
    Copy the full SHA
    b8ccc33 View commit details
  4. Copy the full SHA
    328030c View commit details
  5. micronucleus: init at 2.04

    cab404 committed Jan 1, 2020
    Copy the full SHA
    8c7473e View commit details

Commits on Jan 2, 2020

  1. Copy the full SHA
    8e5b810 View commit details
  2. ntl: 11.4.1 -> 11.4.2

    Needed for gf2x 1.3.0 compatibility. Upstream says:
    
    > I just uploaded NTL 11.4.2 to http://www.shoup.net/ntl
    
    > This fixes a few small, obscure bugs, including one that  prevents using
    > the gf2x-1.3 library.
    
    At https://groups.google.com/d/msgid/sage-devel/992c77f6-ebf9-4049-8900-c45c6b89f4ed%40googlegroups.com
    timokau committed Jan 2, 2020
    Copy the full SHA
    d41ff9b View commit details
  3. gf2x: 1.2 -> 1.3.0

    Switch source to fetchgit since it removes the requirements to manually
    find the correct link for each version.
    
    More information at
    #45299
    timokau committed Jan 2, 2020
    Copy the full SHA
    45e3be9 View commit details
  4. Merge Last-Modified fix for nginx (#76697)

    This fixes the patch for nginx to clear the Last-Modified header if a
    static file is served from the Nix store.
    
    So far we only used the ETag from the store path, but if the
    Last-Modified header is always set to "Thu, 01 Jan 1970 00:00:01 GMT",
    Firefox and Chrome/Chromium seem to ignore the ETag and simply use the
    cached content instead of revalidating.
    
    Alongside the fix, this also adds a dedicated NixOS VM test, which uses
    WebDriver and Firefox to check whether the content is actually served
    from the browser's cache and to have a more real-world test case.
    aszlig committed Jan 2, 2020
    Copy the full SHA
    845e928 View commit details
  5. Copy the full SHA
    ac62ee8 View commit details
  6. Merge pull request #76621 from cab404/micronucleus

    Added micronucleus
    flokli authored Jan 2, 2020
    Copy the full SHA
    1c9af6e View commit details
  7. poetry2nix: init at 1.1.0

    adisbladis committed Jan 2, 2020
    Copy the full SHA
    ded1080 View commit details
  8. poetry: 0.12.17 -> 1.0.0

    adisbladis committed Jan 2, 2020
    Copy the full SHA
    54928f9 View commit details
  9. Merge pull request #76770 from dtzWill/update/devilutionx-1.0.0

    devilutionx: 0.5.0 -> 1.0.0, install font file
    danbst authored Jan 2, 2020
    Copy the full SHA
    c9bf6ae View commit details
  10. ansible-lint: 4.1.1a0 -> 4.2.0

    Upstream switched to a PEP517-based build[1] which required some minor
    changes on the package. Additionally, the update fixes the currently
    broken package build[2].
    
    [1] https://www.python.org/dev/peps/pep-0517/
    [2] https://hydra.nixos.org/build/109032815
    Ma27 committed Jan 2, 2020
    Copy the full SHA
    40d02af View commit details
  11. Merge pull request #76646 from adisbladis/poetry

    poetry2nix: init at 1.1.0
    adisbladis authored Jan 2, 2020
    Copy the full SHA
    1b33a0a View commit details
  12. Merge pull request #76278 from r-ryantm/auto-update/homeassistant-cli

    home-assistant-cli: 0.7.0 -> 0.8.0
    Ma27 authored Jan 2, 2020
    Copy the full SHA
    9b298ad View commit details
  13. Merge pull request #76580 from filalex77/gleam-0.6.0

    gleam: 0.5.0 -> 0.6.0
    Ma27 authored Jan 2, 2020
    Copy the full SHA
    8f9a0b4 View commit details
  14. Merge pull request #76298 from r-ryantm/auto-update/libfilezilla

    libfilezilla: 0.19.1 -> 0.19.3
    Ma27 authored Jan 2, 2020
    Copy the full SHA
    4a13ebd View commit details
  15. Merge pull request #76313 from oxalica/cargo-flamegraph-perf

    cargo-flamegraph: fix runtime dep: linux-perf
    Ma27 authored Jan 2, 2020
    Copy the full SHA
    af26f69 View commit details
  16. Copy the full SHA
    af29265 View commit details
  17. Merge pull request #76829 from timokau/gf2x-1.3.0

    ntl: 11.4.1 -> 11.4.2, gf2x: 1.2 -> 1.3.0
    timokau authored Jan 2, 2020
    Copy the full SHA
    552b38e View commit details
  18. Merge pull request #76846 from lovesegfault/gegl-no-flaky-tests

    gegl: remove flaky test
    grahamc authored Jan 2, 2020
    Copy the full SHA
    45a1974 View commit details

Commits on Jan 3, 2020

  1. Merge pull request #76208 from r-ryantm/auto-update/bcftools

    bcftools: 1.9 -> 1.10.2
    ryantm authored Jan 3, 2020
    Copy the full SHA
    ec29bb5 View commit details
  2. Copy the full SHA
    992245f View commit details
  3. Copy the full SHA
    d80570f View commit details
  4. Merge pull request #76852 from lovesegfault/fix-manual-boot-console

    nixos-manual: boot.extraTTYs -> console.extraTTYs
    grahamc authored Jan 3, 2020
    Copy the full SHA
    d08fc1a View commit details
  5. Merge pull request #76801 from hax404/chirp

    chirp: 20191123 -> 20191221; add support for chirp.drivers.tk8180
    fpletz authored Jan 3, 2020
    Copy the full SHA
    6a2caa5 View commit details
  6. Merge pull request #76756 from mehlon/hyperrogue

    hyperrogue: 10.5e -> 11.2d
    fpletz authored Jan 3, 2020
    Copy the full SHA
    804678f View commit details
  7. Revert "lib/types: Allow paths as submodule values"

    This reverts commit eec83d4.
    
    This broke hydra evaluation because with this commit submodule values
    are allowed to be paths, however the certmgr module uses `either
    (submodule ...) path` in its type, meaning it already used paths for
    something else which would now be interpreted as a submodule.
    infinisil committed Jan 3, 2020
    Copy the full SHA
    c7ade68 View commit details
  8. lib/tests: Temporarily disable submodule path test

    Until #76861 or so is merged
    infinisil committed Jan 3, 2020
    Copy the full SHA
    be3f887 View commit details
  9. Merge pull request #76477 from r-ryantm/auto-update/yoshimi

    yoshimi: 1.6.0.3 -> 1.6.1
    marsam authored Jan 3, 2020
    Copy the full SHA
    d3cd40a View commit details
  10. Merge pull request #76432 from r-ryantm/auto-update/spectre-meltdown-…

    …checker
    
    spectre-meltdown-checker: 0.42 -> 0.43
    marsam authored Jan 3, 2020
    Copy the full SHA
    c1fdafa View commit details
  11. Merge pull request #76443 from r-ryantm/auto-update/sysbench

    sysbench: 1.0.18 -> 1.0.19
    marsam authored Jan 3, 2020
    Copy the full SHA
    7e8454f View commit details
  12. Merge master into staging-next

    FRidh committed Jan 3, 2020
    Copy the full SHA
    7aa2b02 View commit details
Showing with 3,780 additions and 71 deletions.
  1. +2 −1 lib/tests/modules.sh
  2. +3 −5 lib/types.nix
  3. +15 −0 maintainers/maintainer-list.nix
  4. +3 −3 nixos/doc/manual/development/option-types.xml
  5. +1 −1 nixos/modules/services/misc/nixos-manual.nix
  6. +1 −1 nixos/modules/services/misc/rogue.nix
  7. +1 −0 nixos/tests/all-tests.nix
  8. +89 −0 nixos/tests/nginx-etag.nix
  9. +2 −2 pkgs/applications/audio/yoshimi/default.nix
  10. +3 −3 pkgs/applications/radio/chirp/default.nix
  11. +2 −2 pkgs/applications/science/biology/bcftools/default.nix
  12. +4 −4 pkgs/development/compilers/gleam/default.nix
  13. +3 −0 pkgs/development/libraries/gegl/4.0.nix
  14. +10 −0 pkgs/development/libraries/gegl/patches/no-simple-backend-file-test.patch
  15. +13 −8 pkgs/development/libraries/gf2x/default.nix
  16. +2 −2 pkgs/development/libraries/libfilezilla/default.nix
  17. +4 −2 pkgs/development/libraries/ntl/default.nix
  18. +4 −1 pkgs/development/python-modules/ansible-lint/default.nix
  19. +11 −3 pkgs/development/tools/cargo-flamegraph/default.nix
  20. +38 −0 pkgs/development/tools/misc/micronucleus/default.nix
  21. +2 −2 pkgs/development/tools/misc/sysbench/default.nix
  22. +65 −0 pkgs/development/tools/poetry/default.nix
  23. +1,886 −0 pkgs/development/tools/poetry/poetry.lock
  24. +118 −0 pkgs/development/tools/poetry/pyproject.toml
  25. +6 −0 pkgs/development/tools/poetry2nix/poetry2nix/README.md
  26. +98 −0 pkgs/development/tools/poetry2nix/poetry2nix/bin/poetry2nix
  27. +52 −0 pkgs/development/tools/poetry2nix/poetry2nix/cli.nix
  28. +252 −0 pkgs/development/tools/poetry2nix/poetry2nix/default.nix
  29. +14 −0 pkgs/development/tools/poetry2nix/poetry2nix/extensions.json
  30. +79 −0 pkgs/development/tools/poetry2nix/poetry2nix/lib.nix
  31. +100 −0 pkgs/development/tools/poetry2nix/poetry2nix/mk-poetry-dep.nix
  32. +405 −0 pkgs/development/tools/poetry2nix/poetry2nix/overrides.nix
  33. +106 −0 pkgs/development/tools/poetry2nix/poetry2nix/pep425.nix
  34. +218 −0 pkgs/development/tools/poetry2nix/poetry2nix/pep508.nix
  35. +18 −0 pkgs/development/tools/poetry2nix/poetry2nix/pyproject-without-path.py
  36. +80 −0 pkgs/development/tools/poetry2nix/poetry2nix/semver.nix
  37. +31 −0 pkgs/development/tools/poetry2nix/update
  38. +10 −5 pkgs/games/devilutionx/default.nix
  39. +3 −3 pkgs/games/hyperrogue/default.nix
  40. +2 −2 pkgs/servers/home-assistant/cli.nix
  41. +5 −13 pkgs/servers/http/nginx/nix-etag-1.15.4.patch
  42. +6 −5 pkgs/tools/package-management/cargo-release/default.nix
  43. +2 −2 pkgs/tools/security/spectre-meltdown-checker/default.nix
  44. +11 −1 pkgs/top-level/all-packages.nix
3 changes: 2 additions & 1 deletion lib/tests/modules.sh
Original file line number Diff line number Diff line change
@@ -180,7 +180,8 @@ checkConfigOutput "true" config.submodule.inner ./declare-submoduleWith-modules.
checkConfigOutput "true" config.submodule.outer ./declare-submoduleWith-modules.nix

## Paths should be allowed as values and work as expected
checkConfigOutput "true" config.submodule.enable ./declare-submoduleWith-path.nix
# Temporarily disabled until https://github.com/NixOS/nixpkgs/pull/76861
#checkConfigOutput "true" config.submodule.enable ./declare-submoduleWith-path.nix

cat <<EOF
====== module tests ======
8 changes: 3 additions & 5 deletions lib/types.nix
Original file line number Diff line number Diff line change
@@ -376,16 +376,14 @@ rec {
else unify (if shorthandOnlyDefinesConfig then { config = value; } else value);

allModules = defs: modules ++ imap1 (n: { value, file }:
if isAttrs value || isFunction value then
# Annotate the value with the location of its definition for better error messages
coerce (lib.modules.unifyModuleSyntax file "${toString file}-${toString n}") value
else value
# Annotate the value with the location of its definition for better error messages
coerce (lib.modules.unifyModuleSyntax file "${toString file}-${toString n}") value
) defs;

in
mkOptionType rec {
name = "submodule";
check = x: isAttrs x || isFunction x || path.check x;
check = x: isAttrs x || isFunction x;
merge = loc: defs:
(evalModules {
modules = allModules defs;
15 changes: 15 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
@@ -1075,6 +1075,21 @@
githubId = 510553;
name = "Jos van Bakel";
};
cab404 = {
email = "cab404@mailbox.org";
github = "cab404";
githubId = 6453661;
name = "Vladimir Serov";
keys = [
# compare with https://keybase.io/cab404
{ longkeyid = "1BB96810926F4E715DEF567E6BA7C26C3FDF7BB3";
fingerprint = "rsa3072/0xCBDECF658C38079E";
}
{ longkeyid = "1EBC648C64D6045463013B3EB7EFFC271D55DB8A";
fingerprint = "ed25519/0xB7EFFC271D55DB8A";
}
];
};
calbrecht = {
email = "christian.albrecht@mayflower.de";
github = "calbrecht";
6 changes: 3 additions & 3 deletions nixos/doc/manual/development/option-types.xml
Original file line number Diff line number Diff line change
@@ -257,9 +257,9 @@
<listitem>
<para>
A set of sub options <replaceable>o</replaceable>.
<replaceable>o</replaceable> can be an attribute set, a function
returning an attribute set, or a path to a file containing such a value. Submodules are used in
composed types to create modular options. This is equivalent to
<replaceable>o</replaceable> can be an attribute set or a function
returning an attribute set. Submodules are used in composed types to
create modular options. This is equivalent to
<literal>types.submoduleWith { modules = toList o; shorthandOnlyDefinesConfig = true; }</literal>.
Submodules are detailed in
<xref
2 changes: 1 addition & 1 deletion nixos/modules/services/misc/nixos-manual.nix
Original file line number Diff line number Diff line change
@@ -52,7 +52,7 @@ in
};
})
(mkIf (cfg.showManual && cfgd.enable && cfgd.nixos.enable) {
boot.extraTTYs = [ "tty${toString cfg.ttyNumber}" ];
console.extraTTYs = [ "tty${toString cfg.ttyNumber}" ];

systemd.services.nixos-manual = {
description = "NixOS Manual";
2 changes: 1 addition & 1 deletion nixos/modules/services/misc/rogue.nix
Original file line number Diff line number Diff line change
@@ -40,7 +40,7 @@ in

config = mkIf cfg.enable {

boot.extraTTYs = [ cfg.tty ];
console.extraTTYs = [ cfg.tty ];

systemd.services.rogue =
{ description = "Rogue dungeon crawling game";
1 change: 1 addition & 0 deletions nixos/tests/all-tests.nix
Original file line number Diff line number Diff line change
@@ -198,6 +198,7 @@ in
nfs4 = handleTest ./nfs { version = 4; };
nghttpx = handleTest ./nghttpx.nix {};
nginx = handleTest ./nginx.nix {};
nginx-etag = handleTest ./nginx-etag.nix {};
nginx-sso = handleTest ./nginx-sso.nix {};
nix-ssh-serve = handleTest ./nix-ssh-serve.nix {};
nixos-generate-config = handleTest ./nixos-generate-config.nix {};
89 changes: 89 additions & 0 deletions nixos/tests/nginx-etag.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
import ./make-test-python.nix {
name = "nginx-etag";

nodes = {
server = { pkgs, lib, ... }: {
networking.firewall.enable = false;
services.nginx.enable = true;
services.nginx.virtualHosts.server = {
root = pkgs.runCommandLocal "testdir" {} ''
mkdir "$out"
cat > "$out/test.js" <<EOF
document.getElementById('foobar').setAttribute('foo', 'bar');
EOF
cat > "$out/index.html" <<EOF
<!DOCTYPE html>
<div id="foobar">test</div>
<script src="test.js"></script>
EOF
'';
};

nesting.clone = lib.singleton {
services.nginx.virtualHosts.server = {
root = lib.mkForce (pkgs.runCommandLocal "testdir2" {} ''
mkdir "$out"
cat > "$out/test.js" <<EOF
document.getElementById('foobar').setAttribute('foo', 'yay');
EOF
cat > "$out/index.html" <<EOF
<!DOCTYPE html>
<div id="foobar">test</div>
<script src="test.js"></script>
EOF
'');
};
};
};

client = { pkgs, lib, ... }: {
virtualisation.memorySize = 512;
environment.systemPackages = let
testRunner = pkgs.writers.writePython3Bin "test-runner" {
libraries = [ pkgs.python3Packages.selenium ];
} ''
import os
import time
from selenium.webdriver import Firefox
from selenium.webdriver.firefox.options import Options
options = Options()
options.add_argument('--headless')
driver = Firefox(options=options)
driver.implicitly_wait(20)
driver.get('http://server/')
driver.find_element_by_xpath('//div[@foo="bar"]')
open('/tmp/passed_stage1', 'w')
while not os.path.exists('/tmp/proceed'):
time.sleep(0.5)
driver.get('http://server/')
driver.find_element_by_xpath('//div[@foo="yay"]')
open('/tmp/passed', 'w')
'';
in [ pkgs.firefox-unwrapped pkgs.geckodriver testRunner ];
};
};

testScript = { nodes, ... }: let
inherit (nodes.server.config.system.build) toplevel;
newSystem = "${toplevel}/fine-tune/child-1";
in ''
start_all()
server.wait_for_unit("nginx.service")
client.wait_for_unit("multi-user.target")
client.execute("test-runner &")
client.wait_for_file("/tmp/passed_stage1")
server.succeed(
"${newSystem}/bin/switch-to-configuration test >&2"
)
client.succeed("touch /tmp/proceed")
client.wait_for_file("/tmp/passed")
'';
}
4 changes: 2 additions & 2 deletions pkgs/applications/audio/yoshimi/default.nix
Original file line number Diff line number Diff line change
@@ -6,11 +6,11 @@ assert stdenv ? glibc;

stdenv.mkDerivation rec {
pname = "yoshimi";
version = "1.6.0.3";
version = "1.6.1";

src = fetchurl {
url = "mirror://sourceforge/yoshimi/${pname}-${version}.tar.bz2";
sha256 = "1z2mnmm299ng6jcwa61dzr1ilwa5fjgsggxl2wa5smji6b4npmx7";
sha256 = "044k2pcdsb43znc8q63mc4niggpain7wl9s5c4sgsfmrjh0bjapj";
};

buildInputs = [
6 changes: 3 additions & 3 deletions pkgs/applications/radio/chirp/default.nix
Original file line number Diff line number Diff line change
@@ -4,15 +4,15 @@
}:
python2.pkgs.buildPythonApplication rec {
pname = "chirp-daily";
version = "20191123";
version = "20191221";

src = fetchurl {
url = "https://trac.chirp.danplanet.com/chirp_daily/daily-${version}/${pname}-${version}.tar.gz";
sha256 = "11wzk0c9fa3gp185gyd47g3sh7gfallw7qapr6qp913q2zfmif8v";
sha256 = "1f4h45cbaq3rssl95xax8gn2bm1slnsbgds479db46czgq6y1qhy";
};

propagatedBuildInputs = with python2.pkgs; [
pygtk pyserial libxml2
pygtk pyserial libxml2 future
];

meta = with stdenv.lib; {
4 changes: 2 additions & 2 deletions pkgs/applications/science/biology/bcftools/default.nix
Original file line number Diff line number Diff line change
@@ -2,11 +2,11 @@

stdenv.mkDerivation rec {
pname = "bcftools";
version = "1.9";
version = "1.10.2";

src = fetchurl {
url = "https://github.com/samtools/bcftools/releases/download/${version}/${pname}-${version}.tar.bz2";
sha256 = "1j3h638i8kgihzyrlnpj82xg1b23sijibys9hvwari3fy7kd0dkg";
sha256 = "0b2f6lqhxdlrvfjqxv7a4nzqj68c1j4avn16iqxwwm80kn302wzm";
};

buildInputs = [ htslib zlib bzip2 lzma curl perl python ];
8 changes: 4 additions & 4 deletions pkgs/development/compilers/gleam/default.nix
Original file line number Diff line number Diff line change
@@ -2,18 +2,18 @@

rustPlatform.buildRustPackage rec {
pname = "gleam";
version = "0.5.0";
version = "0.6.0";

src = fetchFromGitHub {
owner = "lpil";
owner = "gleam-lang";
repo = pname;
rev = "v${version}";
sha256 = "17h573fm5b1f71ivyipl76p0vw7injm7j3cbg6plkfizcb1j5m7f";
sha256 = "1fvy2j6pw1rwm0rg7555q3qg2069cx2b9lk0nsyc3jxsqp9hbn6i";
};

buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];

cargoSha256 = "04v1gj5nmmcizyrsg6b87qsfzw2zqi57vf1zlnq8680yc54qdah9";
cargoSha256 = "0zfdsnrnxplvi4f92l7sqdp5yk5p738ra64m41izlcilkwj1j3vp";

meta = with stdenv.lib; {
description = "A statically typed language for the Erlang VM";
3 changes: 3 additions & 0 deletions pkgs/development/libraries/gegl/4.0.nix
Original file line number Diff line number Diff line change
@@ -63,6 +63,9 @@ stdenv.mkDerivation rec {
url = "https://salsa.debian.org/gnome-team/gegl/raw/9b7520b38d87cd8ad4b39bf0b8c62d011da25169/debian/patches/increase_test_timeout.patch";
sha256 = "1prc1h1aipjd9db0i1j7nzga4zvk3vl8qsjpz1jzv1wwvz02isly";
})

# Remove gegl:simple / backend-file test that times out frequently
./patches/no-simple-backend-file-test.patch
];

nativeBuildInputs = [
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
diff --git a/tests/simple/meson.build b/tests/simple/meson.build
index 2c735d80a..ae4d50f2a 100644
--- a/tests/simple/meson.build
+++ b/tests/simple/meson.build
@@ -1,5 +1,4 @@
testnames = [
- 'backend-file',
'buffer-cast',
'buffer-changes',
'buffer-extract',
21 changes: 13 additions & 8 deletions pkgs/development/libraries/gf2x/default.nix
Original file line number Diff line number Diff line change
@@ -1,20 +1,25 @@
{ stdenv
, lib
, fetchurl
, fetchgit
, autoreconfHook
, optimize ? false # impure hardware optimizations
}:
stdenv.mkDerivation rec {
pname = "gf2x";
version = "1.2"; # remember to also update the url
version = "1.3.0";

src = fetchurl {
# find link to latest version (with file id) here: https://gforge.inria.fr/projects/gf2x/
# Requested a predictable link:
# https://gforge.inria.fr/tracker/index.php?func=detail&aid=21704&group_id=1874&atid=6982
url = "https://gforge.inria.fr/frs/download.php/file/36934/gf2x-${version}.tar.gz";
sha256 = "0d6vh1mxskvv3bxl6byp7gxxw3zzpkldrxnyajhnl05m0gx7yhk1";
# upstream has plans to move to gitlab:
# https://github.com/NixOS/nixpkgs/pull/45299#issuecomment-564477936
src = fetchgit {
url = "https://scm.gforge.inria.fr/anonscm/git/gf2x/gf2x.git";
rev = "gf2x-${version}";
sha256 = "04g5jg0i4vz46b4w2dvbmahwzi3k6b8g515mfw7im1inc78s14id";
};

nativeBuildInputs = [
autoreconfHook
];

# no actual checks present yet (as of 1.2), but can't hurt trying
# for an indirect test, run ntl's test suite
doCheck = true;
4 changes: 2 additions & 2 deletions pkgs/development/libraries/libfilezilla/default.nix
Original file line number Diff line number Diff line change
@@ -9,11 +9,11 @@

stdenv.mkDerivation rec {
pname = "libfilezilla";
version = "0.19.1";
version = "0.19.3";

src = fetchurl {
url = "https://download.filezilla-project.org/${pname}/${pname}-${version}.tar.bz2";
sha256 = "0cjscv68nnqivzba94xapx1c970j1jbdbm0h3g2ym9i0hgnyyhha";
sha256 = "0fml6whdbfcwc8nfjhvrnidkscv6q2x988zf3alfjl2mdpw4jgd4";
};

nativeBuildInputs = [ pkgconfig ];
6 changes: 4 additions & 2 deletions pkgs/development/libraries/ntl/default.nix
Original file line number Diff line number Diff line change
@@ -14,11 +14,11 @@ assert withGf2x -> gf2x != null;

stdenv.mkDerivation rec {
pname = "ntl";
version = "11.4.1";
version = "11.4.2";

src = fetchurl {
url = "http://www.shoup.net/ntl/ntl-${version}.tar.gz";
sha256 = "03k2hb6yn49d1f9cdig2ci7h5ga0x3nb3li60hh19wdqzg28f1m3";
sha256 = "11r3f37psdbjw926kf6bn5bp69aj88f5cchvv1xh2bhrcjdp4r1b";
};

buildInputs = [
@@ -67,6 +67,8 @@ stdenv.mkDerivation rec {
# Upstream contact: maintainer is victorshoup on GitHub. Alternatively the
# email listed on the homepage.
homepage = http://www.shoup.net/ntl/;
# also locally at "${src}/doc/tour-changes.html";
changelog = "https://www.shoup.net/ntl/doc/tour-changes.html";
maintainers = with maintainers; [ timokau ];
license = licenses.gpl2Plus;
platforms = platforms.all;
5 changes: 4 additions & 1 deletion pkgs/development/python-modules/ansible-lint/default.nix
Original file line number Diff line number Diff line change
@@ -18,6 +18,8 @@ buildPythonPackage rec {
sha256 = "eb925d8682d70563ccb80e2aca7b3edf84fb0b768cea3edc6846aac7abdc414a";
};

format = "pyproject";

nativeBuildInputs = [ setuptools_scm ];
propagatedBuildInputs = [ pyyaml six ansible ruamel_yaml ];
checkInputs = [ nose ];
@@ -31,10 +33,11 @@ buildPythonPackage rec {
# give a hint to setuptools_scm on package version
preBuild = ''
export SETUPTOOLS_SCM_PRETEND_VERSION="v${version}"
export HOME=$(mktemp -d)
'';

checkPhase = ''
PATH=$out/bin:$PATH HOME=$(mktemp -d) nosetests test
PATH=$out/bin:$PATH nosetests test
'';

meta = with lib; {
14 changes: 11 additions & 3 deletions pkgs/development/tools/cargo-flamegraph/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, rustPlatform
{ lib, stdenv, fetchFromGitHub, rustPlatform, makeWrapper, perf
, Security
}:

@@ -15,11 +15,19 @@ rustPlatform.buildRustPackage rec {

cargoSha256 = "0kmw2n4j5bisac0bv3npbwfz2z00ncd6w8ichwaz5hac5mi1a72f";

buildInputs = stdenv.lib.optionals stdenv.isDarwin [
nativeBuildInputs = lib.optionals stdenv.isLinux [ makeWrapper ];
buildInputs = lib.optionals stdenv.isDarwin [
Security
];

meta = with stdenv.lib; {
postFixup = lib.optionalString stdenv.isLinux ''
wrapProgram $out/bin/cargo-flamegraph \
--suffix PATH ':' ${perf}/bin
wrapProgram $out/bin/flamegraph \
--suffix PATH ':' ${perf}/bin
'';

meta = with lib; {
description = "Easy flamegraphs for Rust projects and everything else, without Perl or pipes <3";
homepage = https://github.com/ferrous-systems/flamegraph;
license = with licenses; [ asl20 /* or */ mit ];
Loading