Skip to content
This repository was archived by the owner on Apr 12, 2021. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0a70d65fd471
Choose a base ref
...
head repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: d039b5822aad
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Jun 29, 2018

  1. sqldeveloper: add desktop item

    (cherry picked from commit b73c44e)
    flokli committed Jun 29, 2018
    Copy the full SHA
    d214b55 View commit details
  2. Merge pull request #42758 from flokli/sqldeveloper-desktop-item-18.03

    sqldeveloper: add desktop item
    Mic92 authored Jun 29, 2018

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    d039b58 View commit details
Showing with 20 additions and 2 deletions.
  1. +20 −2 pkgs/development/tools/database/sqldeveloper/default.nix
22 changes: 20 additions & 2 deletions pkgs/development/tools/database/sqldeveloper/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,21 @@
{ stdenv, makeWrapper, requireFile, unzip, openjdk }:
{ stdenv, makeDesktopItem, makeWrapper, requireFile, unzip, openjdk }:

stdenv.mkDerivation rec {
let
version = "17.4.1.054.0712";

desktopItem = makeDesktopItem {
name = "sqldeveloper";
exec = "sqldeveloper";
icon = "sqldeveloper";
desktopName = "Oracle SQL Developer";
genericName = "Oracle SQL Developer";
comment = "Oracle's Oracle DB GUI client";
categories = "Application;Development;";
};
in
stdenv.mkDerivation rec {

inherit version;
name = "sqldeveloper-${version}";

src = requireFile rec {
@@ -51,6 +65,10 @@ stdenv.mkDerivation rec {
cd $out
unzip ${src}
mv sqldeveloper $out/lib/${name}
install -D -m 444 $out/lib/$name/icon.png $out/share/pixmaps/sqldeveloper.png
mkdir -p $out/share/applications
cp ${desktopItem}/share/applications/* $out/share/applications
'';

meta = with stdenv.lib; {