dell-command-configure: 4.11.0-6 -> 5.1.0-6 (#400575)

authored by Arne Keller and committed by GitHub 65036a31 2053e73f

+19 -13
+19 -13
pkgs/by-name/de/dell-command-configure/package.nix
··· 1 { 2 - stdenv, 3 lib, 4 fetchurl, 5 dpkg, 6 autoPatchelfHook, ··· 17 # the dependencies from other pkgs. 18 19 let 20 - version = "4.11.0-6"; 21 22 - unpacked = stdenv.mkDerivation rec { 23 inherit version; 24 pname = "dell-command-configure-unpacked"; 25 26 src = fetchurl { 27 urls = [ 28 - "https://dl.dell.com/FOLDER10469726M/1/command-configure_${version}.ubuntu22_amd64.tar.gz" 29 - "https://web.archive.org/web/20240228233129/https://dl.dell.com/FOLDER10469726M/1/command-configure_4.11.0-6.ubuntu22_amd64.tar.gz" 30 ]; 31 # The CDN blocks the Curl user-agent, so set to blank instead. 32 curlOpts = ''-A=""''; 33 - hash = "sha256-Bwa4sYguYwEBKEJSP3wzHhzjuDeaGQN8fKeooWHX18E="; 34 }; 35 36 dontBuild = true; ··· 38 nativeBuildInputs = [ dpkg ]; 39 40 unpackPhase = '' 41 - tar -xzf ${src} 42 - dpkg-deb -x command-configure_${version}.ubuntu22_amd64.deb command-configure 43 dpkg-deb -x srvadmin-hapi_9.5.0_amd64.deb srvadmin-hapi 44 ''; 45 ··· 47 mkdir $out 48 cp -r . $out 49 ''; 50 - }; 51 52 # Contains a fopen() wrapper for finding the firmware package 53 wrapperLibName = "wrapper-lib.so"; ··· 74 inherit version; 75 pname = "dell-command-configure"; 76 77 buildInputs = [ 78 openssl 79 (lib.getLib stdenv.cc.cc) 80 ]; 81 - nativeBuildInputs = [ autoPatchelfHook ]; 82 dontConfigure = true; 83 84 src = unpacked; 85 86 installPhase = '' 87 install -D -t $out/lib -m644 -v command-configure/opt/dell/dcc/libhapiintf.so 88 install -D -t $out/lib -m644 -v command-configure/opt/dell/dcc/libsmbios_c.so.2 89 install -D -t $out/bin -m755 -v command-configure/opt/dell/dcc/cctk ··· 91 for lib in $(find srvadmin-hapi/opt/dell/srvadmin/lib64 -type l); do 92 install -D -t $out/lib -m644 -v $lib 93 done 94 ''; 95 96 postFixup = '' ··· 104 $out/lib/* 105 ''; 106 107 - meta = with lib; { 108 description = "Configure BIOS settings on Dell laptops"; 109 homepage = "https://www.dell.com/support/article/us/en/19/sln311302/dell-command-configure"; 110 - license = licenses.unfree; 111 - maintainers = with maintainers; [ ryangibb ]; 112 platforms = [ "x86_64-linux" ]; 113 sourceProvenance = [ lib.sourceTypes.binaryNativeCode ]; 114 };
··· 1 { 2 lib, 3 + stdenv, 4 fetchurl, 5 dpkg, 6 autoPatchelfHook, ··· 17 # the dependencies from other pkgs. 18 19 let 20 + version = "5.1.0-6"; 21 22 + unpacked = stdenv.mkDerivation (finalAttrs: { 23 inherit version; 24 pname = "dell-command-configure-unpacked"; 25 26 src = fetchurl { 27 urls = [ 28 + "https://dl.dell.com/FOLDER12705845M/1/command-configure_${version}.ubuntu24_amd64.tar.gz" 29 + "https://web.archive.org/web/20250421172156/https://dl.dell.com/FOLDER12705845M/1/command-configure_5.1.0-6.ubuntu24_amd64.tar.gz" 30 ]; 31 # The CDN blocks the Curl user-agent, so set to blank instead. 32 curlOpts = ''-A=""''; 33 + hash = "sha256-MM6Djkz/VuVCLHGEji88Xq0vIV+AfqQkjNXz4zqFOtw="; 34 }; 35 36 dontBuild = true; ··· 38 nativeBuildInputs = [ dpkg ]; 39 40 unpackPhase = '' 41 + tar -xzf ${finalAttrs.src} 42 + dpkg-deb -x command-configure_${version}.ubuntu24_amd64.deb command-configure 43 dpkg-deb -x srvadmin-hapi_9.5.0_amd64.deb srvadmin-hapi 44 ''; 45 ··· 47 mkdir $out 48 cp -r . $out 49 ''; 50 + }); 51 52 # Contains a fopen() wrapper for finding the firmware package 53 wrapperLibName = "wrapper-lib.so"; ··· 74 inherit version; 75 pname = "dell-command-configure"; 76 77 + nativeBuildInputs = [ autoPatchelfHook ]; 78 + 79 buildInputs = [ 80 openssl 81 (lib.getLib stdenv.cc.cc) 82 ]; 83 + 84 dontConfigure = true; 85 86 src = unpacked; 87 88 installPhase = '' 89 + runHook preInstall 90 + 91 install -D -t $out/lib -m644 -v command-configure/opt/dell/dcc/libhapiintf.so 92 install -D -t $out/lib -m644 -v command-configure/opt/dell/dcc/libsmbios_c.so.2 93 install -D -t $out/bin -m755 -v command-configure/opt/dell/dcc/cctk ··· 95 for lib in $(find srvadmin-hapi/opt/dell/srvadmin/lib64 -type l); do 96 install -D -t $out/lib -m644 -v $lib 97 done 98 + 99 + runHook postInstall 100 ''; 101 102 postFixup = '' ··· 110 $out/lib/* 111 ''; 112 113 + meta = { 114 description = "Configure BIOS settings on Dell laptops"; 115 homepage = "https://www.dell.com/support/article/us/en/19/sln311302/dell-command-configure"; 116 + license = lib.licenses.unfree; 117 + maintainers = with lib.maintainers; [ ryangibb ]; 118 platforms = [ "x86_64-linux" ]; 119 sourceProvenance = [ lib.sourceTypes.binaryNativeCode ]; 120 };