ghostwriter: absorb into kde/gear

This commit is contained in:
K900 2023-03-18 01:39:35 +03:00
parent e98590cdf6
commit f5968d6601
5 changed files with 43 additions and 45 deletions

View File

@ -1,43 +0,0 @@
{ lib
, stdenv
, mkDerivation
, fetchFromGitHub
, qmake
, pkg-config
, qttools
, qtwebengine
, hunspell
, cmark
, multimarkdown
, pandoc
}:
mkDerivation rec {
pname = "ghostwriter";
version = "2.2.0";
src = fetchFromGitHub {
owner = "KDE";
repo = pname;
rev = version;
hash = "sha256-8JtCO5jrkbZ4uEM7SALg64L4HSzdzzh7r1pldxzaXeI=";
};
nativeBuildInputs = [ qmake pkg-config qttools ];
buildInputs = [ qtwebengine hunspell ];
qtWrapperArgs = [
"--prefix" "PATH" ":" (lib.makeBinPath [ cmark multimarkdown pandoc ])
];
meta = with lib; {
description = "A cross-platform, aesthetic, distraction-free Markdown editor";
homepage = "https://kde.github.io/ghostwriter";
changelog = "https://github.com/KDE/ghostwriter/blob/${src.rev}/CHANGELOG.md";
license = licenses.gpl3Plus;
platforms = platforms.unix;
maintainers = with maintainers; [ dotlambda erictapen ];
broken = stdenv.isDarwin;
};
}

View File

@ -86,6 +86,7 @@ let
falkon = callPackage ./falkon.nix {}; falkon = callPackage ./falkon.nix {};
ffmpegthumbs = callPackage ./ffmpegthumbs.nix { }; ffmpegthumbs = callPackage ./ffmpegthumbs.nix { };
filelight = callPackage ./filelight.nix {}; filelight = callPackage ./filelight.nix {};
ghostwriter = callPackage ./ghostwriter.nix {};
granatier = callPackage ./granatier.nix {}; granatier = callPackage ./granatier.nix {};
grantleetheme = callPackage ./grantleetheme {}; grantleetheme = callPackage ./grantleetheme {};
gwenview = callPackage ./gwenview.nix {}; gwenview = callPackage ./gwenview.nix {};

View File

@ -0,0 +1,41 @@
{ lib
, mkDerivation
, extra-cmake-modules
, qttools
, qtwebengine
, kcoreaddons
, kconfigwidgets
, sonnet
, kxmlgui
, hunspell
, cmark
, multimarkdown
, pandoc
}:
mkDerivation {
pname = "ghostwriter";
nativeBuildInputs = [ extra-cmake-modules qttools ];
buildInputs = [
qtwebengine
hunspell
kcoreaddons
kconfigwidgets
sonnet
kxmlgui
];
qtWrapperArgs = [
"--prefix" "PATH" ":" (lib.makeBinPath [ cmark multimarkdown pandoc ])
];
meta = with lib; {
description = "A cross-platform, aesthetic, distraction-free Markdown editor";
homepage = "https://ghostwriter.kde.org/";
changelog = "https://invent.kde.org/office/ghostwriter/-/blob/master/CHANGELOG.md";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ dotlambda erictapen ];
};
}

View File

@ -545,6 +545,7 @@ mapAliases ({
getmail = throw "getmail has been removed from nixpkgs, migrate to getmail6"; # Added 2022-01-12 getmail = throw "getmail has been removed from nixpkgs, migrate to getmail6"; # Added 2022-01-12
gettextWithExpat = throw "'gettextWithExpat' has been renamed to/replaced by 'gettext'"; # Converted to throw 2022-02-22 gettextWithExpat = throw "'gettextWithExpat' has been renamed to/replaced by 'gettext'"; # Converted to throw 2022-02-22
gfm = throw "gfm has been removed"; # Added 2021-01-15 gfm = throw "gfm has been removed"; # Added 2021-01-15
ghostwriter = libsForQt5.kdeGear.ghostwriter; # Added 2023-03-18
giblib = throw " giblib has been removed from nixpkgs because upstream is gone"; # Added 2022-01-23 giblib = throw " giblib has been removed from nixpkgs because upstream is gone"; # Added 2022-01-23
giflib_4_1 = throw "giflib_4_1 has been removed; use giflib instead"; # Added 2020-02-12 giflib_4_1 = throw "giflib_4_1 has been removed; use giflib instead"; # Added 2020-02-12
git-annex-remote-b2 = throw "git-annex-remote-b2 has been dropped due to the lack of maintanence from upstream since 2016"; # Added 2022-06-02 git-annex-remote-b2 = throw "git-annex-remote-b2 has been dropped due to the lack of maintanence from upstream since 2016"; # Added 2022-06-02

View File

@ -30079,8 +30079,6 @@ with pkgs;
geoipupdate = callPackage ../applications/misc/geoipupdate { }; geoipupdate = callPackage ../applications/misc/geoipupdate { };
ghostwriter = libsForQt5.callPackage ../applications/editors/ghostwriter { };
globe-cli = callPackage ../applications/misc/globe-cli { }; globe-cli = callPackage ../applications/misc/globe-cli { };
gnss-sdr = callPackage ../applications/radio/gnss-sdr { }; gnss-sdr = callPackage ../applications/radio/gnss-sdr { };