nixpkgs/pkgs/by-name/ca/catnip-gtk4/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

47 lines
925 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
, pkg-config
, wrapGAppsHook4
, gobject-introspection
, gtk4
, libadwaita
}:
buildGoModule {
pname = "catnip-gtk4";
version = "unstable-2023-06-17";
src = fetchFromGitHub {
owner = "diamondburned";
repo = "catnip-gtk4";
rev = "e635904af952fcee7e9f4b1a3e45ce8519428d9f";
hash = "sha256-yJNw/pDgvIzcX4H6RoFJBiRwzWQXWF3obUPxYf4ALOY=";
};
vendorHash = "sha256-gcr3e5Fm2xCTOoTgl71Dv3rxI6gQbqRz0M1NO7fAZk0=";
nativeBuildInputs = [
gobject-introspection
pkg-config
wrapGAppsHook4
];
buildInputs = [
gtk4
libadwaita
];
ldflags = [ "-s" "-w" ];
enableParallelBuilding = true;
meta = with lib; {
description = "GTK4 frontend for catnip";
homepage = "https://github.com/diamondburned/catnip-gtk4";
license = licenses.gpl3Only;
maintainers = with maintainers; [ figsoda ];
mainProgram = "catnip-gtk4";
};
}