forked from mirrors/nixpkgs
Added package for netbeans IDE
This commit is contained in:
parent
18c0bca167
commit
27cadaa404
41
pkgs/applications/editors/netbeans/default.nix
Normal file
41
pkgs/applications/editors/netbeans/default.nix
Normal file
|
@ -0,0 +1,41 @@
|
|||
{stdenv, fetchurl, oraclejdk, unzip, which, makeWrapper, makeDesktopItem}:
|
||||
|
||||
let
|
||||
desktopItem = makeDesktopItem {
|
||||
name = "netbeans";
|
||||
exec = "netbeans";
|
||||
comment = "Integrated Development Environment";
|
||||
desktopName = "Netbeans IDE";
|
||||
genericName = "Integrated Development Environment";
|
||||
categories = "Application;Development;";
|
||||
};
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
name = "netbeans-7.2";
|
||||
src = fetchurl {
|
||||
url = http://download.netbeans.org/netbeans/7.2/final/zip/netbeans-7.2-201207171143-ml.zip;
|
||||
sha256 = "18ya1w291hdnc35vb12yqnai82wmqm7351wn82fax12kzha5fmci";
|
||||
};
|
||||
buildCommand = ''
|
||||
# Unpack and copy the stuff
|
||||
unzip $src
|
||||
mkdir -p $out
|
||||
cp -a netbeans $out
|
||||
|
||||
# Create a wrapper capable of starting it
|
||||
mkdir -p $out/bin
|
||||
makeWrapper $out/netbeans/bin/netbeans $out/bin/netbeans \
|
||||
--prefix PATH : ${oraclejdk}/bin:${which}/bin
|
||||
|
||||
# Create desktop item, so we can pick it from the KDE/GNOME menu
|
||||
mkdir -p $out/share/applications
|
||||
cp ${desktopItem}/share/applications/* $out/share/applications
|
||||
'';
|
||||
|
||||
buildInputs = [ unzip makeWrapper ];
|
||||
|
||||
meta = {
|
||||
description = "An integrated development environment for Java, C, C++ and PHP";
|
||||
maintainers = [ stdenv.lib.maintainers.sander ];
|
||||
};
|
||||
}
|
|
@ -7450,6 +7450,8 @@ let
|
|||
|
||||
navit = callPackage ../applications/misc/navit { };
|
||||
|
||||
netbeans = callPackage ../applications/editors/netbeans { };
|
||||
|
||||
ncdu = callPackage ../tools/misc/ncdu { };
|
||||
|
||||
nedit = callPackage ../applications/editors/nedit {
|
||||
|
|
Loading…
Reference in a new issue