https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
24 lines
625 B
Nix
24 lines
625 B
Nix
{ lib, stdenv, fetchFromGitHub, gfortran }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "openspecfun";
|
|
version = "0.5.5";
|
|
src = fetchFromGitHub {
|
|
owner = "JuliaLang";
|
|
repo = "openspecfun";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-fX2wc8LHUcF5nN/hiA60ZZ7emRTs0SznOm/0q6lD+Ko=";
|
|
};
|
|
|
|
makeFlags = [ "prefix=$(out)" ];
|
|
|
|
nativeBuildInputs = [ gfortran ];
|
|
|
|
meta = {
|
|
description = "A collection of special mathematical functions";
|
|
homepage = "https://github.com/JuliaLang/openspecfun";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ lib.maintainers.ttuegel ];
|
|
platforms = lib.platforms.all;
|
|
};
|
|
}
|