push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
{
lib,
flutter329,
fetchFromGitHub,
}:
flutter329.buildFlutterApplication rec {
pname = "convertall";
version = "1.0.2";
src = fetchFromGitHub {
owner = "doug-101";
repo = "ConvertAll";
tag = "v${version}";
hash = "sha256-esc2xhL0Jx5SaqM0GnnVzdtnSN9bX8zln66We/2RqoA=";
};
pubspecLock = lib.importJSON ./pubspec.lock.json;
meta = {
homepage = "https://convertall.bellz.org";
description = "Graphical unit converter";
mainProgram = "convertall";
license = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [ orivej ];
platforms = lib.platforms.linux;
};
}

View File

@@ -0,0 +1,792 @@
{
"packages": {
"archive": {
"dependency": "transitive",
"description": {
"name": "archive",
"sha256": "a7f37ff061d7abc2fcf213554b9dcaca713c5853afa5c065c44888bc9ccaf813",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "4.0.6"
},
"args": {
"dependency": "transitive",
"description": {
"name": "args",
"sha256": "d0481093c50b1da8910eb0bb301626d4d8eb7284aa739614d2b394ee09e3ea04",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "2.7.0"
},
"async": {
"dependency": "direct main",
"description": {
"name": "async",
"sha256": "d2872f9c19731c2e5f10444b14686eb7cc85c76274bd6c16e1816bff9a3bab63",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "2.12.0"
},
"boolean_selector": {
"dependency": "transitive",
"description": {
"name": "boolean_selector",
"sha256": "8aab1771e1243a5063b8b0ff68042d67334e3feab9e95b9490f9a6ebf73b42ea",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "2.1.2"
},
"characters": {
"dependency": "transitive",
"description": {
"name": "characters",
"sha256": "f71061c654a3380576a52b451dd5532377954cf9dbd272a78fc8479606670803",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "1.4.0"
},
"checked_yaml": {
"dependency": "transitive",
"description": {
"name": "checked_yaml",
"sha256": "feb6bed21949061731a7a75fc5d2aa727cf160b91af9a3e464c5e3a32e28b5ff",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "2.0.3"
},
"cli_util": {
"dependency": "transitive",
"description": {
"name": "cli_util",
"sha256": "ff6785f7e9e3c38ac98b2fb035701789de90154024a75b6cb926445e83197d1c",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "0.4.2"
},
"clock": {
"dependency": "transitive",
"description": {
"name": "clock",
"sha256": "fddb70d9b5277016c77a80201021d40a2247104d9f4aa7bab7157b7e3f05b84b",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "1.1.2"
},
"collection": {
"dependency": "transitive",
"description": {
"name": "collection",
"sha256": "2f5709ae4d3d59dd8f7cd309b4e023046b57d8a6c82130785d2b0e5868084e76",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "1.19.1"
},
"crypto": {
"dependency": "transitive",
"description": {
"name": "crypto",
"sha256": "1e445881f28f22d6140f181e07737b22f1e099a5e1ff94b0af2f9e4a463f4855",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "3.0.6"
},
"cupertino_icons": {
"dependency": "transitive",
"description": {
"name": "cupertino_icons",
"sha256": "ba631d1c7f7bef6b729a622b7b752645a2d076dba9976925b8f25725a30e1ee6",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "1.0.8"
},
"decimal": {
"dependency": "direct main",
"description": {
"name": "decimal",
"sha256": "24a261d5d5c87e86c7651c417a5dbdf8bcd7080dd592533910e8d0505a279f21",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "2.3.3"
},
"eval_ex": {
"dependency": "direct main",
"description": {
"name": "eval_ex",
"sha256": "3f8853d996ee41955f2232ad3730e95698fb1040d03f6ebc6ab01f1c2bc3be53",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "1.1.8"
},
"fake_async": {
"dependency": "transitive",
"description": {
"name": "fake_async",
"sha256": "6a95e56b2449df2273fd8c45a662d6947ce1ebb7aafe80e550a3f68297f3cacc",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "1.3.2"
},
"ffi": {
"dependency": "transitive",
"description": {
"name": "ffi",
"sha256": "289279317b4b16eb2bb7e271abccd4bf84ec9bdcbe999e278a94b804f5630418",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "2.1.4"
},
"file": {
"dependency": "transitive",
"description": {
"name": "file",
"sha256": "a3b4f84adafef897088c160faf7dfffb7696046cb13ae90b508c2cbc95d3b8d4",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "7.0.1"
},
"flutter": {
"dependency": "direct main",
"description": "flutter",
"source": "sdk",
"version": "0.0.0"
},
"flutter_launcher_icons": {
"dependency": "direct dev",
"description": {
"name": "flutter_launcher_icons",
"sha256": "bfa04787c85d80ecb3f8777bde5fc10c3de809240c48fa061a2c2bf15ea5211c",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "0.14.3"
},
"flutter_lints": {
"dependency": "direct dev",
"description": {
"name": "flutter_lints",
"sha256": "9e8c3858111da373efc5aa341de011d9bd23e2c5c5e0c62bccf32438e192d7b1",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "3.0.2"
},
"flutter_markdown_selectionarea": {
"dependency": "direct main",
"description": {
"name": "flutter_markdown_selectionarea",
"sha256": "d4bc27e70a5c40ebdab23a4b81f75d53696a214d4d1f13c12045b38a0ddc58a2",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "0.6.17+1"
},
"flutter_spinbox": {
"dependency": "direct main",
"description": {
"name": "flutter_spinbox",
"sha256": "38d8c1a3a39f0fa72823d4470785f5e165f2deb53531ca7803b54ba45e4dbd46",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "0.13.1"
},
"flutter_test": {
"dependency": "direct dev",
"description": "flutter",
"source": "sdk",
"version": "0.0.0"
},
"flutter_web_plugins": {
"dependency": "transitive",
"description": "flutter",
"source": "sdk",
"version": "0.0.0"
},
"http": {
"dependency": "transitive",
"description": {
"name": "http",
"sha256": "fe7ab022b76f3034adc518fb6ea04a82387620e19977665ea18d30a1cf43442f",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "1.3.0"
},
"http_parser": {
"dependency": "transitive",
"description": {
"name": "http_parser",
"sha256": "178d74305e7866013777bab2c3d8726205dc5a4dd935297175b19a23a2e66571",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "4.1.2"
},
"image": {
"dependency": "transitive",
"description": {
"name": "image",
"sha256": "4e973fcf4caae1a4be2fa0a13157aa38a8f9cb049db6529aa00b4d71abc4d928",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "4.5.4"
},
"json_annotation": {
"dependency": "transitive",
"description": {
"name": "json_annotation",
"sha256": "1ce844379ca14835a50d2f019a3099f419082cfdd231cd86a142af94dd5c6bb1",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "4.9.0"
},
"leak_tracker": {
"dependency": "transitive",
"description": {
"name": "leak_tracker",
"sha256": "c35baad643ba394b40aac41080300150a4f08fd0fd6a10378f8f7c6bc161acec",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "10.0.8"
},
"leak_tracker_flutter_testing": {
"dependency": "transitive",
"description": {
"name": "leak_tracker_flutter_testing",
"sha256": "f8b613e7e6a13ec79cfdc0e97638fddb3ab848452eff057653abd3edba760573",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "3.0.9"
},
"leak_tracker_testing": {
"dependency": "transitive",
"description": {
"name": "leak_tracker_testing",
"sha256": "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "3.0.1"
},
"lints": {
"dependency": "transitive",
"description": {
"name": "lints",
"sha256": "cbf8d4b858bb0134ef3ef87841abdf8d63bfc255c266b7bf6b39daa1085c4290",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "3.0.0"
},
"markdown": {
"dependency": "transitive",
"description": {
"name": "markdown",
"sha256": "935e23e1ff3bc02d390bad4d4be001208ee92cc217cb5b5a6c19bc14aaa318c1",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "7.3.0"
},
"matcher": {
"dependency": "transitive",
"description": {
"name": "matcher",
"sha256": "dc58c723c3c24bf8d3e2d3ad3f2f9d7bd9cf43ec6feaa64181775e60190153f2",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "0.12.17"
},
"material_color_utilities": {
"dependency": "transitive",
"description": {
"name": "material_color_utilities",
"sha256": "f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "0.11.1"
},
"meta": {
"dependency": "transitive",
"description": {
"name": "meta",
"sha256": "e3641ec5d63ebf0d9b41bd43201a66e3fc79a65db5f61fc181f04cd27aab950c",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "1.16.0"
},
"nested": {
"dependency": "transitive",
"description": {
"name": "nested",
"sha256": "03bac4c528c64c95c722ec99280375a6f2fc708eec17c7b3f07253b626cd2a20",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "1.0.0"
},
"package_info_plus": {
"dependency": "direct main",
"description": {
"name": "package_info_plus",
"sha256": "cb44f49b6e690fa766f023d5b22cac6b9affe741dd792b6ac7ad4fabe0d7b097",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "6.0.0"
},
"package_info_plus_platform_interface": {
"dependency": "transitive",
"description": {
"name": "package_info_plus_platform_interface",
"sha256": "9bc8ba46813a4cc42c66ab781470711781940780fd8beddd0c3da62506d3a6c6",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "2.0.1"
},
"path": {
"dependency": "transitive",
"description": {
"name": "path",
"sha256": "75cca69d1490965be98c73ceaea117e8a04dd21217b37b292c9ddbec0d955bc5",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "1.9.1"
},
"path_provider_linux": {
"dependency": "transitive",
"description": {
"name": "path_provider_linux",
"sha256": "f7a1fe3a634fe7734c8d3f2766ad746ae2a2884abe22e241a8b301bf5cac3279",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "2.2.1"
},
"path_provider_platform_interface": {
"dependency": "transitive",
"description": {
"name": "path_provider_platform_interface",
"sha256": "88f5779f72ba699763fa3a3b06aa4bf6de76c8e5de842cf6f29e2e06476c2334",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "2.1.2"
},
"path_provider_windows": {
"dependency": "transitive",
"description": {
"name": "path_provider_windows",
"sha256": "bd6f00dbd873bfb70d0761682da2b3a2c2fccc2b9e84c495821639601d81afe7",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "2.3.0"
},
"petitparser": {
"dependency": "transitive",
"description": {
"name": "petitparser",
"sha256": "07c8f0b1913bcde1ff0d26e57ace2f3012ccbf2b204e070290dad3bb22797646",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "6.1.0"
},
"platform": {
"dependency": "transitive",
"description": {
"name": "platform",
"sha256": "5d6b1b0036a5f331ebc77c850ebc8506cbc1e9416c27e59b439f917a902a4984",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "3.1.6"
},
"plugin_platform_interface": {
"dependency": "transitive",
"description": {
"name": "plugin_platform_interface",
"sha256": "4820fbfdb9478b1ebae27888254d445073732dae3d6ea81f0b7e06d5dedc3f02",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "2.1.8"
},
"posix": {
"dependency": "transitive",
"description": {
"name": "posix",
"sha256": "f0d7856b6ca1887cfa6d1d394056a296ae33489db914e365e2044fdada449e62",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "6.0.2"
},
"provider": {
"dependency": "direct main",
"description": {
"name": "provider",
"sha256": "489024f942069c2920c844ee18bb3d467c69e48955a4f32d1677f71be103e310",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "6.1.4"
},
"rational": {
"dependency": "transitive",
"description": {
"name": "rational",
"sha256": "cb808fb6f1a839e6fc5f7d8cb3b0a10e1db48b3be102de73938c627f0b636336",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "2.2.3"
},
"screen_retriever": {
"dependency": "transitive",
"description": {
"name": "screen_retriever",
"sha256": "6ee02c8a1158e6dae7ca430da79436e3b1c9563c8cf02f524af997c201ac2b90",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "0.1.9"
},
"shared_preferences": {
"dependency": "direct main",
"description": {
"name": "shared_preferences",
"sha256": "6e8bf70b7fef813df4e9a36f658ac46d107db4b4cfe1048b477d4e453a8159f5",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "2.5.3"
},
"shared_preferences_android": {
"dependency": "transitive",
"description": {
"name": "shared_preferences_android",
"sha256": "20cbd561f743a342c76c151d6ddb93a9ce6005751e7aa458baad3858bfbfb6ac",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "2.4.10"
},
"shared_preferences_foundation": {
"dependency": "transitive",
"description": {
"name": "shared_preferences_foundation",
"sha256": "6a52cfcdaeac77cad8c97b539ff688ccfc458c007b4db12be584fbe5c0e49e03",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "2.5.4"
},
"shared_preferences_linux": {
"dependency": "transitive",
"description": {
"name": "shared_preferences_linux",
"sha256": "580abfd40f415611503cae30adf626e6656dfb2f0cee8f465ece7b6defb40f2f",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "2.4.1"
},
"shared_preferences_platform_interface": {
"dependency": "transitive",
"description": {
"name": "shared_preferences_platform_interface",
"sha256": "57cbf196c486bc2cf1f02b85784932c6094376284b3ad5779d1b1c6c6a816b80",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "2.4.1"
},
"shared_preferences_web": {
"dependency": "transitive",
"description": {
"name": "shared_preferences_web",
"sha256": "c49bd060261c9a3f0ff445892695d6212ff603ef3115edbb448509d407600019",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "2.4.3"
},
"shared_preferences_windows": {
"dependency": "transitive",
"description": {
"name": "shared_preferences_windows",
"sha256": "94ef0f72b2d71bc3e700e025db3710911bd51a71cefb65cc609dd0d9a982e3c1",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "2.4.1"
},
"sky_engine": {
"dependency": "transitive",
"description": "flutter",
"source": "sdk",
"version": "0.0.0"
},
"source_span": {
"dependency": "transitive",
"description": {
"name": "source_span",
"sha256": "254ee5351d6cb365c859e20ee823c3bb479bf4a293c22d17a9f1bf144ce86f7c",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "1.10.1"
},
"stack_trace": {
"dependency": "transitive",
"description": {
"name": "stack_trace",
"sha256": "8b27215b45d22309b5cddda1aa2b19bdfec9df0e765f2de506401c071d38d1b1",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "1.12.1"
},
"stream_channel": {
"dependency": "transitive",
"description": {
"name": "stream_channel",
"sha256": "969e04c80b8bcdf826f8f16579c7b14d780458bd97f56d107d3950fdbeef059d",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "2.1.4"
},
"string_scanner": {
"dependency": "transitive",
"description": {
"name": "string_scanner",
"sha256": "921cd31725b72fe181906c6a94d987c78e3b98c2e205b397ea399d4054872b43",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "1.4.1"
},
"term_glyph": {
"dependency": "transitive",
"description": {
"name": "term_glyph",
"sha256": "7f554798625ea768a7518313e58f83891c7f5024f88e46e7182a4558850a4b8e",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "1.2.2"
},
"test_api": {
"dependency": "transitive",
"description": {
"name": "test_api",
"sha256": "fb31f383e2ee25fbbfe06b40fe21e1e458d14080e3c67e7ba0acfde4df4e0bbd",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "0.7.4"
},
"typed_data": {
"dependency": "transitive",
"description": {
"name": "typed_data",
"sha256": "f9049c039ebfeb4cf7a7104a675823cd72dba8297f264b6637062516699fa006",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "1.4.0"
},
"url_launcher": {
"dependency": "direct main",
"description": {
"name": "url_launcher",
"sha256": "9d06212b1362abc2f0f0d78e6f09f726608c74e3b9462e8368bb03314aa8d603",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "6.3.1"
},
"url_launcher_android": {
"dependency": "transitive",
"description": {
"name": "url_launcher_android",
"sha256": "8582d7f6fe14d2652b4c45c9b6c14c0b678c2af2d083a11b604caeba51930d79",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "6.3.16"
},
"url_launcher_ios": {
"dependency": "transitive",
"description": {
"name": "url_launcher_ios",
"sha256": "7f2022359d4c099eea7df3fdf739f7d3d3b9faf3166fb1dd390775176e0b76cb",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "6.3.3"
},
"url_launcher_linux": {
"dependency": "transitive",
"description": {
"name": "url_launcher_linux",
"sha256": "4e9ba368772369e3e08f231d2301b4ef72b9ff87c31192ef471b380ef29a4935",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "3.2.1"
},
"url_launcher_macos": {
"dependency": "transitive",
"description": {
"name": "url_launcher_macos",
"sha256": "17ba2000b847f334f16626a574c702b196723af2a289e7a93ffcb79acff855c2",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "3.2.2"
},
"url_launcher_platform_interface": {
"dependency": "transitive",
"description": {
"name": "url_launcher_platform_interface",
"sha256": "552f8a1e663569be95a8190206a38187b531910283c3e982193e4f2733f01029",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "2.3.2"
},
"url_launcher_web": {
"dependency": "transitive",
"description": {
"name": "url_launcher_web",
"sha256": "3ba963161bd0fe395917ba881d320b9c4f6dd3c4a233da62ab18a5025c85f1e9",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "2.4.0"
},
"url_launcher_windows": {
"dependency": "transitive",
"description": {
"name": "url_launcher_windows",
"sha256": "3284b6d2ac454cf34f114e1d3319866fdd1e19cdc329999057e44ffe936cfa77",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "3.1.4"
},
"vector_math": {
"dependency": "transitive",
"description": {
"name": "vector_math",
"sha256": "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "2.1.4"
},
"vm_service": {
"dependency": "transitive",
"description": {
"name": "vm_service",
"sha256": "0968250880a6c5fe7edc067ed0a13d4bae1577fe2771dcf3010d52c4a9d3ca14",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "14.3.1"
},
"web": {
"dependency": "transitive",
"description": {
"name": "web",
"sha256": "97da13628db363c635202ad97068d47c5b8aa555808e7a9411963c533b449b27",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "0.5.1"
},
"win32": {
"dependency": "transitive",
"description": {
"name": "win32",
"sha256": "dc6ecaa00a7c708e5b4d10ee7bec8c270e9276dfcab1783f57e9962d7884305f",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "5.12.0"
},
"window_manager": {
"dependency": "direct main",
"description": {
"name": "window_manager",
"sha256": "8699323b30da4cdbe2aa2e7c9de567a6abd8a97d9a5c850a3c86dcd0b34bbfbf",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "0.3.9"
},
"xdg_directories": {
"dependency": "transitive",
"description": {
"name": "xdg_directories",
"sha256": "7a3f37b05d989967cdddcbb571f1ea834867ae2faa29725fd085180e0883aa15",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "1.1.0"
},
"xml": {
"dependency": "transitive",
"description": {
"name": "xml",
"sha256": "b015a8ad1c488f66851d762d3090a21c600e479dc75e68328c52774040cf9226",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "6.5.0"
},
"yaml": {
"dependency": "transitive",
"description": {
"name": "yaml",
"sha256": "b9da305ac7c39faa3f030eccd175340f968459dae4af175130b3fc47e40d76ce",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "3.1.3"
}
},
"sdks": {
"dart": ">=3.7.0 <4.0.0",
"flutter": ">=3.27.0"
}
}

View File

@@ -0,0 +1,89 @@
{
lib,
stdenv,
fetchFromGitHub,
fetchpatch,
cmake,
doxygen,
graphviz,
boost,
cgal,
gdal,
glew,
gmp,
libGL,
libGLU,
libSM,
mpfr,
proj,
python3,
qtxmlpatterns,
qwt,
wrapQtAppsHook,
}:
let
python = python3.withPackages (
ps: with ps; [
numpy
]
);
boost' = boost.override {
enablePython = true;
inherit python;
};
cgal' = cgal.override {
boost = boost';
};
in
stdenv.mkDerivation (finalAttrs: {
pname = "gplates";
version = "2.5";
src = fetchFromGitHub {
owner = "GPlates";
repo = "GPlates";
rev = "GPlates-${finalAttrs.version}";
hash = "sha256-3fEwm5EKK9RcRbnyUejgwfjdsXaujjZjoMbq/BbVMeM=";
};
patches = [
(fetchpatch {
name = "qwt-6.3-compile-error-fix.patch";
url = "https://github.com/GPlates/GPlates/commit/c4680ebe54f4535909085feacecd66410a91ff98.patch";
hash = "sha256-mw5+GLayMrmcSDd1ai+0JTuY3iedHT9u2kx5Dd2wMjg=";
})
];
nativeBuildInputs = [
cmake
doxygen
graphviz
wrapQtAppsHook
];
buildInputs = [
boost'
cgal'
gdal
glew
gmp
libGL
libGLU
libSM
mpfr
proj
python
qtxmlpatterns
qwt
];
meta = with lib; {
description = "Desktop software for the interactive visualisation of plate-tectonics";
mainProgram = "gplates";
homepage = "https://www.gplates.org";
license = licenses.gpl2Only;
platforms = platforms.all;
broken = stdenv.hostPlatform.isDarwin; # FIX: this check: https://github.com/GPlates/GPlates/blob/gplates/cmake/modules/Config_h.cmake#L72
};
})

View File

@@ -0,0 +1,49 @@
{
stdenv,
lib,
cmake,
git,
fetchFromGitHub,
wrapQtAppsHook,
qtbase,
qtdeclarative,
qtsvg,
qtwebengine,
}:
stdenv.mkDerivation rec {
pname = "graphia";
version = "5.2";
src = fetchFromGitHub {
owner = "graphia-app";
repo = "graphia";
rev = version;
sha256 = "sha256-tS5oqpwpqvWGu67s8OuA4uQR3Zb5VzHTY/GnfVQki6k=";
};
nativeBuildInputs = [
cmake
git # needs to define some hash as a version
wrapQtAppsHook
];
buildInputs = [
qtbase
qtdeclarative
qtsvg
qtwebengine
];
meta = with lib; {
# never built on Hydra https://hydra.nixos.org/job/nixpkgs/trunk/graphia.x86_64-darwin
broken =
(stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) || stdenv.hostPlatform.isDarwin;
description = "Visualisation tool for the creation and analysis of graphs";
homepage = "https://graphia.app";
license = licenses.gpl3Only;
mainProgram = "Graphia";
maintainers = [ maintainers.bgamari ];
platforms = platforms.all;
};
}

View File

@@ -0,0 +1,69 @@
{
lib,
stdenv,
fetchurl,
ocaml,
ncurses,
}:
stdenv.mkDerivation {
pname = "megam";
version = "0.92";
src = fetchurl {
url = "http://hal3.name/megam/megam_src.tgz";
sha256 = "dc0e9f59ff8513449fe3bd40b260141f89c88a4edf6ddc8b8a394c758e49724e";
};
patches = [
./ocaml-includes.patch
./ocaml-3.12.patch
];
postPatch = ''
# Deprecated in ocaml 3.10 https://github.com/ocaml/ocaml/commit/f6190f3d0c49c5220d443ee8d03ca5072d68aa87
# Deprecated in ocaml 3.08 https://github.com/ocaml/ocaml/commit/0c7aecb88dc696f66f49f3bed54a037361a26b8d
substituteInPlace fastdot_c.c --replace copy_double caml_copy_double --replace Bigarray_val Caml_ba_array_val --replace caml_bigarray caml_ba_array
# They were already deprecated in 3.12 https://v2.ocaml.org/releases/3.12/htmlman/libref/Array.html
substituteInPlace abffs.ml main.ml --replace create_matrix make_matrix
substituteInPlace intHashtbl.ml --replace Array.create Array.make
'';
strictDeps = true;
nativeBuildInputs = [ ocaml ];
buildInputs = [ ncurses ];
makeFlags = [
"CAML_INCLUDES=${ocaml}/lib/ocaml/caml"
("WITHBIGARRAY=" + lib.optionalString (lib.versionOlder ocaml.version "4.08.0") "bigarray.cma")
"all"
"opt"
];
# see https://bugzilla.redhat.com/show_bug.cgi?id=435559
dontStrip = true;
installPhase = ''
runHook preInstall
install -Dm755 megam $out/bin/megam
install -Dm755 megam.opt $out/bin/megam.opt
runHook postInstall
'';
meta = with lib; {
description = "MEGA Model Optimization Package";
longDescription = ''
The software here is an implementation of maximum likelihood and maximum a
posterior optimization of the parameters of these models. The algorithms
used are much more efficient than the iterative scaling techniques used in
almost every other maxent package out there.
'';
homepage = "http://www.umiacs.umd.edu/~hal/megam";
license = lib.licenses.unfree;
maintainers = with maintainers; [ leixb ];
platforms = platforms.unix;
};
}

View File

@@ -0,0 +1,12 @@
diff -ru megam_0.92/Makefile megam_0.92-b/Makefile
--- megam_0.92/Makefile 2007-10-08 18:06:04.000000000 +0100
+++ megam_0.92-b/Makefile 2013-11-25 10:14:20.000000000 +0000
@@ -59,7 +59,7 @@
WITHUNIX =unix.cma -cclib -lunix
-WITHSTR =str.cma -cclib -lstr
+WITHSTR =str.cma -cclib -lcamlstr
WITHBIGARRAY =bigarray.cma -cclib -lbigarray

View File

@@ -0,0 +1,21 @@
diff -ru megam_0.92/Makefile megam_0.92-b/Makefile
--- megam_0.92/Makefile 2007-10-08 18:06:04.000000000 +0100
+++ megam_0.92-b/Makefile 2013-11-25 10:14:20.000000000 +0000
@@ -41,7 +41,7 @@
#
# The Caml compilers. #
# You may fix here the path to access the Caml compiler on your machine
-CAMLC = ocamlc -g
+CAMLC = ocamlc -g $(WITHCLIBS)
CAMLOPT = ocamlopt -unsafe -ccopt -O4 -ccopt -ffast-math -inline 99999
CAMLDEP = ocamldep
CAMLLEX = ocamllex
@@ -70,7 +70,7 @@
WITHDBM =dbm.cma -cclib -lmldbm -cclib -lndbm
#WITHCLIBS =-I /usr/lib/ocaml/3.09.2/caml
-WITHCLIBS =-I /usr/lib/ocaml/caml
+WITHCLIBS =-I $(CAML_INCLUDES) -I +unix -I +str
################ End of user's variables #####################

View File

@@ -0,0 +1,52 @@
{
stdenv,
lib,
openmodelica,
symlinkJoin,
gnumake,
blas,
lapack,
makeWrapper,
}:
symlinkJoin {
name = "openmodelica-combined";
paths = with openmodelica; [
omcompiler
omsimulator
omplot
omparser
omedit
omlibrary
omshell
];
nativeBuildInputs = [ makeWrapper ];
postBuild = ''
wrapProgram $out/bin/OMEdit \
--prefix PATH : ${
lib.makeBinPath [
gnumake
stdenv.cc
]
} \
--prefix LIBRARY_PATH : "${
lib.makeLibraryPath [
blas
lapack
]
}" \
--set-default OPENMODELICALIBRARY "${openmodelica.omlibrary}/lib/omlibrary"
'';
meta = with lib; {
description = "Open-source Modelica-based modeling and simulation environment intended for industrial and academic usage";
homepage = "https://openmodelica.org";
license = licenses.gpl3Only;
maintainers = with maintainers; [
balodja
smironov
];
platforms = platforms.linux;
};
}

View File

@@ -0,0 +1,24 @@
{
lib,
newScope,
libsForQt5,
clangStdenv,
}:
lib.makeScope newScope (
self:
let
callPackage = self.newScope { stdenv = clangStdenv; };
callQtPackage = self.newScope (libsForQt5 // { stdenv = clangStdenv; });
in
{
mkOpenModelicaDerivation = callPackage ./mkderivation { };
omcompiler = callPackage ./omcompiler { };
omplot = callQtPackage ./omplot { };
omsimulator = callPackage ./omsimulator { };
omparser = callPackage ./omparser { };
omedit = callQtPackage ./omedit { };
omlibrary = callPackage ./omlibrary { };
omshell = callQtPackage ./omshell { };
combined = callPackage ./combined { };
}
)

View File

@@ -0,0 +1,132 @@
# mkOpenModelicaDerivation is an mkDerivation function for packages
# from OpenModelica suite.
{
stdenv,
lib,
fetchgit,
autoconf,
automake,
libtool,
cmake,
autoreconfHook,
symlinkJoin,
}:
pkg:
let
inherit (builtins)
hasAttr
getAttr
length
elemAt
;
inherit (lib) attrByPath concatStringsSep;
# A few helpers functions:
# getAttrDef is just a getAttr with default fallback
getAttrDef =
attr: default: x:
attrByPath [ attr ] default x;
# getAttr-like helper for optional append to string:
# "Hello" + appendByAttr "a" " " {a = "world";} = "Hello world"
# "Hello" + appendByAttr "a" " " {} = "Hello"
appendByAttr =
attr: sep: x:
lib.optionalString (hasAttr attr x) (sep + (getAttr attr x));
# Are there any OM dependencies at all?
ifDeps = length pkg.omdeps != 0;
# Dependencies of current OpenModelica-target joined in one file tree.
# Return the dep itself in case it is a single one.
joinedDeps =
if length pkg.omdeps == 1 then
elemAt pkg.omdeps 0
else
symlinkJoin {
name = pkg.pname + "-omhome";
paths = pkg.omdeps;
};
# Should we run ./configure for the target pkg?
omautoconf = getAttrDef "omautoconf" false pkg;
# Name of the make target
omtarget = getAttrDef "omtarget" pkg.pname pkg;
# Directory of target sources
omdir = getAttrDef "omdir" pkg.pname pkg;
# Simple to to m4 configuration scripts
postPatch =
lib.optionalString ifDeps ''
sed -i ''$(find -name omhome.m4) -e 's|if test ! -z "$USINGPRESETBUILDDIR"|if test ! -z "$USINGPRESETBUILDDIR" -a -z "$OMHOME"|'
''
+ appendByAttr "postPatch" "\n" pkg;
# Update shebangs in the scripts before running configuration.
preAutoreconf = "patchShebangs --build common" + appendByAttr "preAutoreconf" "\n" pkg;
# Tell OpenModelica where built dependencies are located.
configureFlags =
lib.optional ifDeps "--with-openmodelicahome=${joinedDeps}" ++ getAttrDef "configureFlags" [ ] pkg;
# Our own configurePhase that accounts for omautoconf
configurePhase = ''
runHook preConfigure
export configureFlags="''${configureFlags} --with-ombuilddir=$PWD/build --prefix=$prefix"
./configure --no-recursion $configureFlags
${lib.optionalString omautoconf "(cd ${omdir}; ./configure $configureFlags)"}
runHook postConfigure
'';
# Targets that we want to build ourselves:
deptargets = lib.forEach pkg.omdeps (dep: dep.omtarget);
# ... so we ask openmodelica makefile to skip those targets.
preBuild = ''
for target in ${concatStringsSep " " deptargets}; do
touch ''${target}.skip;
done
''
+ appendByAttr "preBuild" "\n" pkg;
makeFlags = "${omtarget}" + appendByAttr "makeFlags" " " pkg;
installFlags = "-i " + appendByAttr "installFlags" " " pkg;
in
stdenv.mkDerivation (
pkg
// {
inherit
omtarget
postPatch
preAutoreconf
configureFlags
configurePhase
preBuild
makeFlags
installFlags
;
src = fetchgit (import ./src-main.nix);
version = "1.18.0";
nativeBuildInputs = getAttrDef "nativeBuildInputs" [ ] pkg ++ [
autoconf
automake
libtool
cmake
autoreconfHook
];
buildInputs = getAttrDef "buildInputs" [ ] pkg ++ lib.optional ifDeps joinedDeps;
dontUseCmakeConfigure = true;
hardeningDisable = [ "format" ];
}
)

View File

@@ -0,0 +1,7 @@
{
url = "https://github.com/OpenModelica/OpenModelica/";
rev = "49be4faa5a625a18efbbd74cc2f5be86aeea37bb";
sha256 = "0klqiy4sdizl1djb9hb0arcvfcjz2mmnakrjx81mmxcbr8yq2016";
fetchSubmodules = true;
}
# Update with: nix run -f ./nixpkgs/default.nix nix-prefetch-git -c nix-prefetch-git 'https://github.com/OpenModelica/OpenModelica/' 'v1.18.0' --fetch-submodules

View File

@@ -0,0 +1,85 @@
{
stdenv,
lib,
gfortran,
flex,
bison,
jre8,
blas,
lapack,
curl,
readline,
expat,
pkg-config,
buildPackages,
targetPackages,
libffi,
binutils,
mkOpenModelicaDerivation,
}:
let
isCross = stdenv.buildPlatform != stdenv.hostPlatform;
nativeOMCompiler = buildPackages.openmodelica.omcompiler;
in
mkOpenModelicaDerivation (
{
pname = "omcompiler";
omtarget = "omc";
omdir = "OMCompiler";
omdeps = [ ];
omautoconf = true;
nativeBuildInputs = [
jre8
gfortran
flex
bison
pkg-config
]
++ lib.optional isCross nativeOMCompiler;
buildInputs = [
targetPackages.stdenv.cc.cc
blas
lapack
curl
readline
expat
libffi
binutils
];
postPatch = ''
sed -i -e '/^\s*AR=ar$/ s/ar/${stdenv.cc.targetPrefix}ar/
/^\s*ar / s/ar /${stdenv.cc.targetPrefix}ar /
/^\s*ranlib/ s/ranlib /${stdenv.cc.targetPrefix}ranlib /' \
$(find ./OMCompiler -name 'Makefile*')
'';
env.CFLAGS = toString [
"-Wno-error=dynamic-exception-spec"
"-Wno-error=implicit-function-declaration"
];
preFixup = ''
for entry in $(find $out -name libipopt.so); do
patchelf --shrink-rpath --allowed-rpath-prefixes "$NIX_STORE" "$entry"
patchelf --set-rpath '$ORIGIN':"$(patchelf --print-rpath $entry)" "$entry"
done
'';
meta = with lib; {
description = "Modelica compiler from OpenModelica suite";
homepage = "https://openmodelica.org";
license = licenses.gpl3Only;
maintainers = with maintainers; [
balodja
smironov
];
platforms = platforms.linux;
};
}
// lib.optionalAttrs isCross {
configureFlags = [ "--with-omc=${nativeOMCompiler}/bin/omc" ];
}
)

View File

@@ -0,0 +1,59 @@
{
lib,
jre8,
qmake,
qtbase,
qttools,
qtwebkit,
qtxmlpatterns,
binutils,
wrapQtAppsHook,
openmodelica,
openscenegraph,
mkOpenModelicaDerivation,
}:
with openmodelica;
mkOpenModelicaDerivation {
pname = "omedit";
omdir = "OMEdit";
omdeps = [
omcompiler
omplot
omparser
omsimulator
];
omautoconf = true;
nativeBuildInputs = [
jre8
qmake
qtbase
qttools
wrapQtAppsHook
];
buildInputs = [
qtwebkit
openscenegraph
qtxmlpatterns
binutils
];
postPatch = ''
sed -i ''$(find -name qmake.m4) -e '/^\s*LRELEASE=/ s|LRELEASE=.*$|LRELEASE=${lib.getDev qttools}/bin/lrelease|'
'';
dontUseQmakeConfigure = true;
QMAKESPEC = "linux-clang";
meta = with lib; {
description = "Modelica connection editor for OpenModelica";
homepage = "https://openmodelica.org";
license = licenses.gpl3Only;
maintainers = with maintainers; [
balodja
smironov
];
platforms = platforms.linux;
};
}

View File

@@ -0,0 +1,45 @@
{
lib,
stdenv,
fetchgit,
bash,
openmodelica,
mkOpenModelicaDerivation,
}:
let
fakegit = import ./fakegit.nix {
inherit
lib
stdenv
fetchgit
bash
;
};
in
mkOpenModelicaDerivation {
pname = "omlibrary";
omdir = "libraries";
omtarget = "omlibrary-all";
omdeps = [ openmodelica.omcompiler ];
postPatch = ''
patchShebangs --build libraries
cp -fv ${fakegit}/bin/checkout-git.sh libraries/checkout-git.sh
# The EMOTH library is broken in OpenModelica 1.17.0
# Let's remove it from targets.
sed -i -e '/^OTHER_LIBS=/ s/EMOTH //' libraries/Makefile.libs
'';
meta = with lib; {
description = "Collection of Modelica libraries to use with OpenModelica,
including Modelica Standard Library";
homepage = "https://openmodelica.org";
license = licenses.gpl3Only;
maintainers = with maintainers; [
balodja
smironov
];
platforms = platforms.linux;
};
}

View File

@@ -0,0 +1,55 @@
{
lib,
stdenv,
fetchgit,
bash,
}:
let
mkscript = path: text: ''
mkdir -pv `dirname ${path}`
cat > ${path} <<"EOF"
#!${bash}/bin/bash
ME=$(basename ${path})
${text}
EOF
sed -i "s@%out@$out@g" ${path}
chmod +x ${path}
'';
hashname =
r:
let
rpl = lib.replaceStrings [ ":" "/" ] [ "_" "_" ];
in
(rpl r.url) + "-" + (rpl r.rev);
in
stdenv.mkDerivation {
name = "fakegit";
buildCommand = ''
mkdir -pv $out/repos
${lib.concatMapStrings (
r: "cp -r ${fetchgit r} $out/repos/${hashname r}\n"
) (import ./src-libs.nix)}
${mkscript "$out/bin/checkout-git.sh" ''
if test "$#" -ne 4; then
echo "Usage: $0 DESTINATION URL GITBRANCH HASH"
exit 1
fi
DEST=$1
URL=`echo $2 | tr :/ __`
GITBRANCH=$3
REVISION=$4
REVISION=`echo $REVISION | tr :/ __`
rm -rf $DEST
mkdir -pv $DEST
echo "FAKEGIT cp -r %out/repos/$URL-$REVISION $DEST" >&2
cp -r %out/repos/$URL-$REVISION/* $DEST
chmod u+w -R $DEST
''}
'';
}

View File

@@ -0,0 +1,476 @@
[
{
url = "https://github.com/modelica-3rdparty/AdvancedNoise.git";
rev = "5ce57acd279dadd0d25b76a6b02d3f9e9d061246";
sha256 = "07jjbj0y6bak269md3xniqb5lgc33m92ar5qixqxj5yxdjaahfs2";
fetchSubmodules = true;
}
{
url = "https://github.com/RWTH-EBC/AixLib.git";
rev = "65e49ddf5c935846888a61aa303e52c909619079";
sha256 = "18xn8j3x3j4x9bpjgqnq0b6p3yzzsg5n62fv1ldqbbjcmi0vimd5";
fetchSubmodules = true;
}
{
url = "https://github.com/RWTH-EBC/AixLib.git";
rev = "v0.4.0";
sha256 = "0dw34mjq29n55xh51g1c9a9d0d8gbpn16gj309dfxn4v2hbnfvzx";
fetchSubmodules = true;
}
{
url = "https://github.com/modelica-3rdparty/AlgebraTestSuite.git";
rev = "b937e1a7f447138c59abec9b2092f84f16bf02e8";
sha256 = "0406inasx61dk7vcnziiyhxkna7g61a5hn0znnbxj817hz6q11zn";
fetchSubmodules = true;
}
{
url = "https://github.com/modelica-3rdparty/ApproxSpline.git";
rev = "28420f5c1a88c9cd069defbd8c05e4a78a090675";
sha256 = "07gpyi2brj5zpvrlsnflqjnhbrgxvpqbdshp8lp4lh9mnj5jv95d";
fetchSubmodules = true;
}
{
url = "https://github.com/OpenModelica/BioChem.git";
rev = "v1.0.2";
sha256 = "037bvj2lqrslg8k5r0rjgdzccslj9bj25b55k4g440vabm5p05qm";
fetchSubmodules = true;
}
{
url = "https://github.com/modelica-3rdparty/BondGraph.git";
rev = "20c23e60d12989bd4668ccac47659d82d39d29cc";
sha256 = "0yrkk708v4bvf423xb4zgpmnaj8qhq5primdg758ayddgli23wa9";
fetchSubmodules = true;
}
{
url = "https://github.com/modelica-3rdparty/BrineProp.git";
rev = "834fb3519ca8f89efe268582d39d00a7c3991150";
sha256 = "1iwqh4kr36wgxc0gci63gdgbqln2sap1w4bkydk1vkss2s302lg4";
fetchSubmodules = true;
}
{
url = "https://github.com/EDF-TREE/BuildSysPro.git";
rev = "v3.3.0";
sha256 = "1cvcany3q9p1xndarxa2d8mmqxdnqk22476q8l61nayz5qy25x61";
fetchSubmodules = true;
}
{
url = "https://github.com/modelica-3rdparty/BuildingControlLib.git";
rev = "v1.0.0";
sha256 = "0ckdxway0m755mbrl94k4458sijzgknlzsrf7xs5bjymxchm8r2m";
fetchSubmodules = true;
}
{
url = "https://github.com/modelica-3rdparty/BuildingSystems.git";
rev = "c3070d48015ee75c1577f349cb388a498bef7270";
sha256 = "0r876wm6f1xx4cli1lqlylpl3zgaddmy06hcafbnzry9j38vbz4y";
fetchSubmodules = true;
}
{
url = "https://github.com/lbl-srg/modelica-buildings.git";
rev = "v6.0.0";
sha256 = "0rnnk1clji0myzr7adggki6knbl6v8381vwnqgiz8mkxbmzdwm4f";
fetchSubmodules = true;
}
{
url = "https://github.com/lbl-srg/modelica-buildings.git";
rev = "v7.0.0";
sha256 = "04n04pp4zvyg8n8h7h79c3wyk7lmn940mh7qzs0lv76g1ybypnlz";
fetchSubmodules = true;
}
{
url = "https://github.com/modelica-3rdparty/Chemical.git";
rev = "5645573fced862430b7b598b4d7ec1a39c7aa0fa";
sha256 = "1kh7kpmjfz55pb8553srlnrh8l00nw21xf5mjzh7nx9b1rndnmyg";
fetchSubmodules = true;
}
{
url = "https://github.com/modelica-3rdparty/DeployStructLib.git";
rev = "v1.0";
sha256 = "1k4zw9lnd0javw4zigxc15l58yf7xdz36b7808g65qxy89w6ksr2";
fetchSubmodules = true;
}
{
url = "https://github.com/modelica-3rdparty/DisHeatLib.git";
rev = "b11f53379c122870a52f2da9b1705d2c911cd21d";
sha256 = "1vm96a4z0b40r0nisxrrzyvan4yphjdkx4ad655phva2636xb5rr";
fetchSubmodules = true;
}
{
url = "https://github.com/AHaumer/DriveControl.git";
rev = "b7233fd97a92867bb4ec2c3647c7f7e888398644";
sha256 = "0nyp1n8wrkjzfypsmjjzac0g9p4wbc1cxxr040fj20bqdg9l3h1b";
fetchSubmodules = true;
}
{
url = "https://github.com/christiankral/ElectroMechanicalDrives.git";
rev = "v2.2.0";
sha256 = "0012phmn1y9fgpph45lwbjk0yhm5czidf2z6khm8lddvk93wf31b";
fetchSubmodules = true;
}
{
url = "https://github.com/modelica-3rdparty/ExternData.git";
rev = "v2.5.0";
sha256 = "19dsyq1mk5vl54fqaffzqafm5w94l011cy7pg16c7i933dbqnkki";
fetchSubmodules = true;
}
{
url = "https://github.com/modelica/ExternalMedia.git";
rev = "6138312c96142ff3c01190147e6277991bfa2fca";
sha256 = "1d9g2hbdvgz13j7kdi1kglkkllj9f00x3dwdp5piyypvs464jsn5";
fetchSubmodules = true;
}
{
url = "https://github.com/modelica-3rdparty/ExternalMemoryLib.git";
rev = "6488d5815bda23c665123baa916789e283e16d2c";
sha256 = "06y1i5w690b3b9x23nzls8y67fl7yd7bn4xl5j0dmyi4qx33aqda";
fetchSubmodules = true;
}
{
url = "https://github.com/modelica-3rdparty/FMITest.git";
rev = "a67a276083f4010b249802ad8fc70dc30c09adfd";
sha256 = "0mg8jlvlwql2nsjiy7c3rdibv73bkfk149ac0450d5pc0hfn9mln";
fetchSubmodules = true;
}
{
url = "https://github.com/modelica-3rdparty/FailureModes.git";
rev = "v1.2.1";
sha256 = "1z8bwrld1rkydgssab5gnrd76frrbky8qxi1lvlaf2jidj6bzn1l";
fetchSubmodules = true;
}
{
url = "https://github.com/modelica-3rdparty/FaultTriggering.git";
rev = "v0.6.6";
sha256 = "0a08yyrbg4a49s0bgqgyds6pidx9xr47yspvl9bdak1mq34qibip";
fetchSubmodules = true;
}
{
url = "https://github.com/modelica-3rdparty/FeedDriveLibrary.git";
rev = "1.0.1";
sha256 = "15fi9dj6zgl0fr90cwxqjbpphj0dwrrmk74hf25j6zd85w2ycqdz";
fetchSubmodules = true;
}
{
url = "https://github.com/DLR-SR/FractionalOrder.git";
rev = "99918820e346c362c3ad52d782c8215e5deeac4c";
sha256 = "1pycss6fqh86frfdbdfffjhaz09fz1558f9azgckhf8drx6ry1qs";
fetchSubmodules = true;
}
{
url = "https://github.com/modelica-3rdparty/Greenhouses-Library.git";
rev = "89ae0e8097eb0751abce2013d304fa5f9c09b885";
sha256 = "1q77xj6aysqsn3d7kjmcq7dihbw18iqm35ifzdi75xgf3cgwla4f";
fetchSubmodules = true;
}
{
url = "https://github.com/christiankral/HanserModelica.git";
rev = "v1.1.0";
sha256 = "0zwkrhg2y42m18p4z51izrickiv1vikgz0z7fpjia4dbppckav8i";
fetchSubmodules = true;
}
{
url = "https://github.com/modelica-3rdparty/HelmholtzMedia.git";
rev = "3b4a4bca94d388744b2d045344ea2f9b0b4d405b";
sha256 = "17fzpan89075vb5vbhw5ylgxcdsmj2vjnmmka7cgzh06izb69nvh";
fetchSubmodules = true;
}
{
url = "https://github.com/ibpsa/modelica-ibpsa.git";
rev = "v3.0.0";
sha256 = "0xwgfndlw76zfmiiqadl85l9na9igsqlmfcawx526sdw2lhhgics";
fetchSubmodules = true;
}
{
url = "https://github.com/open-ideas/IDEAS.git";
rev = "v2.1.0";
sha256 = "0xp0zg6ib5536d5vl361lsn5w5faqdf6djhcmfxns629wjima8rn";
fetchSubmodules = true;
}
{
url = "https://github.com/modelica-3rdparty/IndustrialControlSystems.git";
rev = "v1.1.0";
sha256 = "1nvgx94iy1pws0768anrl7ssjlzslb5mbp21j7xvf6wpqfmj0npc";
fetchSubmodules = true;
}
{
url = "https://github.com/christiankral/KeyWordIO.git";
rev = "v0.9.0";
sha256 = "10kvj6zn2r6m3403ja8nkkxbfcchkz0pfk3g70ibr76zivxb5nim";
fetchSubmodules = true;
}
{
url = "https://github.com/FishSim/LibRAS.git";
rev = "fca9de50a484a2213f3ca1b39e275c237c471688";
sha256 = "0w1c87sifq8klq0f2l70qxjrlvahyxy1cx9rln80rni4d427yc1k";
fetchSubmodules = true;
}
{
url = "https://github.com/modelica-3rdparty/LinearMPC.git";
rev = "v1.0";
sha256 = "1crj60i5f33l9pgip0xbv6ankcga7px0644cj7c2wnzn1fjmn2k8";
fetchSubmodules = true;
}
{
url = "https://github.com/looms-polimi/MEV.git";
rev = "v1.0.1";
sha256 = "1a7ih9lc01wzaq8a8aznggpi4aqnczyzq49q5hc4fqvmfwl7l0j3";
fetchSubmodules = true;
}
{
url = "https://github.com/modelica-3rdparty/ModPowerSystems.git";
rev = "df3afce27d5e935c4111f392275744a655abe216";
sha256 = "1b1fikm92lv6gj82imka3hxbjwv04i4h33y69yhcxdpqa6z6hm4z";
fetchSubmodules = true;
}
{
url = "https://github.com/OpenModelica/OpenModelica-ModelicaStandardLibrary.git";
rev = "4a91d52248b0f17415bba1d58881fc730bd94215";
sha256 = "19caxz6hvlrsls3b2387a24zwwnykbb138jpb42gwpy8jlh93yzi";
fetchSubmodules = true;
}
{
url = "https://github.com/OpenModelica/OpenModelica-ModelicaStandardLibrary.git";
rev = "cab27240a4a3ed4ea137226f056bbc0d79543f7a";
sha256 = "06y911i2hs7hg4ykhb8wngvxhwnaww8rsakwa7ssd047a7glzsb0";
fetchSubmodules = true;
}
{
url = "https://github.com/modelica-3rdparty/Modelica-Arduino.git";
rev = "v0.1.0";
sha256 = "1n34dksqhrn1synv2mp2ifk4dxyhp15f5v1jb1b3dbw9n19951qb";
fetchSubmodules = true;
}
{
url = "https://github.com/modelica-3rdparty/Modelica-GNU_ScientificLibrary.git";
rev = "9235ab28bdd7f0fe3e7abba48af53d73332858ec";
sha256 = "168g9gg12lfa863ifs41bnx6yd0yyjnal6986dgpm51dj5arw6id";
fetchSubmodules = true;
}
{
url = "https://github.com/modelica-3rdparty/Modelica-MVEM.git";
rev = "v1.0.1";
sha256 = "1p68691dnl06lgwm4bl9g036brn4vl7m5x3gq4rxc291339frixk";
fetchSubmodules = true;
}
{
url = "https://github.com/modelica-3rdparty/ModelicaADS.git";
rev = "v1.0.1";
sha256 = "0fhxrl07d7v3wa79d30psm1gxydc0p7s2akfirdx6dai0633skp9";
fetchSubmodules = true;
}
{
url = "https://github.com/xogeny/ModelicaBook.git";
rev = "v0.6.0";
sha256 = "0yqbll6p738yvpi1x11cjngpz2glda07mljrkjlm23p7l53x63dc";
fetchSubmodules = true;
}
{
url = "https://github.com/modelica-compliance/compliance.git";
rev = "8a91e75d8a26acc4de30fc0e5d5e9db83c970bd6";
sha256 = "1cym1wlgsvfrryq8zqzzrgs4wam1l7pc20q07hk3d615nhq21lg6";
fetchSubmodules = true;
}
{
url = "https://github.com/modelica-3rdparty/ModelicaDFR.git";
rev = "37a441934d05330cf3d13e9ec551954d27eca84c";
sha256 = "13rpcs8cl9x15vi655150zmhmg1iaxpzvxrl3rqif46zpl5dhlj2";
fetchSubmodules = true;
}
{
url = "https://github.com/modelica/Modelica_DeviceDrivers.git";
rev = "v1.8.2";
sha256 = "16c0p9zn0qrraz59ivinibmikdd251plm1vqngznzhksjwvz6bja";
fetchSubmodules = true;
}
{
url = "https://github.com/modelica/Modelica_LinearSystems2.git";
rev = "v2.3.5";
sha256 = "0rzicynqgayydxqynnairxk7ybg4alv1xnfz8cgkrpicl2g9bacg";
fetchSubmodules = true;
}
{
url = "https://github.com/modelica-3rdparty/Modelica_Requirements.git";
rev = "a427b5cb7997e9036c577d219e6b8a5d0c28389a";
sha256 = "1ihx46kifnfi9kw1g8nmd9sarl766whbzdk6a44alczsya4gg45k";
fetchSubmodules = true;
}
{
url = "https://github.com/modelica/Modelica_Synchronous.git";
rev = "c8350276bfd945086962cf4150ba941b9c57ed13";
sha256 = "12ad7fpjy50ky3lvl65r9d5xvlzvw5yqdnbp4rsgl3qw7s3wrmja";
fetchSubmodules = true;
}
{
url = "https://github.com/jwindahlModelon/MultiPhaseMixtureMedia.git";
rev = "0bda0c58af6384f8e0edf7aa7520afb369af3e38";
sha256 = "11bqm69504bh4h05dxlwdmjfxwls06mr49cz47kl8jmrygkfi4i2";
fetchSubmodules = true;
}
{
url = "https://github.com/OpenIPSL/OpenIPSL.git";
rev = "v1.5.0";
sha256 = "09xrcz0rdxdy220ki5zyl7920y0a4lg24p0aibna4ad15vszhhwj";
fetchSubmodules = true;
}
{
url = "https://github.com/modelica-3rdparty/Optimisers.git";
rev = "e33c69edaad6dad8029167b0ca00533964a6fe37";
sha256 = "0hcxsrr2n4fzaxdjvgvqayz38kpfk86cclvg5pzcfmjc5bznb8bs";
fetchSubmodules = true;
}
{
url = "https://github.com/lochel/PNlib.git";
rev = "059545d48dd9ceeccfa3b4e47689ec8dd334dcd8";
sha256 = "1a0hxkgsi4klw9c8zav1dy2p1c85ald29gx82hfacwv55xl9f127";
fetchSubmodules = true;
}
{
url = "https://github.com/modelica-3rdparty/PVSystems.git";
rev = "v0.6.2";
sha256 = "0vcgvdaqfbn46lpzk0kvsif3d55wf8yzhkbdpf5zv04kv7zw25w9";
fetchSubmodules = true;
}
{
url = "https://github.com/modelica-3rdparty/PhotoVoltaics.git";
rev = "v1.6.0";
sha256 = "0zqx77z217iln3vfxn2v3c2jl0jz5kgcd96ylvimjnwr30mxr09n";
fetchSubmodules = true;
}
{
url = "https://github.com/MarekMatejak/Physiolibrary.git";
rev = "v2.3.1";
sha256 = "0nxfw63m278gaff18zz29n2s1vk4kwdbv2qvbjmcq86fl1i5b3bg";
fetchSubmodules = true;
}
{
url = "https://github.com/modelica-3rdparty/Physiomodel.git";
rev = "v1.0.0";
sha256 = "1sdhv5qgjqv3zdq57pkkrh04ainwv9n5zqd8mb9a3ybjmwdjf6f9";
fetchSubmodules = true;
}
{
url = "https://github.com/dzimmer/PlanarMechanics.git";
rev = "55224a9e76de8aa7f708236bd4d7dee624ecba50";
sha256 = "0hf7vi44adss86x5ahk5if7bdjgw773d8mb3d8ianq12g8azycyd";
fetchSubmodules = true;
}
{
url = "https://github.com/PowerGrids/PowerGrids.git";
rev = "v1.0.0";
sha256 = "06bx8mqvmizhfwg99djdfgh2mblc4wzmg0zq4ilrp586jwfninmz";
fetchSubmodules = true;
}
{
url = "https://github.com/modelica/PowerSystems.git";
rev = "v1.0.0";
sha256 = "1xwhwich7gi6vl33zl2r78xdjklchgkjcnvww6390j20l1wjznkn";
fetchSubmodules = true;
}
{
url = "https://github.com/modelica/PowerSystems.git";
rev = "f0721333f4875143565147a7d043bee1c300873b";
sha256 = "0gbvx0gzf3akb0w7yvdxfq2y4ps91cy5b93iwnvnw7652x716813";
fetchSubmodules = true;
}
{
url = "https://github.com/modelica-3rdparty/RealTimeCoordinationLibrary.git";
rev = "v1.0.2";
sha256 = "0ch4la04hm059ii5wzph9gsbvqhnfqrvvpqi57qn27bm10c4la0m";
fetchSubmodules = true;
}
{
url = "https://github.com/casella/ScalableTestSuite.git";
rev = "v1.11.5";
sha256 = "0bhj1q9b8d29nrbr253zszy1w1yvyizvyr3law1pqjj6mhbqmg4i";
fetchSubmodules = true;
}
{
url = "https://github.com/modelica-3rdparty/Servomechanisms.git";
rev = "3bf82ba5d3f31b4a0ae05f99ae690037358e153e";
sha256 = "1swka7d58wkg5pqv59lqgfi7gv6rg5vra4j6r76pn9czx9ddal8w";
fetchSubmodules = true;
}
{
url = "https://github.com/SolarTherm/SolarTherm.git";
rev = "203fb5af3b95c731c7fcbe2833d51fd420e80796";
sha256 = "1bh4y4igzd0k59xm8j14p52gnlbwkiwwy6bhhyarpr361yrchn33";
fetchSubmodules = true;
}
{
url = "https://github.com/modelica-3rdparty/Soltermica.git";
rev = "9f7224bd89335f95dffe1ccdaa094df5a3279fdf";
sha256 = "1bif3cnwjas6x7b8ahwkm7dbrqrfdqwwa26zmdc6zrpfncl3kqd0";
fetchSubmodules = true;
}
{
url = "https://github.com/modelica-3rdparty/SystemDynamics.git";
rev = "2f6bd9382c5aac2aff9148cd9113a418767734b6";
sha256 = "0ii2mj6ngwjir3gzyad8wsj86pvd6wzal91nz2y7gzwj1djchb3x";
fetchSubmodules = true;
}
{
url = "https://github.com/thom-marx/ThermalSeparation.git";
rev = "ffa0495ba829ecab105be4bfb3b7652625ec9c03";
sha256 = "1czm97bcrpp2jv0a0kd31a929wqlrlzdhdxvyy4w499dn20jzv1l";
fetchSubmodules = true;
}
{
url = "https://github.com/casella/ThermoPower.git";
rev = "650be2c8cbd5abc3535e92b865e509073afc8aeb";
sha256 = "08ijrx8xw43dadz5s3kiwa17ax9faq2wyq9gm0vlz9ddbkj0hcaq";
fetchSubmodules = true;
}
{
url = "https://openmodelica.org/git/ThermoSysPro.git";
rev = "db81ae1b5a6a85f6c6c7693244cafa6087e18ff5";
sha256 = "12fsf0xxxc1ja6vmm9ff85f8j5sg1lb7w4g57s2w3fkf4d3a7d0c";
fetchSubmodules = true;
}
{
url = "https://openmodelica.org/git/ThermoSysPro.git";
rev = "5cef9acb4dedf8af6f4638a4448f08a544ebd30b";
sha256 = "0ihnz1s4rs42yis9zym9nw29ia2lqz2yx2wblc50p6f221w7q78s";
fetchSubmodules = true;
}
{
url = "https://github.com/lenaRB/VVDRlib.git";
rev = "eae4981674642eddffc7f2aa3690320fcaddee0e";
sha256 = "0qxxk2xlas5mqyc1h8ndic208qj1sm5mr5y8664kv3py7i8jdqi4";
fetchSubmodules = true;
}
{
url = "https://github.com/modelica/VehicleInterfaces.git";
rev = "v1.2.5";
sha256 = "044k17cpc88wprrvw03p6crm6dy6x9a6xj5104d5nln71lqz5sdq";
fetchSubmodules = true;
}
{
url = "https://github.com/modelica-3rdparty/WasteWater.git";
rev = "v2.1.0";
sha256 = "1dxr4m9j7b5266daj4klbrhvnkqr73sximdw9bk9v5qf0s28li99";
fetchSubmodules = true;
}
{
url = "https://github.com/modelica-3rdparty/WindPowerPlants.git";
rev = "v1.2.0";
sha256 = "1lyrqwsb6sm1wc7vlj72zk5cpjhhzh27fviiqayddqy2b903xish";
fetchSubmodules = true;
}
{
url = "https://github.com/modelica-3rdparty/ipsl.git";
rev = "v1.1.1";
sha256 = "1w2iah8c5d8n01wmxydjk0rrcxh88g8yjy2zmv403azcccq7byzp";
fetchSubmodules = true;
}
{
url = "https://github.com/modelica-3rdparty/netCDF-DataReader.git";
rev = "v2.5.0";
sha256 = "1pd5xf5bgz010lryv8bj6lvlfqn9p184csiffwj8icx7rycnlcqb";
fetchSubmodules = true;
}
{
url = "https://github.com/joewa/open-bldc-modelica.git";
rev = "58a83b5b36f267613de4676c95163489b1ddc2e7";
sha256 = "0wf6dn64d2psv9b3xg5227vzpk109r3dqzi4m2wwhrilaxs3v004";
fetchSubmodules = true;
}
]

View File

@@ -0,0 +1,39 @@
#!/usr/bin/env nix-shell
#! nix-shell -i bash -p bash
CWD=$PWD
chko() {
(
T=`mktemp -d`
trap "rm -rf $T" EXIT INT PIPE
cd $T
cat >check.nix <<EOF
with import <nixpkgs> {};
fetchgit `cat $CWD/../mkderivation/src-main.nix`
EOF
nix-build check.nix
cat result/libraries/Makefile.libs
)
}
getsha256() {
URL=$(echo "$1" | sed 's/^"\(.*\)"$/\1/')
REV=$(echo "$2" | sed 's/^"\(.*\)"$/\1/')
SHA=$(nix run nixpkgs.nix-prefetch-git -c nix-prefetch-git --fetch-submodules "$URL" "$REV" 2>/dev/null | sed -n 's/.*"sha256": "\(.*\)",/\1/g p')
echo "{ url = $1; rev = $2; sha256 = \"$SHA\"; fetchSubmodules = true; }"
}
OUT=src-libs.nix
echo '[' > $OUT
chko |
grep checkout-git.sh |
tr \' \" |
while read NM TGT URL BR REV ; do
echo Trying $TGT $URL $REV >&2
getsha256 $URL $REV >> $OUT || exit 1
done
echo ']' >> $OUT

View File

@@ -0,0 +1,22 @@
--- a/Makefile.in
+++ b/Makefile.in
@@ -23,7 +23,7 @@
omedit-testsuite: omedit-testsuite.skip
omedit-testsuite.skip: omedit.skip testsuite-depends
$(MAKE) -f $(defaultMakefileTarget) -C OMEdit/Testsuite
-omparser: omparser.skip
+omparser: build-dirs omparser.skip
omparser.skip:
test -f $@ || $(MAKE) -C OMParser OMBUILDDIR=@OMBUILDDIR@ "host_short=@host_short@" CC="@CC@" CXX="@CXX@" CFLAGS="@CFLAGS@" CPPFLAGS="@CPPFLAGS@" CXXFLAGS="@CXXFLAGS@"
omsimulator: omsimulator.skip
@@ -134,6 +134,10 @@
INSTALL_JAVADIR = ${DESTDIR}${datadir}/omc/java
INSTALL_LOCALEDIR = ${DESTDIR}${datadir}/locale
+build-dirs:
+ mkdir -p "@OMBUILDDIR@"/lib/@host_short@/omc
+ mkdir -p "@OMBUILDDIR@"/include/omc
+
install-dirs:
@test ! "${DESTDIR}/@prefix@" -ef "@OMBUILDDIR@" || (echo Error: Install and build dirs are the same && false)
if [ "@APP@" = ".app" ]; then mkdir -p ${INSTALL_APPDIR}; fi

View File

@@ -0,0 +1,35 @@
{
lib,
pkg-config,
jre8,
libuuid,
openmodelica,
mkOpenModelicaDerivation,
}:
mkOpenModelicaDerivation {
pname = "omparser";
omdir = "OMParser";
omdeps = [ openmodelica.omcompiler ];
nativeBuildInputs = [ pkg-config ];
buildInputs = [
jre8
libuuid
];
patches = [ ./Makefile.in.patch ];
meta = with lib; {
description = "Antlr4-based parser of Modelica files from OpenModelica
suite";
homepage = "https://openmodelica.org";
license = licenses.gpl3Only;
maintainers = with maintainers; [
balodja
smironov
];
platforms = platforms.linux;
};
}

View File

@@ -0,0 +1,43 @@
{
lib,
qtbase,
qttools,
qmake,
wrapQtAppsHook,
openmodelica,
mkOpenModelicaDerivation,
}:
mkOpenModelicaDerivation {
pname = "omplot";
omdir = "OMPlot";
omdeps = [ openmodelica.omcompiler ];
omautoconf = true;
nativeBuildInputs = [
qtbase
qttools
qmake
wrapQtAppsHook
];
postPatch = ''
sed -i OMPlot/Makefile.in -e 's|bindir = @includedir@|includedir = @includedir@|'
sed -i OMPlot/OMPlot/OMPlotGUI/*.pro -e '/INCLUDEPATH +=/s|$| ../../qwt/src|'
sed -i ''$(find -name qmake.m4) -e '/^\s*LRELEASE=/ s|LRELEASE=.*$|LRELEASE=${lib.getDev qttools}/bin/lrelease|'
'';
dontUseQmakeConfigure = true;
QMAKESPEC = "linux-clang";
meta = with lib; {
description = "Plotting tool for OpenModelica-generated results files";
homepage = "https://openmodelica.org";
license = licenses.gpl3Only;
maintainers = with maintainers; [
balodja
smironov
];
platforms = platforms.linux;
};
}

View File

@@ -0,0 +1,58 @@
{
lib,
qttools,
qmake,
qtwebkit,
wrapQtAppsHook,
readline,
openmodelica,
mkOpenModelicaDerivation,
}:
mkOpenModelicaDerivation {
pname = "omshell";
omdir = "OMShell";
omdeps = [ openmodelica.omcompiler ];
omautoconf = true;
nativeBuildInputs = [
qmake
wrapQtAppsHook
];
buildInputs = [
readline
qtwebkit
];
postPatch = with openmodelica; ''
sed -i ''$(find -name qmake.m4) -e '/^\s*LRELEASE=/ s|LRELEASE=.*$|LRELEASE=${lib.getDev qttools}/bin/lrelease|'
sed -i OMShell/OMShell/OMShellGUI/*.pro -e '
s|\$\$\[QT_INSTALL_BINS\]/lrelease|${lib.getDev qttools}/bin/lrelease|
/^\s*OMCLIBS =/ s|\$\$(OMBUILDDIR)|${omcompiler}|
/^\s*OMCINC =/ s|\$\$(OMBUILDDIR)|${omcompiler}|
'
sed -i OMShell/OMShell/OMShellGUI/OMShell.config.in -e '
s|@OMBUILDDIR@|${omcompiler}|
s|@OPENMODELICAHOME@|${omcompiler}|
'
sed -i OMShell/mosh/src/Makefile.in -e '
/^CFLAGS =/ s|-I../../../build|-I${omcompiler}|
/^LIBS =/ s|-L@OMBUILDDIR@|-L${omcompiler}|
'
'';
dontUseQmakeConfigure = true;
QMAKESPEC = "linux-clang";
meta = with lib; {
description = "Interactive OpenModelica session shell";
homepage = "https://openmodelica.org";
license = licenses.gpl3Only;
maintainers = with maintainers; [
balodja
smironov
];
platforms = platforms.linux;
};
}

View File

@@ -0,0 +1,48 @@
{
lib,
pkg-config,
boost,
readline,
libxml2,
openmodelica,
mkOpenModelicaDerivation,
fetchpatch,
}:
mkOpenModelicaDerivation {
pname = "omsimulator";
omdir = "OMSimulator";
omdeps = [ openmodelica.omcompiler ];
patches = [
(fetchpatch {
url = "https://github.com/OpenModelica/OMSimulator/commit/5ef06e251d639a0224adc205cdbfa1f99bf9a956.patch";
stripLen = 1;
extraPrefix = "OMSimulator/";
hash = "sha256-hLsS6TNEjddm2o2Optnf8n6hh14up9bWJBoztNmisH0=";
})
];
nativeBuildInputs = [ pkg-config ];
buildInputs = [
readline
libxml2
boost
];
env.CFLAGS = toString [
"-Wno-error=implicit-function-declaration"
];
meta = with lib; {
description = "OpenModelica FMI & SSP-based co-simulation environment";
homepage = "https://openmodelica.org";
license = licenses.gpl3Only;
maintainers = with maintainers; [
balodja
smironov
];
platforms = platforms.linux;
};
}

View File

@@ -0,0 +1,79 @@
{
lib,
boost,
ceres-solver,
cgal,
cmake,
eigen,
fetchFromGitHub,
glfw,
gmp,
libjpeg,
libpng,
libtiff,
mpfr,
opencv,
openmp,
pkg-config,
stdenv,
vcg,
zstd,
}:
let
boostWithZstd = boost.overrideAttrs (old: {
buildInputs = old.buildInputs ++ [ zstd ];
});
in
stdenv.mkDerivation rec {
version = "2.2.0";
pname = "openmvs";
src = fetchFromGitHub {
owner = "cdcseacave";
repo = "openmvs";
rev = "v${version}";
hash = "sha256-j/tGkR73skZiU+bP4j6aZ5CxkbIcHtqKcaUTgNvj0C8=";
fetchSubmodules = true;
};
# SSE is enabled by default
cmakeFlags = lib.optional (!stdenv.hostPlatform.isx86_64) "-DOpenMVS_USE_SSE=OFF";
buildInputs = [
boostWithZstd
ceres-solver
cgal
eigen
glfw
gmp
libjpeg
libpng
libtiff
mpfr
opencv
openmp
vcg
];
nativeBuildInputs = [
cmake
pkg-config
];
postInstall = ''
mv $out/bin/OpenMVS/* $out/bin
rmdir $out/bin/OpenMVS
rm $out/bin/Tests
'';
doCheck = true;
meta = {
description = "Open Multi-View Stereo reconstruction library";
homepage = "https://github.com/cdcseacave/openMVS";
license = lib.licenses.agpl3Only;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ bouk ];
};
}

View File

@@ -0,0 +1,79 @@
{
lib,
python3,
fetchFromGitHub,
wrapQtAppsHook,
}:
python3.pkgs.buildPythonApplication rec {
pname = "sasview";
version = "5.0.6";
pyproject = true;
src = fetchFromGitHub {
owner = "SasView";
repo = "sasview";
rev = "refs/tags/v${version}";
hash = "sha256-cwP9VuvO4GPlbAxCqw31xISTi9NoF5RoBQmjWusrnzc=";
};
# AttributeError: module 'numpy' has no attribute 'float'.
postPatch = ''
substituteInPlace src/sas/sascalc/pr/p_invertor.py \
--replace "dtype=np.float)" "dtype=float)"
'';
nativeBuildInputs = [
python3.pkgs.pyqt5
python3.pkgs.setuptools
wrapQtAppsHook
];
propagatedBuildInputs = with python3.pkgs; [
bumps
h5py
lxml
periodictable
pillow
pyparsing
pyqt5
qt5reactor
sasmodels
scipy
setuptools
xhtml2pdf
];
postBuild = ''
${python3.interpreter} src/sas/qtgui/convertUI.py
'';
dontWrapQtApps = true;
makeWrapperArgs = [
"\${qtWrapperArgs[@]}"
];
nativeCheckInputs = with python3.pkgs; [
pytestCheckHook
unittest-xml-reporting
];
enabledTestPaths = [
"test"
];
disabledTests = [
# NoKnownLoaderException
"test_invalid_cansas"
"test_data_reader_exception"
];
meta = {
description = "Fitting and data analysis for small angle scattering data";
homepage = "https://www.sasview.org";
changelog = "https://github.com/SasView/sasview/releases/tag/v${version}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ rprospero ];
};
}

View File

@@ -0,0 +1,81 @@
{
lib,
stdenv,
fetchurl,
libxml2,
freetype,
libGLU,
libGL,
glew,
qtbase,
wrapQtAppsHook,
autoPatchelfHook,
python3,
cmake,
libjpeg,
llvmPackages,
}:
stdenv.mkDerivation rec {
pname = "tulip";
version = "5.7.4";
src = fetchurl {
url = "mirror://sourceforge/auber/tulip-${version}_src.tar.gz";
hash = "sha256-7z21WkPi1v2AGishDmXZPAedMjgXPRnpUiHTzEnc5LY=";
};
nativeBuildInputs = [
cmake
wrapQtAppsHook
]
++ lib.optionals stdenv.hostPlatform.isLinux [ autoPatchelfHook ];
buildInputs = [
libxml2
freetype
glew
libjpeg
qtbase
python3
]
++ lib.optionals stdenv.hostPlatform.isDarwin [ llvmPackages.openmp ]
++ lib.optionals stdenv.hostPlatform.isLinux [
libGLU
libGL
];
qtWrapperArgs = [ ''--prefix PATH : ${lib.makeBinPath [ python3 ]}'' ];
env.NIX_CFLAGS_COMPILE =
# error: invalid conversion from 'unsigned char*' to 'char*'
"-fpermissive "
+ (lib.optionalString stdenv.hostPlatform.isDarwin (toString [
# fatal error: 'Python.h' file not found
"-I${python3}/include/${python3.libPrefix}"
# error: format string is not a string literal (potentially insecure)
"-Wno-format-security"
]));
# FIXME: "make check" needs Docbook's DTD 4.4, among other things.
doCheck = false;
meta = {
description = "Visualization framework for the analysis and visualization of relational data";
longDescription = ''
Tulip is an information visualization framework dedicated to the
analysis and visualization of relational data. Tulip aims to
provide the developer with a complete library, supporting the design
of interactive information visualization applications for relational
data that can be tailored to the problems he or she is addressing.
'';
homepage = "http://tulip.labri.fr/";
license = lib.licenses.gpl3Plus;
maintainers = [ ];
platforms = lib.platforms.all;
};
}

View File

@@ -0,0 +1,57 @@
{
stdenv,
fetchFromGitLab,
lib,
cmake,
qtbase,
qttools,
qtcharts,
libGLU,
libGL,
glm,
glew,
wrapQtAppsHook,
}:
stdenv.mkDerivation {
pname = "vite";
version = "unstable-2022-05-17";
src = fetchFromGitLab {
domain = "gitlab.inria.fr";
owner = "solverstack";
repo = "vite";
rev = "6d497cc519fac623e595bd174e392939c4de845c";
hash = "sha256-Yf2jYALZplIXzVtd/sg6gzEYrZ+oU0zLG1ETd/hiTi0=";
};
nativeBuildInputs = [
cmake
qttools
wrapQtAppsHook
];
buildInputs = [
qtbase
qtcharts
libGLU
libGL
glm
glew
];
meta = {
description = "Visual Trace Explorer (ViTE), a tool to visualize execution traces";
mainProgram = "vite";
longDescription = ''
ViTE is a trace explorer. It is a tool to visualize execution
traces in Pajé or OTF format for debugging and profiling
parallel or distributed applications.
'';
homepage = "http://vite.gforge.inria.fr/";
license = lib.licenses.cecill20;
maintainers = [ ];
platforms = lib.platforms.linux;
};
}