···11 # than we do. We don't just use theirs because ours are less ambiguous and
12 # some builds need that clarity.
13 #
14- # FIXME:
15- # There's some dragons here. Build host and target concepts are being mixed up.
16- ndkInfoFun = { config, ... }: {
17 x86_64-apple-darwin = {
18 double = "darwin-x86_64";
19 };
20 x86_64-unknown-linux-gnu = {
21 double = "linux-x86_64";
22 };
000023 i686-unknown-linux-android = {
24 triple = "i686-linux-android";
25 arch = "x86";
···37 triple = "aarch64-linux-android";
38 };
39 }.${config} or
40- (throw "Android NDK doesn't support ${config}, as far as we know");
4142- buildInfo = ndkInfoFun stdenv.buildPlatform;
43- hostInfo = ndkInfoFun stdenv.hostPlatform;
44- targetInfo = ndkInfoFun stdenv.targetPlatform;
4546 inherit (stdenv.targetPlatform) sdkVer;
47 suffixSalt = lib.replaceStrings ["-" "."] ["_" "_"] stdenv.targetPlatform.config;
···11 # than we do. We don't just use theirs because ours are less ambiguous and
12 # some builds need that clarity.
13 #
14+ ndkBuildInfoFun = { config, ... }: {
0015 x86_64-apple-darwin = {
16 double = "darwin-x86_64";
17 };
18 x86_64-unknown-linux-gnu = {
19 double = "linux-x86_64";
20 };
21+ }.${config} or
22+ (throw "Android NDK doesn't support building on ${config}, as far as we know");
23+24+ ndkTargetInfoFun = { config, ... }: {
25 i686-unknown-linux-android = {
26 triple = "i686-linux-android";
27 arch = "x86";
···39 triple = "aarch64-linux-android";
40 };
41 }.${config} or
42+ (throw "Android NDK doesn't support targetting ${config}, as far as we know");
4344+ buildInfo = ndkBuildInfoFun stdenv.buildPlatform;
45+ targetInfo = ndkTargetInfoFun stdenv.targetPlatform;
04647 inherit (stdenv.targetPlatform) sdkVer;
48 suffixSalt = lib.replaceStrings ["-" "."] ["_" "_"] stdenv.targetPlatform.config;
+3-3
pkgs/development/androidndk-pkgs/default.nix
···29 # these two really are the same.
30 buildAndroidndk = buildAndroidComposition.ndk-bundle;
31 androidndk = androidComposition.ndk-bundle;
32- targetAndroidndkPkgs = targetPackages.androidndkPkgs_21;
33 };
3435 "23b" =
···59 # these two really are the same.
60 buildAndroidndk = buildAndroidComposition.ndk-bundle;
61 androidndk = androidComposition.ndk-bundle;
62- targetAndroidndkPkgs = targetPackages.androidndkPkgs_23b;
63 };
6465 "24" =
···89 # these two really are the same.
90 buildAndroidndk = buildAndroidComposition.ndk-bundle;
91 androidndk = androidComposition.ndk-bundle;
92- targetAndroidndkPkgs = targetPackages.androidndkPkgs_24;
93 };
9495}
···29 # these two really are the same.
30 buildAndroidndk = buildAndroidComposition.ndk-bundle;
31 androidndk = androidComposition.ndk-bundle;
32+ targetAndroidndkPkgs = if targetPackages ? androidndkPkgs_21 then targetPackages.androidndkPkgs_21 else throw "androidndkPkgs_21: no targetPackages, use `buildPackages.androidndkPkgs_21";
33 };
3435 "23b" =
···59 # these two really are the same.
60 buildAndroidndk = buildAndroidComposition.ndk-bundle;
61 androidndk = androidComposition.ndk-bundle;
62+ targetAndroidndkPkgs = if targetPackages ? androidndkPkgs_23b then targetPackages.androidndkPkgs_23b else throw "androidndkPkgs_23b: no targetPackages, use `buildPackages.androidndkPkgs_23b";
63 };
6465 "24" =
···89 # these two really are the same.
90 buildAndroidndk = buildAndroidComposition.ndk-bundle;
91 androidndk = androidComposition.ndk-bundle;
92+ targetAndroidndkPkgs = if targetPackages ? androidndkPkgs_24 then targetPackages.androidndkPkgs_24 else throw "androidndkPkgs_24: no targetPackages, use `buildPackages.androidndkPkgs_24";
93 };
9495}
···67stdenvNoCC.mkDerivation rec {
8 pname = "perccli";
9- version = "7.2110.00";
001011 src = fetchzip {
12 # On pkg update: manually adjust the version in the URL because of the different format.
13- url = "https://dl.dell.com/FOLDER09074160M/1/PERCCLI_7.211.0_Linux.tar.gz";
14- sha256 = "sha256-8gk+0CrgeisfN2hNpaO1oFey57y7KuNy2i6PWTikDls=";
1516 # Dell seems to block "uncommon" user-agents, such as Nixpkgs's custom one.
17- # Sending no user-agent at all seems to be fine though.
18- curlOptsList = [ "--user-agent" "" ];
19 };
2021 nativeBuildInputs = [ rpmextract ];
···4344 meta = with lib; {
45 description = "Perccli Support for PERC RAID controllers";
000046 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
47 license = licenses.unfree;
48 maintainers = with maintainers; [ panicgh ];
···67stdenvNoCC.mkDerivation rec {
8 pname = "perccli";
9+10+ # On a new release, update version, URL, hash, and meta.homepage
11+ version = "7.2313.00";
1213 src = fetchzip {
14 # On pkg update: manually adjust the version in the URL because of the different format.
15+ url = "https://dl.dell.com/FOLDER09770976M/1/PERCCLI_7.2313.0_A14_Linux.tar.gz";
16+ hash = "sha256-IhclHVkdihRx5CzyO2dlOEhCon+0/HB3Fkue7MWsWnw=";
1718 # Dell seems to block "uncommon" user-agents, such as Nixpkgs's custom one.
19+ # 403 otherwise
20+ curlOptsList = [ "--user-agent" "Mozilla/5.0" ];
21 };
2223 nativeBuildInputs = [ rpmextract ];
···4546 meta = with lib; {
47 description = "Perccli Support for PERC RAID controllers";
48+49+ # Must be updated with every release
50+ homepage = "https://www.dell.com/support/home/en-us/drivers/driversdetails?driverid=tdghn";
51+52 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
53 license = licenses.unfree;
54 maintainers = with maintainers; [ panicgh ];