Skip to content
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
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 214c5b326a3a
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: b28a7579fdca
Choose a head ref
  • 3 commits
  • 3 files changed
  • 2 contributors

Commits on Oct 16, 2019

  1. Copy the full SHA
    a104aad View commit details
  2. vit: 1.3 -> 2.0.0

    arcnmx committed Oct 16, 2019
    Copy the full SHA
    eb59152 View commit details
  3. Merge pull request #71197 from arcnmx/pr-vit2

    vit 2.0.0
    worldofpeace authored Oct 16, 2019
    Copy the full SHA
    b28a757 View commit details
Showing with 63 additions and 28 deletions.
  1. +25 −28 pkgs/applications/misc/vit/default.nix
  2. +36 −0 pkgs/development/python-modules/tasklib/default.nix
  3. +2 −0 pkgs/top-level/python-packages.nix
53 changes: 25 additions & 28 deletions pkgs/applications/misc/vit/default.nix
Original file line number Diff line number Diff line change
@@ -1,40 +1,37 @@
{ stdenv, fetchFromGitHub
, makeWrapper, which
, taskwarrior, ncurses, perlPackages }:
{ lib
, python3Packages
, taskwarrior }:

stdenv.mkDerivation rec {
with python3Packages;

buildPythonApplication rec {
pname = "vit";
version = "1.3";
version = "2.0.0";
disabled = lib.versionOlder python.version "3.6";

src = fetchFromGitHub {
owner = "scottkosty";
repo = pname;
rev = "v${version}";
sha256 = "0a34rh5w8393wf7jwwr0f74rp1zv2vz606z5j8sr7w19k352ijip";
src = fetchPypi {
inherit pname version;
sha256 = "5282d8076d9814d9248071aec8784cffbd968601542533ccb28ca61d1d08205e";
};

preConfigure = ''
substituteInPlace Makefile.in \
--replace sudo ""
substituteInPlace configure \
--replace /usr/bin/perl ${perlPackages.perl}/bin/perl
substituteInPlace cmdline.pl \
--replace "view " "vim -R "
'';
propagatedBuildInputs = [
pytz
tasklib
tzlocal
urwid
];

postInstall = ''
wrapProgram $out/bin/vit --prefix PERL5LIB : $PERL5LIB
'';
makeWrapperArgs = [ "--suffix" "PATH" ":" "${taskwarrior}/bin" ];

nativeBuildInputs = [ makeWrapper which ];
buildInputs = [ taskwarrior ncurses ]
++ (with perlPackages; [ perl Curses TryTiny TextCharWidth ]);
preCheck = ''
export TERM=''${TERM-linux}
'';

meta = with stdenv.lib; {
meta = with lib; {
homepage = https://github.com/scottkosty/vit;
description = "Visual Interactive Taskwarrior";
maintainers = with maintainers; [ dtzWill ];
maintainers = with maintainers; [ dtzWill arcnmx ];
platforms = platforms.all;
license = licenses.gpl3;
license = licenses.mit;
};
}

36 changes: 36 additions & 0 deletions pkgs/development/python-modules/tasklib/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{ lib, pythonPackages, taskwarrior, writeShellScriptBin }:

with pythonPackages;

let

wsl_stub = writeShellScriptBin "wsl" "true";

in buildPythonPackage rec {
pname = "tasklib";
version = "1.2.1";

src = fetchPypi {
inherit pname version;
sha256 = "3964fb7e87f86dc5e2708addb67e69d0932534991991b6bae2e37a0c2059273f";
};

propagatedBuildInputs = [
six
pytz
tzlocal
];

checkInputs = [
taskwarrior
wsl_stub
];

meta = with lib; {
homepage = https://github.com/robgolding/tasklib;
description = "A library for interacting with taskwarrior databases";
maintainers = with maintainers; [ arcnmx ];
platforms = platforms.all;
license = licenses.bsd3;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
@@ -5001,6 +5001,8 @@ in {

tadasets = callPackage ../development/python-modules/tadasets { };

tasklib = callPackage ../development/python-modules/tasklib { };

tempita = callPackage ../development/python-modules/tempita { };

terminado = callPackage ../development/python-modules/terminado { };