Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

sqlcl: change license to unfreeRedistributable

SQLcL is actually unfreeRedistributable (since 2021, it seems), under the Oracle Free Use License. Manually downloading the source is also not needed anymore.

Also switched to finalAttrs pattern instead of using rec.

authored by Gabriel Fontes and committed by Anderson Torres ca96ce42 8cfe4759

+6 -32
+6 -32
pkgs/development/tools/database/sqlcl/default.nix
··· 1 - { lib, stdenv, makeWrapper, requireFile, unzip, jdk }: 1 + { lib, stdenv, makeWrapper, fetchurl, unzip, jdk }: 2 2 3 - stdenv.mkDerivation rec { 3 + stdenv.mkDerivation (finalAttrs: { 4 4 pname = "sqlcl"; 5 5 version = "23.2.0.178.1027"; 6 6 7 - src = requireFile rec { 8 - url = "https://www.oracle.com/database/sqldeveloper/technologies/sqlcl/download/"; 9 - name = "sqlcl-${version}.zip"; 10 - message = '' 11 - This Nix expression requires that ${name} already be part of the store. To 12 - obtain it you need to 13 - 14 - - navigate to ${url} 15 - - make sure that it says "Version ${version}" above the list of downloads 16 - - if it does not, click on the "Previous Version" link below the 17 - download and repeat until the version is correct. This is necessary 18 - because as the time of this writing there exists no permanent link 19 - for the current version yet. 20 - Also consider updating this package yourself (you probably just need 21 - to change the `version` variable and update the sha256 to the one of 22 - the new file) or opening an issue at the nixpkgs repo. 23 - - click "Download" 24 - - sign in or create an oracle account if neccessary 25 - - on the next page, click the "${name}" link 26 - 27 - and then add the file to the Nix store using either: 28 - 29 - nix-store --add-fixed sha256 ${name} 30 - 31 - or 32 - 33 - nix-prefetch-url --type sha256 file:///path/to/${name} 34 - ''; 7 + src = fetchurl { 8 + url = "https://download.oracle.com/otn_software/java/sqldeveloper/sqlcl-${finalAttrs.version}.zip"; 35 9 hash = "sha256-wGqLlV88yYJrVblKzeG6VerfsEgCi1JQd49ONZmUB4Y="; 36 10 }; 37 11 ··· 58 32 also supporting your previously written SQL*Plus scripts. 59 33 ''; 60 34 homepage = "https://www.oracle.com/database/sqldeveloper/technologies/sqlcl/"; 61 - license = licenses.unfree; 35 + license = licenses.unfreeRedistributable; 62 36 platforms = [ "x86_64-linux" ]; 63 37 maintainers = with maintainers; [ misterio77 ]; 64 38 }; 65 - } 39 + })