2024-01-25 14:12:00 +00:00
|
|
|
{ lib
|
|
|
|
, cargo
|
|
|
|
, desktop-file-utils
|
|
|
|
, fetchFromGitLab
|
|
|
|
, glib
|
|
|
|
, gtk4
|
|
|
|
, libadwaita
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, rustPlatform
|
|
|
|
, rustc
|
|
|
|
, stdenv
|
|
|
|
, wrapGAppsHook4
|
|
|
|
}:
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2024-01-25 14:12:00 +00:00
|
|
|
pname = "lorem";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "1.4";
|
2024-01-25 14:12:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.gnome.org";
|
|
|
|
owner = "World/design";
|
2024-05-15 15:35:15 +00:00
|
|
|
repo = "lorem";
|
|
|
|
rev = finalAttrs.version;
|
|
|
|
hash = "sha256-6+kDKKK1bkIOZlqzKWpzpjAS5o7bkbVFITMZVmJijuU=";
|
2024-01-25 14:12:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
2024-05-15 15:35:15 +00:00
|
|
|
src = finalAttrs.src;
|
|
|
|
name = "${finalAttrs.pname}-${finalAttrs.version}";
|
|
|
|
hash = "sha256-nzP2Jp9l1QgL7Wk9SWlsSVNaeVe3t48MmeX7Xuz+PKM=";
|
2024-01-25 14:12:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cargo
|
|
|
|
desktop-file-utils
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
rustPlatform.cargoSetupHook
|
|
|
|
rustc
|
|
|
|
wrapGAppsHook4
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
gtk4
|
|
|
|
libadwaita
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-05-15 15:35:15 +00:00
|
|
|
changelog = "https://gitlab.gnome.org/World/design/lorem/-/releases/${finalAttrs.version}";
|
2024-01-25 14:12:00 +00:00
|
|
|
description = "Generate placeholder text";
|
2024-05-15 15:35:15 +00:00
|
|
|
homepage = "https://apps.gnome.org/Lorem/";
|
2024-01-25 14:12:00 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
mainProgram = "lorem";
|
2024-05-15 15:35:15 +00:00
|
|
|
maintainers = with maintainers; [ michaelgrahamevans ];
|
2024-01-25 14:12:00 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2024-05-15 15:35:15 +00:00
|
|
|
})
|