···1{ stdenv
2, lib
03, buildGoModule
4, fetchFromGitHub
5, makeWrapper
···101 terraform.overrideAttrs
102 (orig: { passthru = orig.passthru // passthru; })
103 else
104+ lib.appendToName "with-plugins" (stdenv.mkDerivation {
105 inherit (terraform) name meta;
0106 nativeBuildInputs = [ makeWrapper ];
107+108+ buildCommand = ''
109+ # Create wrappers for terraform plugins because Terraform only
110+ # walks inside of a tree of files.
111+ for providerDir in ${toString actualPlugins}
112+ do
113+ for file in $(find $providerDir/libexec/terraform-providers -type f)
114+ do
115+ relFile=''${file#$providerDir/}
116+ mkdir -p $out/$(dirname $relFile)
117+ cat <<WRAPPER > $out/$relFile
118+ #!${runtimeShell}
119+ exec "$file" "$@"
120+ WRAPPER
121+ chmod +x $out/$relFile
122+ done
123+ done
124+125+ # Create a wrapper for terraform to point it to the plugins dir.
126+ mkdir -p $out/bin/
127 makeWrapper "${terraform}/bin/terraform" "$out/bin/terraform" \
128 --set NIX_TERRAFORM_PLUGIN_DIR $out/libexec/terraform-providers \
129 --prefix PATH : "${lib.makeBinPath wrapperInputs}"
130 '';
131+132+ inherit passthru;
133 });
134 in
135 withPlugins (_: [ ]);
-70
pkgs/applications/office/impressive/default.nix
···1-{ fetchurl, stdenv, python2, makeWrapper, lib
2-, SDL, ghostscript, pdftk, dejavu_fonts }:
3-4-let
5- version = "0.12.1";
6- pythonEnv = python2.withPackages (ps: with ps; [pyopengl pygame pillow]);
7-in stdenv.mkDerivation {
8- # This project was formerly known as KeyJNote.
9- # See http://keyj.emphy.de/apple-lawsuit/ for details.
10-11- pname = "impressive";
12- inherit version;
13-14- src = fetchurl {
15- url = "mirror://sourceforge/impressive/Impressive-${version}.tar.gz";
16- sha256 = "1r7ihv41awnlnlry1kymb8fka053wdhzibfwcarn78rr3vs338vl";
17- };
18-19- nativeBuildInputs = [ makeWrapper ];
20- buildInputs = [ pythonEnv ];
21-22- configurePhase = ''
23- # Let's fail at build time if the library we're substituting in doesn't
24- # exist/isn't marked as executable
25- test -x ${SDL}/lib/libSDL.so
26- sed -i "impressive.py" \
27- -e '/^__website__/a SDL_LIBRARY = "${SDL}/lib/libSDL.so"' \
28- -e 's/sdl = CDLL.*/sdl = CDLL(SDL_LIBRARY)/' \
29- -e 's^FontPath =.*/usr/.*$^FontPath = ["${dejavu_fonts}/share/fonts", ""]^'
30- '';
31-32- installPhase = ''
33- mkdir -p "$out/bin" "$out/share/doc/impressive" "$out/share/man/man1"
34- mv impressive.py "$out/bin/impressive"
35- mv impressive.1 "$out/share/man/man1"
36- mv changelog.txt impressive.html license.txt "$out/share/doc/impressive"
37-38- wrapProgram "$out/bin/impressive" \
39- --prefix PATH ":" "${ghostscript}/bin:${pdftk}/bin"
40- '';
41-42- meta = {
43- description = "Impressive, an effect-rich presentation tool for PDFs";
44-45- longDescription = ''
46- Impressive is a program that displays presentation slides.
47- But unlike OpenOffice.org Impress or other similar
48- applications, it does so with style. Smooth alpha-blended
49- slide transitions are provided for the sake of eye candy, but
50- in addition to this, Impressive offers some unique tools that
51- are really useful for presentations. Read below if you want
52- to know more about these features.
53-54- Creating presentations for Impressive is very simple: You just
55- need to export a PDF file from your presentation software.
56- This means that you can create slides in the application of
57- your choice and use Impressive for displaying them. If your
58- application does not support PDF output, you can alternatively
59- use a set of pre-rendered image files – or you use Impressive
60- to make a slideshow with your favorite photos.
61- '';
62-63- homepage = "http://impressive.sourceforge.net/";
64-65- license = lib.licenses.gpl2;
66-67- maintainers = with lib.maintainers; [ lheckemann ];
68- platforms = lib.platforms.mesaPlatforms;
69- };
70- }
···340 raise ValueError("no file available for {}.".format(pname))
341342 text = _replace_value('version', new_version, text)
00000000343344 # fetchers can specify a sha256, or a sri hash
345 try:
346- text = _replace_value('sha256', new_sha256, text)
347 except ValueError:
348- # hashes from pypi are 16-bit encoded sha256's, need translate to an sri hash if used with "hash"
349- sri_hash = subprocess.check_output(["nix", "hash", "to-sri", "--type", "sha256", new_sha256]).decode('utf-8').strip()
350 text = _replace_value('hash', sri_hash, text)
351352 if fetcher == 'fetchFromGitHub':
···340 raise ValueError("no file available for {}.".format(pname))
341342 text = _replace_value('version', new_version, text)
343+ # hashes from pypi are 16-bit encoded sha256's, normalize it to sri to avoid merge conflicts
344+ # sri hashes have been the default format since nix 2.4+
345+ try:
346+ sri_hash = subprocess.check_output(["nix", "hash", "to-sri", "--type", "sha256", new_sha256]).decode('utf-8').strip()
347+ except subprocess.CalledProcessError:
348+ # nix<2.4 compat
349+ sri_hash = subprocess.check_output(["nix", "to-sri", "--type", "sha256", new_sha256]).decode('utf-8').strip()
350+351352 # fetchers can specify a sha256, or a sri hash
353 try:
354+ text = _replace_value('sha256', sri_hash, text)
355 except ValueError:
00356 text = _replace_value('hash', sri_hash, text)
357358 if fetcher == 'fetchFromGitHub':
···109 "test_circular_references"
110 # Failing wsgi test
111 "test_session_mode_defaults_to_request_mode_in_wsgi_handler"
112+ # Network requests to public web
113+ "test_crumb_capture"
114 ];
115116 disabledTestPaths = [
+2-2
pkgs/development/python-modules/treeo/default.nix
···22 poetry-core
23 ];
2425- # These deps are not needed for the wheel, but required during the import.
26 propagatedBuildInputs = [
27 jax
28- jaxlib
29 ];
30031 pythonImportsCheck = [
32 "treeo"
33 ];
···22 poetry-core
23 ];
2425+ # jax is not declared in the dependencies, but is necessary.
26 propagatedBuildInputs = [
27 jax
028 ];
2930+ checkInputs = [ jaxlib ];
31 pythonImportsCheck = [
32 "treeo"
33 ];
···1{ lib
2, fetchpatch
3, kernel
4-, date ? "2021-12-26"
5-, commit ? "b034dfb24fece43a7677b9a29781495aeb62767f"
6-, diffHash ? "0m7qrnfrcx3dki9lmsq3jk3mcrfm99djh83gwwjh401ql0cycx5p"
7, kernelPatches # must always be defined in bcachefs' all-packages.nix entry because it's also a top-level attribute supplied by callPackage
8, argsOverride ? {}
9, ...
···1{ lib
2, fetchpatch
3, kernel
4+, date ? "2022-01-12"
5+, commit ? "0e6eb60f8be14b02e0a76cb330f4b22c80ec82e9"
6+, diffHash ? "091w4r7h93s5rv8hk65aix7l0rr4bd504mv998j7x360bqlb7vpi"
7, kernelPatches # must always be defined in bcachefs' all-packages.nix entry because it's also a top-level attribute supplied by callPackage
8, argsOverride ? {}
9, ...
···1+It needs the SUID version during runtime, and that can't be in /nix/store/**
2+--- a/modules/pam_unix/Makefile.in
3++++ b/modules/pam_unix/Makefile.in
4+@@ -651 +651 @@
5+- -DCHKPWD_HELPER=\"$(sbindir)/unix_chkpwd\" \
6++ -DCHKPWD_HELPER=\"/run/wrappers/bin/unix_chkpwd\" \
···410 imagemagick7_light = imagemagick_light; # added 2021-02-22
411 imagemagick7 = imagemagick; # added 2021-02-22
412 imagemagick7Big = imagemagickBig; # added 2021-02-22
0413 inboxer = throw "inboxer has been removed as it is no longer maintained and no longer works as Google shut down the inbox service this package wrapped.";
414 infiniband-diags = rdma-core; # added 2019-08-09
415 inotifyTools = inotify-tools;
···410 imagemagick7_light = imagemagick_light; # added 2021-02-22
411 imagemagick7 = imagemagick; # added 2021-02-22
412 imagemagick7Big = imagemagickBig; # added 2021-02-22
413+ impressive = throw "impressive has been removed due to lack of released python 2 support and maintainership in nixpkgs"; # added 2022-01-27
414 inboxer = throw "inboxer has been removed as it is no longer maintained and no longer works as Google shut down the inbox service this package wrapped.";
415 infiniband-diags = rdma-core; # added 2019-08-09
416 inotifyTools = inotify-tools;