mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
33 lines
880 B
Nix
33 lines
880 B
Nix
{ lib, stdenv, fetchurl, pkg-config, makeWrapper, gtk3, json_c, taskwarrior }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ptask";
|
|
version = "1.0.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://wpitchoune.net/ptask/files/ptask-${version}.tar.gz";
|
|
sha256 = "13nirr7b29bv3w2zc8zxphhmc9ayhs61i11jl4819nabk7vy1kdq";
|
|
};
|
|
|
|
buildInputs = [ gtk3 json_c ];
|
|
|
|
nativeBuildInputs = [ pkg-config makeWrapper ];
|
|
|
|
patches = [ ./tw-version.patch ./json_c_is_error.patch ];
|
|
|
|
preFixup = ''
|
|
wrapProgram "$out/bin/ptask" \
|
|
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH" \
|
|
--prefix PATH : "${taskwarrior}/bin"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "http://wpitchoune.net/ptask/";
|
|
description = "GTK-based GUI for taskwarrior";
|
|
mainProgram = "ptask";
|
|
license = licenses.gpl2;
|
|
maintainers = [ maintainers.spacefrogg ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|