Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

textadept: 10.2 -> 10.8 #100266

Merged
merged 1 commit into from Oct 30, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 9 additions & 7 deletions pkgs/applications/editors/textadept/default.nix
@@ -1,6 +1,7 @@
{ lib, stdenv, fetchhg, fetchurl, gtk2, glib, pkgconfig, unzip, ncurses, zip }:

stdenv.mkDerivation rec {
version = "10.2";
version = "10.8";
pname = "textadept";

nativeBuildInputs = [ pkgconfig ];
Expand All @@ -11,18 +12,14 @@ stdenv.mkDerivation rec {
src = fetchhg {
url = "http://foicica.com/hg/textadept";
rev = "textadept_${version}";
sha256 = "0fai8xqddkkprmbf0cf8wwgv7ccfdb1iyim30nppm2m16whkc8fl";
sha256 = "sha256-dEZSx2tuHTWYhk9q5iGlrWTAvDvKaM8HaHwXcFcv33s=";
};

preConfigure =
lib.concatStringsSep "\n" (lib.mapAttrsToList (name: params:
"ln -s ${fetchurl params} $PWD/src/${name}"
) (import ./deps.nix)) + ''

# work around trying to download stuff in `make deps`
function wget() { true; }
export -f wget

cd src
make deps
'';
Expand All @@ -31,12 +28,17 @@ stdenv.mkDerivation rec {
make curses
'';

preInstall = ''
mkdir -p $out/share/applications
mkdir -p $out/share/pixmaps
'';

postInstall = ''
make curses install PREFIX=$out MAKECMDGOALS=curses
'';

makeFlags = [
"PREFIX=$(out)"
"PREFIX=$(out) WGET=true PIXMAPS_DIR=$(out)/share/pixmaps"
];

meta = with stdenv.lib; {
Expand Down
24 changes: 12 additions & 12 deletions pkgs/applications/editors/textadept/deps.nix

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.