mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-10 06:55:10 +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.
69 lines
1.3 KiB
Nix
69 lines
1.3 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitLab
|
|
, desktop-file-utils
|
|
, gsettings-desktop-schemas
|
|
, glib
|
|
, gtk3
|
|
, libgda
|
|
, libxml2
|
|
, libxslt
|
|
, makeWrapper
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, shared-mime-info
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "planner";
|
|
version = "0.14.92";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.gnome.org";
|
|
owner = "World";
|
|
repo = "planner";
|
|
rev = version;
|
|
hash = "sha256-2LmNeyZURVtA52Vosyn44wT8zSaJn8tR+8sPM9atAwM=";
|
|
};
|
|
|
|
postPatch = ''
|
|
patchShebangs \
|
|
meson_post_install.sh \
|
|
tools/strip_trailing_white_space.sh \
|
|
tests/python/task-test.py
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
desktop-file-utils
|
|
makeWrapper
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
shared-mime-info
|
|
];
|
|
|
|
buildInputs = [
|
|
libgda
|
|
libxml2
|
|
libxslt
|
|
glib
|
|
gsettings-desktop-schemas
|
|
gtk3
|
|
];
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/planner \
|
|
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH:$out/share/gsettings-schemas/planner-${version}"
|
|
'';
|
|
|
|
meta = {
|
|
description = "Project management tool for the GNOME desktop";
|
|
mainProgram = "planner";
|
|
homepage = "https://gitlab.gnome.org/World/planner";
|
|
license = lib.licenses.gpl2Plus;
|
|
maintainers = with lib.maintainers; [ amiloradovsky ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
}
|