-
-
Save KarlJoad/efd216be8bc485ae6e206ec4e0e5a77a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ 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