mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 17:53:37 +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.
58 lines
1.1 KiB
Nix
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";
|
|
};
|
|
}
|