octave: Fix abort due to missing gl2ps library (#38459)
This commit is contained in:
@@ -17,6 +17,13 @@ self: super: pkgs: with pkgs; {
|
|||||||
];
|
];
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
# https://github.com/NixOS/nixpkgs/issues/38459
|
||||||
|
octave = super.octave.overrideAttrs (attrs: {
|
||||||
|
buildInputs = attrs.buildInputs ++ [ gl2ps ];
|
||||||
|
} );
|
||||||
|
|
||||||
|
gl2ps = callPackage ./gl2ps.nix { };
|
||||||
|
|
||||||
# https://github.com/NixOS/nixpkgs/issues/44426
|
# https://github.com/NixOS/nixpkgs/issues/44426
|
||||||
python27 = super.python27.override { packageOverrides = pythonOverrides; };
|
python27 = super.python27.override { packageOverrides = pythonOverrides; };
|
||||||
python35 = super.python35.override { packageOverrides = pythonOverrides; };
|
python35 = super.python35.override { packageOverrides = pythonOverrides; };
|
||||||
|
|||||||
28
temporary/gl2ps.nix
Normal file
28
temporary/gl2ps.nix
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
{ stdenv, fetchurl, cmake
|
||||||
|
, zlib, libGL, libGLU, libpng, freeglut }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
version = "1.4.0";
|
||||||
|
name = "gl2ps-${version}";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "http://geuz.org/gl2ps/src/${name}.tgz";
|
||||||
|
sha256 = "1qpidkz8x3bxqf69hlhyz1m0jmfi9kq24fxsp7rq6wfqzinmxjq3";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
cmake
|
||||||
|
zlib
|
||||||
|
libGL
|
||||||
|
libGLU
|
||||||
|
libpng
|
||||||
|
freeglut
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
homepage = http://geuz.org/gl2ps;
|
||||||
|
description = "An OpenGL to PostScript printing library.";
|
||||||
|
platforms = platforms.all;
|
||||||
|
license = licenses.lgpl2;
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user