Skip to content

Instantly share code, notes, and snippets.

@KarlJoad
Created December 5, 2020 06:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KarlJoad/efd216be8bc485ae6e206ec4e0e5a77a to your computer and use it in GitHub Desktop.
Save KarlJoad/efd216be8bc485ae6e206ec4e0e5a77a to your computer and use it in GitHub Desktop.
{ pkgs ? import <nixpkgs> {}
, lib ? import <nixpkgs/lib> {}
# , stdenv
# , fetchTarball
# , lapack, blas, flibs
}:
with pkgs;
stdenv.mkDerivation rec {
pname = "control";
version = "3.2.0";
src = fetchTarball {
url = "https://octave.sourceforge.io/download.php?package=${pname}-${version}.tar.gz";
sha256 = "1l9lr3fxmjf8j900jrgcc7qffymmkmnnar4ahvaap87blgv07wcm";
};
buildInputs = [
octave
gfortran
autoconf
];
propagatedBuildInputs = [
lapack blas
];
# patchPhase = ''
# # Not portable to BSD sed
# sed '/config.log/d' $src/src/configure > $src/src/configure
# # sed -n '/config.log/!p' $src/src/configure > $src/src/configure
# '';
preConfigure = ''
cd $src/src
'';
configureFlags = [ "--quiet" ];
# installPhase = ''
# mkdir -p $out/
# cp -r $src/* $out/
# '';
dontFixup = true;
dontInstallCheckPhase = true;
dontDistPhase = true;
meta = {
homepage = "https://octave.sourceforge.io/${pname}/index.html";
license = stdenv.lib.licenses.gpl3Plus;
maintainers = with maintainers; [ KarlJoad ];
description = "Signal processing tools, including filtering, windowing and display functions.";
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment