···11{ stdenv
22, lib
33-, buildEnv
43, buildGoModule
54, fetchFromGitHub
65, makeWrapper
···102101 terraform.overrideAttrs
103102 (orig: { passthru = orig.passthru // passthru; })
104103 else
105105- lib.appendToName "with-plugins" (buildEnv {
104104+ lib.appendToName "with-plugins" (stdenv.mkDerivation {
106105 inherit (terraform) name meta;
107107- paths = actualPlugins;
108106 nativeBuildInputs = [ makeWrapper ];
109109- postBuild = ''
110110- mkdir -p $out/bin
107107+108108+ buildCommand = ''
109109+ # Create wrappers for terraform plugins because Terraform only
110110+ # walks inside of a tree of files.
111111+ for providerDir in ${toString actualPlugins}
112112+ do
113113+ for file in $(find $providerDir/libexec/terraform-providers -type f)
114114+ do
115115+ relFile=''${file#$providerDir/}
116116+ mkdir -p $out/$(dirname $relFile)
117117+ cat <<WRAPPER > $out/$relFile
118118+ #!${runtimeShell}
119119+ exec "$file" "$@"
120120+ WRAPPER
121121+ chmod +x $out/$relFile
122122+ done
123123+ done
124124+125125+ # Create a wrapper for terraform to point it to the plugins dir.
126126+ mkdir -p $out/bin/
111127 makeWrapper "${terraform}/bin/terraform" "$out/bin/terraform" \
112128 --set NIX_TERRAFORM_PLUGIN_DIR $out/libexec/terraform-providers \
113129 --prefix PATH : "${lib.makeBinPath wrapperInputs}"
114130 '';
131131+132132+ inherit passthru;
115133 });
116134 in
117135 withPlugins (_: [ ]);
-70
pkgs/applications/office/impressive/default.nix
···11-{ fetchurl, stdenv, python2, makeWrapper, lib
22-, SDL, ghostscript, pdftk, dejavu_fonts }:
33-44-let
55- version = "0.12.1";
66- pythonEnv = python2.withPackages (ps: with ps; [pyopengl pygame pillow]);
77-in stdenv.mkDerivation {
88- # This project was formerly known as KeyJNote.
99- # See http://keyj.emphy.de/apple-lawsuit/ for details.
1010-1111- pname = "impressive";
1212- inherit version;
1313-1414- src = fetchurl {
1515- url = "mirror://sourceforge/impressive/Impressive-${version}.tar.gz";
1616- sha256 = "1r7ihv41awnlnlry1kymb8fka053wdhzibfwcarn78rr3vs338vl";
1717- };
1818-1919- nativeBuildInputs = [ makeWrapper ];
2020- buildInputs = [ pythonEnv ];
2121-2222- configurePhase = ''
2323- # Let's fail at build time if the library we're substituting in doesn't
2424- # exist/isn't marked as executable
2525- test -x ${SDL}/lib/libSDL.so
2626- sed -i "impressive.py" \
2727- -e '/^__website__/a SDL_LIBRARY = "${SDL}/lib/libSDL.so"' \
2828- -e 's/sdl = CDLL.*/sdl = CDLL(SDL_LIBRARY)/' \
2929- -e 's^FontPath =.*/usr/.*$^FontPath = ["${dejavu_fonts}/share/fonts", ""]^'
3030- '';
3131-3232- installPhase = ''
3333- mkdir -p "$out/bin" "$out/share/doc/impressive" "$out/share/man/man1"
3434- mv impressive.py "$out/bin/impressive"
3535- mv impressive.1 "$out/share/man/man1"
3636- mv changelog.txt impressive.html license.txt "$out/share/doc/impressive"
3737-3838- wrapProgram "$out/bin/impressive" \
3939- --prefix PATH ":" "${ghostscript}/bin:${pdftk}/bin"
4040- '';
4141-4242- meta = {
4343- description = "Impressive, an effect-rich presentation tool for PDFs";
4444-4545- longDescription = ''
4646- Impressive is a program that displays presentation slides.
4747- But unlike OpenOffice.org Impress or other similar
4848- applications, it does so with style. Smooth alpha-blended
4949- slide transitions are provided for the sake of eye candy, but
5050- in addition to this, Impressive offers some unique tools that
5151- are really useful for presentations. Read below if you want
5252- to know more about these features.
5353-5454- Creating presentations for Impressive is very simple: You just
5555- need to export a PDF file from your presentation software.
5656- This means that you can create slides in the application of
5757- your choice and use Impressive for displaying them. If your
5858- application does not support PDF output, you can alternatively
5959- use a set of pre-rendered image files – or you use Impressive
6060- to make a slideshow with your favorite photos.
6161- '';
6262-6363- homepage = "http://impressive.sourceforge.net/";
6464-6565- license = lib.licenses.gpl2;
6666-6767- maintainers = with lib.maintainers; [ lheckemann ];
6868- platforms = lib.platforms.mesaPlatforms;
6969- };
7070- }
···340340 raise ValueError("no file available for {}.".format(pname))
341341342342 text = _replace_value('version', new_version, text)
343343+ # hashes from pypi are 16-bit encoded sha256's, normalize it to sri to avoid merge conflicts
344344+ # sri hashes have been the default format since nix 2.4+
345345+ try:
346346+ sri_hash = subprocess.check_output(["nix", "hash", "to-sri", "--type", "sha256", new_sha256]).decode('utf-8').strip()
347347+ except subprocess.CalledProcessError:
348348+ # nix<2.4 compat
349349+ sri_hash = subprocess.check_output(["nix", "to-sri", "--type", "sha256", new_sha256]).decode('utf-8').strip()
350350+343351344352 # fetchers can specify a sha256, or a sri hash
345353 try:
346346- text = _replace_value('sha256', new_sha256, text)
354354+ text = _replace_value('sha256', sri_hash, text)
347355 except ValueError:
348348- # hashes from pypi are 16-bit encoded sha256's, need translate to an sri hash if used with "hash"
349349- sri_hash = subprocess.check_output(["nix", "hash", "to-sri", "--type", "sha256", new_sha256]).decode('utf-8').strip()
350356 text = _replace_value('hash', sri_hash, text)
351357352358 if fetcher == 'fetchFromGitHub':
···109109 "test_circular_references"
110110 # Failing wsgi test
111111 "test_session_mode_defaults_to_request_mode_in_wsgi_handler"
112112+ # Network requests to public web
113113+ "test_crumb_capture"
112114 ];
113115114116 disabledTestPaths = [
+2-2
pkgs/development/python-modules/treeo/default.nix
···2222 poetry-core
2323 ];
24242525- # These deps are not needed for the wheel, but required during the import.
2525+ # jax is not declared in the dependencies, but is necessary.
2626 propagatedBuildInputs = [
2727 jax
2828- jaxlib
2928 ];
30293030+ checkInputs = [ jaxlib ];
3131 pythonImportsCheck = [
3232 "treeo"
3333 ];
···11+It needs the SUID version during runtime, and that can't be in /nix/store/**
22+--- a/modules/pam_unix/Makefile.in
33++++ b/modules/pam_unix/Makefile.in
44+@@ -651 +651 @@
55+- -DCHKPWD_HELPER=\"$(sbindir)/unix_chkpwd\" \
66++ -DCHKPWD_HELPER=\"/run/wrappers/bin/unix_chkpwd\" \
···410410 imagemagick7_light = imagemagick_light; # added 2021-02-22
411411 imagemagick7 = imagemagick; # added 2021-02-22
412412 imagemagick7Big = imagemagickBig; # added 2021-02-22
413413+ impressive = throw "impressive has been removed due to lack of released python 2 support and maintainership in nixpkgs"; # added 2022-01-27
413414 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.";
414415 infiniband-diags = rdma-core; # added 2019-08-09
415416 inotifyTools = inotify-tools;