nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 49 lines 1.2 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 fetchpatch, 6 libsForQt5, 7}: 8 9stdenv.mkDerivation (finalAttrs: { 10 pname = "mathmod"; 11 version = "13.0"; 12 13 src = fetchFromGitHub { 14 owner = "parisolab"; 15 repo = "mathmod"; 16 tag = finalAttrs.version; 17 hash = "sha256-+UR8Tk20StplyNqPDNxR0HfjAzAru4r+WtVsW81LR9c="; 18 }; 19 20 patches = [ 21 ./fix-paths.patch 22 (fetchpatch { 23 # fix X > Y > Z comparison logic (which causes a compile error on darwin) 24 name = "fix-comparison.patch"; 25 url = "https://github.com/parisolab/mathmod/commit/ddf9239f10fb0e07603297c06a23b7adeae8e323.patch"; 26 hash = "sha256-jB9y3xPwlcQYRQTnqcePjAZGycC1BpWhkT1GhgVJims="; 27 }) 28 ]; 29 30 postPatch = '' 31 substituteInPlace MathMod.pro \ 32 --replace-fail "@out@" "$out" 33 ''; 34 35 nativeBuildInputs = with libsForQt5; [ 36 qmake 37 wrapQtAppsHook 38 ]; 39 40 meta = { 41 changelog = "https://github.com/parisolab/mathmod/releases/tag/${finalAttrs.version}"; 42 description = "Mathematical modelling software"; 43 homepage = "https://github.com/parisolab/mathmod"; 44 license = lib.licenses.gpl2Plus; 45 mainProgram = "MathMod"; 46 maintainers = with lib.maintainers; [ tomasajt ]; 47 platforms = lib.platforms.unix; 48 }; 49})