Skip to content
This repository was archived by the owner on Apr 12, 2021. It is now read-only.
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-channels
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 684d691c6e9d
Choose a base ref
...
head repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0b67d9e87aea
Choose a head ref
Loading
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -105,6 +105,9 @@ insert_final_newline = unset
indent_size = unset
trim_trailing_whitespace = unset

[pkgs/tools/misc/timidity/timidity.cfg]
trim_trailing_whitespace = unset

[pkgs/top-level/emscripten-packages.nix]
trim_trailing_whitespace = unset

2 changes: 1 addition & 1 deletion pkgs/applications/audio/sunvox/default.nix
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@ stdenv.mkDerivation rec {

src = fetchurl {
url = "http://www.warmplace.ru/soft/sunvox/sunvox-${version}.zip";
sha256 = "15pyc3dk4dqlivgzki8sv7xpwg3bbn5xv9338g16a0dbn7s3kich";
sha256 = "04f7psm0lvc09nw7d2wp0sncf37bym2v7hhxp4v8c8gdgayj7k8m";
};

buildInputs = [ unzip ];
20 changes: 20 additions & 0 deletions pkgs/applications/editors/emacs-modes/melpa-packages.nix
Original file line number Diff line number Diff line change
@@ -196,6 +196,26 @@ let

ivy-rtags = fix-rtags super.ivy-rtags;

libgit = super.libgit.overrideAttrs(attrs: {
nativeBuildInputs = (attrs.nativeBuildInputs or []) ++ [ pkgs.cmake ];
buildInputs = attrs.buildInputs ++ [ pkgs.libgit2 ];
dontUseCmakeBuildDir = true;
postPatch = ''
sed -i s/'add_subdirectory(libgit2)'// CMakeLists.txt
'';
postBuild = ''
pushd working/libgit
make
popd
'';
postInstall = ''
outd=$(echo $out/share/emacs/site-lisp/elpa/libgit-**)
mkdir $outd/build
install -m444 -t $outd/build ./source/src/libegit2.so
rm -r $outd/src $outd/Makefile $outd/CMakeLists.txt
'';
});

magit = super.magit.overrideAttrs (attrs: {
# searches for Git at build time
nativeBuildInputs =
82 changes: 82 additions & 0 deletions pkgs/applications/networking/gnome-network-displays/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
{ stdenv
, fetchurl
, fetchpatch
# native
, meson
, ninja
, pkg-config
, gettext
, desktop-file-utils
, appstream-glib
, wrapGAppsHook
, python3
# Not native
, gst_all_1
, gsettings-desktop-schemas
, gtk3
, glib
, networkmanager
, libpulseaudio
}:

stdenv.mkDerivation rec {
pname = "gnome-network-displays";
version = "0.90.4";

src = fetchurl {
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "04snnfz5jxxpjkrwa7dchc2h4shszi8mq9g3ihvsvipgzjw3d498";
};

patches = [
# Undeclared dependency on gio-unix-2.0, see:
# https://github.com/NixOS/nixpkgs/issues/36468 and
# https://gitlab.gnome.org/GNOME/gnome-network-displays/-/merge_requests/147
(fetchpatch {
url = "https://gitlab.gnome.org/GNOME/gnome-network-displays/-/commit/ef3f3ff565acd8238da46de604a1e750d4f02f07.diff";
sha256 = "1ljiwgqia6am4lansg70qnwkch9mp1fr6bga98s5fwyiaw6b6f4p";
})
# Fixes an upstream bug: https://gitlab.gnome.org/GNOME/gnome-network-displays/-/issues/147
(fetchpatch {
url = "https://gitlab.gnome.org/GNOME/gnome-network-displays/-/commit/23164b58f4d5dd59de988525906d6e5e82c5a63c.patch";
sha256 = "0x32dvkzv9m04q41aicscpf4aspghx81a65462kjqnsavi64lga5";
})
];

nativeBuildInputs = [
meson
ninja
pkg-config
gettext
desktop-file-utils
appstream-glib
wrapGAppsHook
python3
];

buildInputs = [
gtk3
glib
gsettings-desktop-schemas
gst_all_1.gstreamer
gst_all_1.gst-plugins-base
gst_all_1.gst-plugins-good
gst_all_1.gst-plugins-bad
gst_all_1.gst-plugins-ugly
gst_all_1.gst-rtsp-server
networkmanager
libpulseaudio
];

preConfigure = ''
patchShebangs ./build-aux/meson/postinstall.py
'';

meta = with stdenv.lib; {
homepage = "https://gitlab.gnome.org/GNOME/gnome-network-displays";
description = "Miracast implementation for GNOME";
maintainers = with maintainers; [ doronbehar ];
license = licenses.gpl3Plus;
platforms = platforms.linux;
};
}
Original file line number Diff line number Diff line change
@@ -4,11 +4,11 @@

buildPythonApplication rec {
pname = "git-machete";
version = "2.15.5";
version = "2.15.6";

src = fetchPypi {
inherit pname version;
sha256 = "11an0hwva1jlf9y7vd9mscs4g6lzja1rwizsani6411xs6m121a3";
sha256 = "0ajb3m3i3pfc5v3gshglk7qphk1rpniwx8q8isgx1a6cyarzr9bd";
};

nativeBuildInputs = [ installShellFiles pbr ];
30 changes: 15 additions & 15 deletions pkgs/build-support/dotnetenv/build-solution.nix
Original file line number Diff line number Diff line change
@@ -16,20 +16,20 @@ assert modifyPublicMain -> mainClassFile != null;

stdenv.mkDerivation {
inherit name src;
buildInputs = [ dotnetfx ];

buildInputs = [ dotnetfx ];

preConfigure = ''
cd ${baseDir}
'';

preBuild = ''
${stdenv.lib.optionalString modifyPublicMain ''
sed -i -e "s|static void Main|public static void Main|" ${mainClassFile}
''}
${preBuild}
'';

installPhase = ''
addDeps()
{
@@ -39,44 +39,44 @@ stdenv.mkDerivation {
do
windowsPath=$(cygpath --windows $i)
assemblySearchPaths="$assemblySearchPaths;$windowsPath"
addDeps $i
done
fi
}
for i in ${toString assemblyInputs}
do
windowsPath=$(cygpath --windows $i)
windowsPath=$(cygpath --windows $i)
echo "Using assembly path: $windowsPath"
if [ "$assemblySearchPaths" = "" ]
then
assemblySearchPaths="$windowsPath"
else
assemblySearchPaths="$assemblySearchPaths;$windowsPath"
fi
addDeps $i
done
echo "Assembly search paths are: $assemblySearchPaths"
if [ "$assemblySearchPaths" != "" ]
then
echo "Using assembly search paths args: $assemblySearchPathsArg"
export AssemblySearchPaths=$assemblySearchPaths
fi
mkdir -p $out
MSBuild.exe ${toString slnFile} /nologo /t:${targets} /p:IntermediateOutputPath=$(cygpath --windows $out)\\ /p:OutputPath=$(cygpath --windows $out)\\ /verbosity:${verbosity} ${options}
# Because .NET assemblies store strings as UTF-16 internally, we cannot detect
# hashes. Therefore a text files containing the proper paths is created
# We can also use this file the propagate transitive dependencies.
mkdir -p $out/nix-support
for i in ${toString assemblyInputs}
do
echo $i >> $out/nix-support/dotnet-assemblies
2 changes: 1 addition & 1 deletion pkgs/build-support/dotnetenv/default.nix
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ let dotnetenv =
buildWrapper = import ./wrapper.nix {
inherit dotnetenv;
};

inherit (dotnetfx) assembly20Path wcfPath referenceAssembly30Path referenceAssembly35Path;
};
in
10 changes: 5 additions & 5 deletions pkgs/build-support/dotnetenv/wrapper.nix
Original file line number Diff line number Diff line change
@@ -36,25 +36,25 @@ dotnetenv.buildSolution {
do
windowsPath=$(cygpath --windows $i | sed 's|\\|\\\\|g')
assemblySearchArray="$assemblySearchArray @\"$windowsPath\""
addRuntimeDeps $i
done
fi
}
export exePath=$(cygpath --windows $(find ${application} -name \*.exe) | sed 's|\\|\\\\|g')
# Generate assemblySearchPaths string array contents
for path in ${toString assemblyInputs}
do
assemblySearchArray="$assemblySearchArray @\"$(cygpath --windows $path | sed 's|\\|\\\\|g')\", "
addRuntimeDeps $path
done
sed -e "s|@ROOTNAMESPACE@|${namespace}Wrapper|" \
-e "s|@ASSEMBLYNAME@|${namespace}|" \
Wrapper/Wrapper.csproj.in > Wrapper/Wrapper.csproj
sed -e "s|@NAMESPACE@|${namespace}|g" \
-e "s|@MAINCLASSNAME@|${mainClassName}|g" \
-e "s|@EXEPATH@|$exePath|g" \
13 changes: 6 additions & 7 deletions pkgs/development/libraries/vmmlib/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cmake, pkgconfig, boost, blas
{ stdenv, fetchFromGitHub, cmake, pkgconfig, boost, lapack
, Accelerate, CoreGraphics, CoreVideo
}:

@@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
];

nativeBuildInputs = [ pkgconfig cmake ];
buildInputs = [ boost blas ]
buildInputs = [ boost lapack ]
++ stdenv.lib.optionals stdenv.isDarwin [ Accelerate CoreGraphics CoreVideo ];

enableParallelBuilding = true;
@@ -30,11 +30,11 @@ stdenv.mkDerivation rec {
meta = with stdenv.lib; {
description = "A vector and matrix math library implemented using C++ templates";

longDescription = ''vmmlib is a vector and matrix math library implemented
using C++ templates. Its basic functionality includes a vector
and a matrix class, with additional functionality for the
longDescription = ''vmmlib is a vector and matrix math library implemented
using C++ templates. Its basic functionality includes a vector
and a matrix class, with additional functionality for the
often-used 3d and 4d vectors and 3x3 and 4x4 matrices.
More advanced functionality include solvers, frustum
More advanced functionality include solvers, frustum
computations and frustum culling classes, and spatial data structures'';

license = licenses.bsd2;
@@ -43,4 +43,3 @@ stdenv.mkDerivation rec {
platforms = platforms.all;
};
}

12 changes: 6 additions & 6 deletions pkgs/development/python-modules/behave/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ stdenv, fetchFromGitHub
, buildPythonApplication, python
, mock, pathpy, pyhamcrest, pytest, pytest-html
, pytestCheckHook, mock, pathpy, pyhamcrest, pytest-html
, glibcLocales
, colorama, cucumber-tag-expressions, parse, parse-type, six
}:
@@ -16,22 +16,22 @@ buildPythonApplication rec {
sha256 = "1ssgixmqlg8sxsyalr83a1970njc2wg3zl8idsmxnsljwacv7qwv";
};

checkInputs = [ mock pathpy pyhamcrest pytest pytest-html ];
checkInputs = [ pytestCheckHook mock pathpy pyhamcrest pytest-html ];
buildInputs = [ glibcLocales ];
propagatedBuildInputs = [ colorama cucumber-tag-expressions parse parse-type six ];

postPatch = ''
patchShebangs bin
'';

doCheck = true;
# timing-based test flaky on Darwin
# https://github.com/NixOS/nixpkgs/pull/97737#issuecomment-691489824
disabledTests = stdenv.lib.optionals stdenv.isDarwin [ "test_step_decorator_async_run_until_complete" ];

checkPhase = ''
postCheck = ''
export LANG="en_US.UTF-8"
export LC_ALL="en_US.UTF-8"
pytest tests
${python.interpreter} bin/behave -f progress3 --stop --tags='~@xfail' features/
${python.interpreter} bin/behave -f progress3 --stop --tags='~@xfail' tools/test-features/
${python.interpreter} bin/behave -f progress3 --stop --tags='~@xfail' issue.features/
29 changes: 10 additions & 19 deletions pkgs/development/python-modules/netaddr/default.nix
Original file line number Diff line number Diff line change
@@ -1,41 +1,32 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, pytest
, fetchpatch
, pythonOlder
, glibcLocales
, importlib-resources
, pytestCheckHook
}:

buildPythonPackage rec {
pname = "netaddr";
version = "0.7.19";
version = "0.8.0";

src = fetchPypi {
inherit pname version;
sha256 = "38aeec7cdd035081d3a4c306394b19d677623bf76fa0913f6695127c7753aefd";
sha256 = "0hx2npi0wnhwlcybilgwlddw6qffx1mb7a3sj4p9s7bvl33mgk6n";
};

LC_ALL = "en_US.UTF-8";
checkInputs = [ glibcLocales pytest ];

checkPhase = ''
# fails on python3.7: https://github.com/drkjam/netaddr/issues/182
py.test \
-k 'not test_ip_splitter_remove_prefix_larger_than_input_range' \
netaddr/tests
'';
propagatedBuildInputs = stdenv.lib.optionals (pythonOlder "3.7") [ importlib-resources ];

patches = [
(fetchpatch {
url = "https://github.com/drkjam/netaddr/commit/2ab73f10be7069c9412e853d2d0caf29bd624012.patch";
sha256 = "0s1cdn9v5alpviabhcjmzc0m2pnpq9dh2fnnk2x96dnry1pshg39";
})
];
checkInputs = [ glibcLocales pytestCheckHook ];

meta = with stdenv.lib; {
homepage = "https://github.com/drkjam/netaddr/";
homepage = "https://netaddr.readthedocs.io/en/latest/";
downloadPage = "https://github.com/netaddr/netaddr/releases";
changelog = "https://netaddr.readthedocs.io/en/latest/changes.html";
description = "A network address manipulation library for Python";
license = licenses.mit;
};

}
Loading