git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #29882 from Eisfreak7/master

sqldeveloper: 4.1.1 -> 17.2.0

commit4a01ad0e9992d3b2a369ce21f9d9dee980f83581 authorJörg Thalheim <Mic92@users.noreply.github.com> dateSun 15 Oct 2017, 10:40 (9 years ago) parent4eb6e846591a70
1 file changed+31−4
pkgs/development/tools/database/sqldeveloper/default.nix+31−4
pkgs/development/tools/database/sqldeveloper/default.nix+31−4
@@ -1,12 +1,39 @@
11{ stdenv, makeWrapper, requireFile, unzip, openjdk }:
22
33stdenv.mkDerivation rec {
4− name = "sqldeveloper-4.1.1.19.59";
4+ version = "17.3.0.271.2323";
5+ name = "sqldeveloper-${version}";
56
6− src = requireFile {
7− name = "${name}-no-jre.zip";
7+ src = requireFile rec {
8+ name = "sqldeveloper-${version}-no-jre.zip";
89 url = "http://www.oracle.com/technetwork/developer-tools/sql-developer/downloads/";
9− sha256 = "1dbbqlz11zps9w5qvzlcv5rdv43s25c3mbzf8il1px4m2j33y3rv";
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 downloads
17+ and repeat until the version is correct. This is necessarry because as the
18+ time of this writing there exists no permanent link for the current version
19+ yet.
20+ Also consider updating this package yourself (you probably just need to
21+ change the `version` variable and update the sha256 to the one of the
22+ new file) or opening an issue at the nixpkgs repo.
23+ - accept the license agreement
24+ - download the file listed under "Other Platforms"
25+ - sign in or create an oracle account if neccessary
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+ '';
35+ # obtained by `sha256sum sqldeveloper-${version}-no-jre.zip`
36+ sha256 = "06ba5920544bacbea83425548b1b8f69ab3e9bb279076321aece2c0c6d415dad";
1037 };
1138
1239 buildInputs = [ makeWrapper unzip ];