nixpkgs/pkgs/applications/editors/textadept/11/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

56 lines
1.3 KiB
Nix
Raw Normal View History

2021-03-14 06:09:52 +00:00
{ lib, stdenv, fetchFromGitHub, fetchurl, gtk2, glib, pkg-config, unzip, ncurses, zip }:
2020-11-02 14:19:55 +00:00
stdenv.mkDerivation rec {
2021-03-14 06:09:52 +00:00
version = "11.1";
2020-11-02 14:19:55 +00:00
pname = "textadept11";
2021-03-14 06:09:52 +00:00
nativeBuildInputs = [ pkg-config unzip zip ];
2020-11-02 14:19:55 +00:00
buildInputs = [
2021-03-14 06:09:52 +00:00
gtk2 ncurses glib
2020-11-02 14:19:55 +00:00
];
src = fetchFromGitHub {
name = "textadept11";
owner = "orbitalquark";
repo = "textadept";
2021-03-14 06:09:52 +00:00
rev = "1df99d561dd2055a01efa9183bb9e1b2ad43babc";
sha256 = "0g4bh5dp391vi32aa796vszpbxyl2dm5231v9dwc8l9v0b2786qn";
2020-11-02 14:19:55 +00:00
};
preConfigure =
lib.concatStringsSep "\n" (lib.mapAttrsToList (name: params:
"ln -s ${fetchurl params} $PWD/src/${name}"
) (import ./deps.nix)) + ''
cd src
make deps
'';
postBuild = ''
make curses
'';
preInstall = ''
mkdir -p $out/share/applications
mkdir -p $out/share/pixmaps
'';
postInstall = ''
make curses install PREFIX=$out MAKECMDGOALS=curses
'';
makeFlags = [
2021-03-14 06:09:52 +00:00
"PREFIX=$(out)"
"WGET=true"
"PIXMAPS_DIR=$(out)/share/pixmaps"
2020-11-02 14:19:55 +00:00
];
meta = with lib; {
2020-11-02 14:19:55 +00:00
description = "An extensible text editor based on Scintilla with Lua scripting. Version 11_beta";
homepage = "http://foicica.com/textadept";
license = licenses.mit;
maintainers = with maintainers; [ raskin mirrexagon ];
platforms = platforms.linux;
};
}