···117117118118 /* fake entry, just to have a happy stage-1. Users
119119 may boot without having stage-1 though */
120120- fileSystems = [
120120+ fileSystems.fake =
121121 { mountPoint = "/";
122122 device = "/dev/something";
123123- }
124124- ];
123123+ };
125124126125 services.mingetty = {
127126 # Some more help text.
+1-1
nixos/modules/installer/cd-dvd/system-tarball.nix
···41414242 # In stage 1 of the boot, mount the CD/DVD as the root FS by label
4343 # so that we don't need to know its device.
4444- fileSystems = [ ];
4444+ fileSystems = { };
45454646 # boot.initrd.availableKernelModules = [ "mvsdio" "reiserfs" "ext3" "ext4" ];
4747
···11-{ lib, stdenv, ghc, llvmPackages, packages, symlinkJoin, makeWrapper
11+{ lib, stdenv, ghc, llvmPackages, packages, buildEnv, makeWrapper
22, withLLVM ? false
33, postBuild ? ""
44, ghcLibdir ? null # only used by ghcjs, when resolving plugins
···5151 ++ lib.optional stdenv.targetPlatform.isDarwin llvmPackages.clang);
5252in
5353if paths == [] && !withLLVM then ghc else
5454-symlinkJoin {
5454+buildEnv {
5555 # this makes computing paths from the name attribute impossible;
5656 # if such a feature is needed, the real compiler name should be saved
5757 # as a dedicated drv attribute, like `compiler-name`
5858 name = ghc.name + "-with-packages";
5959 paths = paths ++ [ghc];
6060+ extraOutputsToInstall = ["doc"];
6061 postBuild = ''
6162 . ${makeWrapper}/nix-support/setup-hook
6363+6464+ # We make changes to ghc binaries in $out/bin. buildEnv gives a
6565+ # symlink if only one of the paths has the subdirectory. If so,
6666+ # we need to remove it for our new wrappers.
6767+6868+ if [ -L "$out/bin" ]; then
6969+ rm -f "$out/bin"
7070+ mkdir -p "$out/bin"
7171+ fi
62726373 # wrap compiler executables with correct env variables
6474
···11+{ lib, buildPythonPackage, fetchPypi }:
22+33+buildPythonPackage rec {
44+ pname = "area";
55+ version = "1.1.1";
66+77+ src = fetchPypi {
88+ inherit pname version;
99+ sha256 = "18k5hwmlxhajlq306zxndsglb11vv8vd4vpmwx8dpvfxd1kbksya";
1010+ };
1111+1212+ # tests not working on the package from pypi
1313+ doCheck = false;
1414+1515+ meta = with lib; {
1616+ description = "Calculate the area inside of any GeoJSON geometry. This is a port of Mapbox’s geojson-area for Python.";
1717+ homepage = "https://github.com/scisco/area";
1818+ license = licenses.bsd2;
1919+ };
2020+}
···11+diff --git a/setup.py b/setup.py
22+index 8e1c220..45297b6 100644
33+--- a/setup.py
44++++ b/setup.py
55+@@ -25,20 +25,6 @@ class CustomBuildExtCommand(build_ext):
66+ install_h3(h3_version)
77+88+99+-# Tested with wheel v0.29.0
1010+-class BinaryDistribution(Distribution):
1111+- def __init__(self, attrs=None):
1212+- Distribution.__init__(self, attrs)
1313+- # The values used for the name and sources in the Extension below are
1414+- # not important, because we override the build_ext command above.
1515+- # The normal C extension building logic is never invoked, and is
1616+- # replaced with our own custom logic. However, ext_modules cannot be
1717+- # empty, because this signals to other parts of distutils that our
1818+- # package contains C extensions and thus needs to be built for
1919+- # different platforms separately.
2020+- self.ext_modules = [Extension('h3c', [])]
2121+-
2222+-
2323+ long_description = open('README.rst').read()
2424+2525+ setup(
2626+@@ -52,14 +38,10 @@ setup(
2727+ url='https://github.com/uber/h3-py.git',
2828+ packages=find_packages(exclude=['tests', 'tests.*']),
2929+ install_requires=[],
3030+- cmdclass={
3131+- 'build_ext': CustomBuildExtCommand,
3232+- },
3333+ package_data={
3434+ 'h-py':
3535+ ['out/*.dylib' if platform.system() == 'Darwin' else (
3636+ 'out/*.dll' if platform.system() == 'Windows' else
3737+ 'out/*.so.*')]
3838+ },
3939+- license='Apache License 2.0',
4040+- distclass=BinaryDistribution)
4141++ license='Apache License 2.0')
···124124 sha256 = "077cpj0kzyqxzdya1dwh8df17zfzhqn7c685hx6iskvw2979zg2n";
125125 })
126126 ./lift-gast-restriction.patch
127127+128128+ # cuda 10.2 does not have "-bin2c-path" option anymore
129129+ # https://github.com/tensorflow/tensorflow/issues/34429
130130+ ./cuda-10.2-no-bin2c-path.patch
127131 ];
128132129133 # On update, it can be useful to steal the changes from gentoo