nixpkgs/pkgs/by-name/lo/lorem/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

62 lines
1.2 KiB
Nix
Raw Normal View History

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