···40 };
4142 sizeMB = mkOption {
43- type = with types; either (enum [ "auto" ]) int;
44- default = "auto";
45- example = 8192;
46 description = "The size in MB of the image";
47 };
48
···40 };
4142 sizeMB = mkOption {
43+ type = types.int;
44+ default = if config.ec2.hvm then 2048 else 8192;
045 description = "The size in MB of the image";
46 };
47
···15 ${ppdOptionsString p.ppdOptions}
16 '';
17 ensureDefaultPrinter = name: ''
18- ${pkgs.cups}/bin/lpoptions -d '${name}'
19 '';
2021 # "graph but not # or /" can't be implemented as regex alone due to missing lookahead support
···15 ${ppdOptionsString p.ppdOptions}
16 '';
17 ensureDefaultPrinter = name: ''
18+ ${pkgs.cups}/bin/lpadmin -d '${name}'
19 '';
2021 # "graph but not # or /" can't be implemented as regex alone due to missing lookahead support
+2-3
nixos/modules/virtualisation/azure-image.nix
···910 options = {
11 virtualisation.azureImage.diskSize = mkOption {
12- type = with types; either (enum [ "auto" ]) int;
13- default = "auto";
14- example = 2048;
15 description = ''
16 Size of disk image. Unit is MB.
17 '';
···910 options = {
11 virtualisation.azureImage.diskSize = mkOption {
12+ type = with types; int;
13+ default = 2048;
014 description = ''
15 Size of disk image. Unit is MB.
16 '';
···5, pytestCheckHook
6, numpy
7, stdenv
0008}:
910buildPythonPackage rec {
11 pname = "fsspec";
12- version = "0.8.3";
13 disabled = pythonOlder "3.5";
1415 src = fetchFromGitHub {
16 owner = "intake";
17 repo = "filesystem_spec";
18 rev = version;
19- sha256 = "0mfy0wxjfwwnp5q2afhhfbampf0fk71wsv512pi9yvrkzzfi1hga";
20 };
2122- checkInputs = [
23- pytestCheckHook
24- numpy
25- ];
02627 disabledTests = [
28 # Test assumes user name is part of $HOME
29 # AssertionError: assert 'nixbld' in '/homeless-shelter/foo/bar'
30 "test_strip_protocol_expanduser"
31- # flaky: works locally but fails on hydra
32- # as it uses the install dir for tests instead of a temp dir
33- # resolved in https://github.com/intake/filesystem_spec/issues/432 and
34- # can be enabled again from version 0.8.4
35- "test_pathobject"
36 ] ++ lib.optionals (stdenv.isDarwin) [
37 # works locally on APFS, fails on hydra with AssertionError comparing timestamps
38 # darwin hydra builder uses HFS+ and has only one second timestamp resolution
···5, pytestCheckHook
6, numpy
7, stdenv
8+, aiohttp
9+, pytest-vcr
10+, requests
11}:
1213buildPythonPackage rec {
14 pname = "fsspec";
15+ version = "2021.04.0";
16 disabled = pythonOlder "3.5";
1718 src = fetchFromGitHub {
19 owner = "intake";
20 repo = "filesystem_spec";
21 rev = version;
22+ sha256 = "sha256-9072kb1VEQ0xg9hB8yEzJMD2Ttd3UGjBmTuhE+Uya1k=";
23 };
2425+ checkInputs = [ pytestCheckHook numpy pytest-vcr ];
26+27+ __darwinAllowLocalNetworking = true;
28+29+ propagatedBuildInputs = [ aiohttp requests ];
3031 disabledTests = [
32 # Test assumes user name is part of $HOME
33 # AssertionError: assert 'nixbld' in '/homeless-shelter/foo/bar'
34 "test_strip_protocol_expanduser"
35+ # test accesses this remote ftp server:
36+ # https://ftp.fau.de/debian-cd/current/amd64/log/success
37+ "test_find"
0038 ] ++ lib.optionals (stdenv.isDarwin) [
39 # works locally on APFS, fails on hydra with AssertionError comparing timestamps
40 # darwin hydra builder uses HFS+ and has only one second timestamp resolution
···1+{ lib, stdenv, fetchFromGitHub, libftdi }:
2+3+stdenv.mkDerivation rec {
4+ pname = "infnoise";
5+ version = "unstable-2019-08-12";
6+7+ src = fetchFromGitHub {
8+ owner = "13-37-org";
9+ repo = "infnoise";
10+ rev = "132683d4b5ce0902468b666cba63baea36e97f0c";
11+ sha256 = "1dzfzinyvhyy9zj32kqkl19fyhih6sy8r5sa3qahbbr4c30k7flp";
12+ };
13+14+ # Patch makefile so we can set defines from the command line instead of it depending on .git
15+ patches = [ ./makefile.patch ];
16+ GIT_COMMIT = src.rev;
17+ GIT_VERSION = version;
18+ GIT_DATE = "2019-08-12";
19+20+ buildInputs = [ libftdi ];
21+22+ sourceRoot = "source/software";
23+ makefile = "Makefile.linux";
24+ makeFlags = [ "PREFIX=$(out)" ];
25+ postPatch = ''
26+ substituteInPlace init_scripts/infnoise.service --replace "/usr/local" "$out"
27+ '';
28+29+ meta = with lib; {
30+ homepage = "https://github.com/13-37-org/infnoise";
31+ description = "Driver for the Infinite Noise TRNG";
32+ longDescription = ''
33+ The Infinite Noise TRNG is a USB key hardware true random number generator.
34+ It can either provide rng for userland applications, or provide rng for the OS entropy.
35+ Add the following to your system configuration for plug and play support, adding to the OS entropy:
36+ systemd.packages = [ pkgs.infnoise ];
37+ services.udev.packages = [ pkgs.infnoise ];
38+ '';
39+ license = licenses.cc0;
40+ maintainers = with maintainers; [ StijnDW ];
41+ platforms = platforms.linux;
42+ };
43+}