mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 18:23:09 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
33 lines
882 B
Nix
33 lines
882 B
Nix
{ lib, stdenv, fetchurl, pkg-config, makeWrapper, gtk3, json_c, taskwarrior2 }:
|
|
|
|
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 : "${taskwarrior2}/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;
|
|
};
|
|
}
|