Add Sublime Text editor
This commit is contained in:
parent
4c5c8ba08e
commit
ee142ea983
|
@ -0,0 +1,28 @@
|
||||||
|
{ fetchurl, stdenv, glib, xlibs, cairo, gtk}:
|
||||||
|
let
|
||||||
|
libPath = stdenv.lib.makeLibraryPath [glib xlibs.libX11 gtk cairo];
|
||||||
|
in
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "sublimetext-2.0.1";
|
||||||
|
src = fetchurl {
|
||||||
|
name = "sublimetext-2.0.1.tar.bz2";
|
||||||
|
url = http://c758482.r82.cf2.rackcdn.com/Sublime%20Text%202.0.1%20x64.tar.bz2;
|
||||||
|
sha256 = "0174dnp9zika5as25mcls5y0qzhh8mnc5ajxsxz7qjrk4lrzk3c5";
|
||||||
|
};
|
||||||
|
buildCommand = ''
|
||||||
|
tar xvf ${src}
|
||||||
|
mkdir -p $out/bin
|
||||||
|
mv Sublime* $out/sublime
|
||||||
|
ln -s $out/sublime/sublime_text $out/bin/sublime
|
||||||
|
|
||||||
|
echo ${libPath}
|
||||||
|
patchelf \
|
||||||
|
--interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \
|
||||||
|
--set-rpath ${libPath}:${stdenv.gcc.gcc}/lib64 \
|
||||||
|
$out/sublime/sublime_text
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Sublime Text is a sophisticated text editor for code, markup and prose.";
|
||||||
|
};
|
||||||
|
}
|
|
@ -7735,6 +7735,8 @@ let
|
||||||
clisp = clisp_2_44_1;
|
clisp = clisp_2_44_1;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
sublime = callPackage ../applications/editors/sublime { };
|
||||||
|
|
||||||
subversion = callPackage ../applications/version-management/subversion/default.nix {
|
subversion = callPackage ../applications/version-management/subversion/default.nix {
|
||||||
neon = pkgs.neon029;
|
neon = pkgs.neon029;
|
||||||
bdbSupport = true;
|
bdbSupport = true;
|
||||||
|
|
Loading…
Reference in New Issue