Unverified Commit 9c3dec87 authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt Committed by GitHub
Browse files

ecos: 2.0.7 -> 2.0.10 (#400668)

parents 733cb7e7 32002ac2
Loading
Loading
Loading
Loading
+22 −9
Original line number Diff line number Diff line
@@ -4,39 +4,52 @@
  fetchFromGitHub,
}:

stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
  pname = "ecos";
  version = "2.0.7";
  version = "2.0.10";

  src = fetchFromGitHub {
    owner = "embotech";
    repo = "ecos";
    rev = version;
    sha256 = "1hsndim5kjvcwk5svqa4igawzahj982180xj1d7yd0dbjlgxc7w7";
    tag = "v${finalAttrs.version}";
    hash = "sha256-WMgqDc+XAY3g2wwlefjJ0ATxR5r/jL971FZKtxsunnU=";
  };

  buildPhase = ''
    runHook preBuild

    make all shared

    runHook postBuild
  '';

  doCheck = true;

  checkPhase = ''
    runHook preCheck

    make test
    ./runecos

    runHook postCheck
  '';

  installPhase = ''
    runHook preInstall

    mkdir -p $out/lib
    cp lib*.a lib*.so $out/lib
    cp -r include $out/

    runHook postInstall
  '';

  meta = with lib; {
  meta = {
    description = "Lightweight conic solver for second-order cone programming";
    homepage = "https://www.embotech.com/ECOS";
    downloadPage = "https://github.com/embotech/ecos/releases";
    license = licenses.gpl3;
    platforms = platforms.all;
    maintainers = with maintainers; [ bhipple ];
    license = lib.licenses.gpl3;
    platforms = lib.platforms.all;
    maintainers = with lib.maintainers; [ bhipple ];
  };
}
})