nixpkgs/pkgs/by-name/pl/plotinus/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

48 lines
905 B
Nix

{ lib, stdenv
, fetchFromGitHub
, gettext
, libxml2
, pkg-config
, gtk3
, cmake
, ninja
, vala
, nixosTests
, wrapGAppsHook3 }:
stdenv.mkDerivation rec {
pname = "plotinus";
version = "0.2.0";
src = fetchFromGitHub {
owner = "p-e-w";
repo = "plotinus";
rev = "v${version}";
sha256 = "19k6f6ivg4ab57m62g6fkg85q9sv049snmzq1fyqnqijggwshxfz";
};
nativeBuildInputs = [
pkg-config
wrapGAppsHook3
vala
cmake
ninja
gettext
libxml2
];
buildInputs = [
gtk3
];
passthru.tests = { inherit (nixosTests) plotinus; };
meta = with lib; {
description = "Searchable command palette in every modern GTK application";
homepage = "https://github.com/p-e-w/plotinus";
maintainers = with maintainers; [ samdroid-apps ];
platforms = platforms.linux;
# No COPYING file, but headers in the source code
license = licenses.gpl3;
};
}