commit
fc00ff355a
1 changed files with 2 additions and 14 deletions
|
@ -11,23 +11,15 @@
|
||||||
|
|
||||||
stdenv.mkDerivation (finalAttrs: {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "mlx42";
|
pname = "mlx42";
|
||||||
version = "2.3.2";
|
version = "2.3.3";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "codam-coding-college";
|
owner = "codam-coding-college";
|
||||||
repo = "MLX42";
|
repo = "MLX42";
|
||||||
rev = "v${finalAttrs.version}";
|
rev = "v${finalAttrs.version}";
|
||||||
hash = "sha256-JCBV8NWibSugqXkbgP0v3gDfaaMNFYztWpBRfHJUG8E=";
|
hash = "sha256-igkTeOnqGYBISzmtDGlDx9cGJjoQ8fzXtVSR9hU4F5E=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
|
||||||
(fetchpatch {
|
|
||||||
name = "add-cmake-install.patch";
|
|
||||||
url = "https://github.com/codam-coding-college/MLX42/commit/a51ca8e0ec3fb793fa96d710696dcee8a4fe57d6.patch";
|
|
||||||
hash = "sha256-i+0yHZVvfTG19BGVrz7GuEuBw3B7lylCPEvx07il23M=";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
patchShebangs ./tools
|
patchShebangs ./tools
|
||||||
''
|
''
|
||||||
|
@ -46,10 +38,6 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mkdir -p $out/lib/pkgconfig
|
mkdir -p $out/lib/pkgconfig
|
||||||
substituteAll ${./mlx42.pc} $out/lib/pkgconfig/mlx42.pc
|
substituteAll ${./mlx42.pc} $out/lib/pkgconfig/mlx42.pc
|
||||||
|
|
||||||
# This file was removed after 2.3.2, so the used patch doesn't copy this file
|
|
||||||
# This line can be removed after the next release
|
|
||||||
cp $src/include/MLX42/MLX42_Input.h $out/include/MLX42
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
|
Loading…
Reference in a new issue