···6, fetchzip
7, autoPatchelfHook
8, gtk3
09, unzip
010}:
1112let
13 hashes = (import ./hashes.nix).${engineVersion} or
14 (throw "There are no known artifact hashes for Flutter engine version ${engineVersion}.");
00000000000000000000150000000016 artifacts =
17 {
18 common = {
···165 destination = "$out/${if subdirectory == true then archiveBasename else if subdirectory != null then subdirectory else "."}";
166 in
167 ''
00000000000168 mkdir -p "${destination}"
169 cp -r . "${destination}"
170 '';
···6, fetchzip
7, autoPatchelfHook
8, gtk3
9+, flutterVersion
10, unzip
11+, stdenvNoCC
12}:
1314let
15 hashes = (import ./hashes.nix).${engineVersion} or
16 (throw "There are no known artifact hashes for Flutter engine version ${engineVersion}.");
17+ noticeText = stdenvNoCC.mkDerivation (finalAttrs: {
18+ pname = "flutter-notice";
19+ version = engineVersion;
20+ dontUnpack = true;
21+ src = fetchurl {
22+ url = "https://raw.githubusercontent.com/flutter/engine/${engineVersion}/sky/packages/sky_engine/LICENSE";
23+ sha256 = hashes.skyNotice;
24+ };
25+ flutterNotice = fetchurl {
26+ url = "https://raw.githubusercontent.com/flutter/flutter/${flutterVersion}/LICENSE";
27+ sha256 = hashes.flutterNotice;
28+ };
29+ installPhase =
30+ ''
31+ SRC_TEXT="$(cat $src)"
32+ FLUTTER_NOTICE_TEXT="$(cat $flutterNotice)"
33+ cat << EOF > $out
34+ This artifact is from the Flutter SDK's engine.
35+ This file carries third-party notices for its dependencies.
36+ See also other files, that have LICENSE in the name, in the artifact directory.
3738+ Appendix 1/2: merged sky_engine LICENSE file (also found at ${finalAttrs.src.url})
39+ $SRC_TEXT
40+41+ Appendix 2/2: Flutter license (also found at ${finalAttrs.flutterNotice.url})
42+ $FLUTTER_NOTICE_TEXT
43+ EOF
44+ '';
45+ });
46 artifacts =
47 {
48 common = {
···195 destination = "$out/${if subdirectory == true then archiveBasename else if subdirectory != null then subdirectory else "."}";
196 in
197 ''
198+ # ship the notice near all artifacts. if the artifact directory is / multiple directories are nested in $src, link it there. If there isn't a directory, link it in root
199+ # this *isn't the same as the subdirectory variable above*
200+ DIR_CNT="$(echo */ | wc -w)"
201+ if [[ "$DIR_CNT" == 0 ]]; then
202+ ln -s ${noticeText} LICENSE.README
203+ else
204+ for dir in */
205+ do
206+ ln -s ${noticeText} "$dir/LICENSE.README"
207+ done
208+ fi
209 mkdir -p "${destination}"
210 cp -r . "${destination}"
211 '';
···33 ];
3435 doCheck = true;
36+ # The package expect to find an `example-robot-data/robots` folder somewhere
37+ # either in install prefix or in the sources
38+ # where it can find the meshes for unit tests
39+ preCheck = "ln -s source ../../${finalAttrs.pname}";
40 pythonImportsCheck = [
41 "example_robot_data"
42 ];
+27-8
pkgs/development/libraries/pinocchio/default.nix
···4, cmake
5, boost
6, eigen
007, urdfdom
8, pythonSupport ? false
9, python3Packages
10}:
1112-stdenv.mkDerivation rec {
13 pname = "pinocchio";
14- version = "2.6.19";
1516 src = fetchFromGitHub {
17 owner = "stack-of-tasks";
18- repo = pname;
19- rev = "v${version}";
20 fetchSubmodules = true;
21- hash = "sha256-P7jSAQ6LYcboJHqtpneT4W8Pu5G3fd3/a8Gju9im1e8=";
22 };
2324 # error: use of undeclared identifier '__sincos'
···38 ] ++ lib.optionals (!pythonSupport) [
39 boost
40 eigen
0041 ] ++ lib.optionals pythonSupport [
42 python3Packages.boost
43 python3Packages.eigenpy
0044 ];
4546- cmakeFlags = lib.optionals (!pythonSupport) [
000000047 "-DBUILD_PYTHON_INTERFACE=OFF"
48 ];
4900000050 meta = with lib; {
51 description = "A fast and flexible implementation of Rigid Body Dynamics algorithms and their analytical derivatives";
52 homepage = "https://github.com/stack-of-tasks/pinocchio";
53 license = licenses.bsd2;
54- maintainers = with maintainers; [ wegank ];
55 platforms = platforms.unix;
56 };
57-}
···80 cozy = throw "cozy was removed because it was not actually https://pypi.org/project/Cozy/."; # added 2022-01-14
81 cryptography_vectors = "cryptography_vectors is no longer exposed in python*Packages because it is used for testing cryptography only."; # Added 2022-03-23
82 cx_Freeze = cx-freeze; # added 2023-08-02
083 dask-xgboost = throw "dask-xgboost was removed because its features are available in xgboost"; # added 2022-05-24
84 dateutil = python-dateutil; # added 2021-07-03
85 demjson = throw "demjson has been removed, it was using setuptools 2to3 translation feature, which has been removed in setuptools 58"; # added 2022-01-18
···80 cozy = throw "cozy was removed because it was not actually https://pypi.org/project/Cozy/."; # added 2022-01-14
81 cryptography_vectors = "cryptography_vectors is no longer exposed in python*Packages because it is used for testing cryptography only."; # Added 2022-03-23
82 cx_Freeze = cx-freeze; # added 2023-08-02
83+ d2to1 = throw "d2to1 is archived and no longer works with setuptools v68"; # added 2023-07-30
84 dask-xgboost = throw "dask-xgboost was removed because its features are available in xgboost"; # added 2022-05-24
85 dateutil = python-dateutil; # added 2021-07-03
86 demjson = throw "demjson has been removed, it was using setuptools 2to3 translation feature, which has been removed in setuptools 58"; # added 2022-01-18