nixpkgs/pkgs/by-name/ma/marker/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
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.
2024-11-09 20:04:51 +08:00

58 lines
1.1 KiB
Nix

{ stdenv
, lib
, fetchFromGitHub
, itstool
, meson
, ninja
, pkg-config
, wrapGAppsHook3
, gtk3
, gtksourceview
, gtkspell3
, webkitgtk_4_1
, pandoc
}:
stdenv.mkDerivation rec {
pname = "marker";
version = "2023.05.02";
src = fetchFromGitHub {
owner = "fabiocolacio";
repo = "Marker";
rev = version;
fetchSubmodules = true;
hash = "sha256-HhDhigQ6Aqo8R57Yrf1i69sM0feABB9El5R5OpzOyB0=";
};
nativeBuildInputs = [
itstool
meson
ninja
pkg-config
wrapGAppsHook3
];
buildInputs = [
gtk3
gtksourceview
gtkspell3
webkitgtk_4_1
pandoc
];
postPatch = ''
meson rewrite kwargs set project / version '${version}'
'';
meta = with lib; {
homepage = "https://fabiocolacio.github.io/Marker/";
description = "Markdown editor for the Linux desktop made with GTK3";
maintainers = with maintainers; [ trepetti aleksana ];
license = licenses.gpl3Plus;
platforms = platforms.linux;
changelog = "https://github.com/fabiocolacio/Marker/releases/tag/${version}";
mainProgram = "marker";
};
}