nixpkgs/pkgs/by-name/fl/fluxboxlauncher/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

63 lines
1.3 KiB
Nix

{ lib
, fetchFromGitHub
, python3
, gtk3
, wrapGAppsHook3
, glibcLocales
, gobject-introspection
, gettext
, pango
, gdk-pixbuf
, atk
, fluxbox
}:
python3.pkgs.buildPythonApplication rec {
pname = "fluxboxlauncher";
version = "0.2.1";
src = fetchFromGitHub {
owner = "mothsart";
repo = "fluxboxlauncher";
rev = "0.2.1";
sha256 = "024h1dk0bhc5s4dldr6pqabrgcqih9p8cys5lqgkgz406y4vyzvf";
};
nativeBuildInputs = [
wrapGAppsHook3
gobject-introspection
pango
gdk-pixbuf
atk
gettext
];
buildInputs = [
glibcLocales
gtk3
python3
fluxbox
];
makeWrapperArgs = [ "--set LOCALE_ARCHIVE ${glibcLocales}/lib/locale/locale-archive"
"--set CHARSET en_us.UTF-8" ];
propagatedBuildInputs = with python3.pkgs; [
pygobject3
];
postInstall = ''
install -Dm444 fluxboxlauncher.desktop -t $out/share/applications
install -Dm444 fluxboxlauncher.svg -t $out/share/icons/hicolor/scalable/apps
'';
meta = with lib; {
description = "Gui editor (gtk) to configure applications launching on a fluxbox session";
mainProgram = "fluxboxlauncher";
homepage = "https://github.com/mothsART/fluxboxlauncher";
maintainers = with maintainers; [ mothsart ];
license = licenses.bsdOriginal;
platforms = platforms.linux;
};
}