pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / by-name / lo / lorem / package.nix
blob05200e2ef690c8a90ea2a21c246bc5990f2b1b3f
1 { lib
2 , cargo
3 , desktop-file-utils
4 , fetchFromGitLab
5 , glib
6 , gtk4
7 , libadwaita
8 , meson
9 , ninja
10 , pkg-config
11 , rustPlatform
12 , rustc
13 , stdenv
14 , wrapGAppsHook4
17 stdenv.mkDerivation (finalAttrs: {
18   pname = "lorem";
19   version = "1.4";
21   src = fetchFromGitLab {
22     domain = "gitlab.gnome.org";
23     owner = "World/design";
24     repo = "lorem";
25     rev = finalAttrs.version;
26     hash = "sha256-6+kDKKK1bkIOZlqzKWpzpjAS5o7bkbVFITMZVmJijuU=";
27   };
29   cargoDeps = rustPlatform.fetchCargoTarball {
30     src = finalAttrs.src;
31     name = "${finalAttrs.pname}-${finalAttrs.version}";
32     hash = "sha256-nzP2Jp9l1QgL7Wk9SWlsSVNaeVe3t48MmeX7Xuz+PKM=";
33   };
35   nativeBuildInputs = [
36     cargo
37     desktop-file-utils
38     meson
39     ninja
40     pkg-config
41     rustPlatform.cargoSetupHook
42     rustc
43     wrapGAppsHook4
44   ];
46   buildInputs = [
47     glib
48     gtk4
49     libadwaita
50   ];
52   meta = with lib; {
53     changelog = "https://gitlab.gnome.org/World/design/lorem/-/releases/${finalAttrs.version}";
54     description = "Generate placeholder text";
55     homepage = "https://apps.gnome.org/Lorem/";
56     license = licenses.gpl3Plus;
57     mainProgram = "lorem";
58     maintainers = with maintainers; [ michaelgrahamevans ];
59     platforms = platforms.linux;
60   };