nixpkgs/pkgs/by-name/ba/base16-shell-preview/package.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

31 lines
767 B
Nix

{ lib
, python3Packages
, fetchPypi
}:
let
pname = "base16-shell-preview";
version = "1.0.0";
in
python3Packages.buildPythonApplication {
inherit pname version;
src = fetchPypi {
inherit version;
pname = "${lib.replaceStrings ["-"] ["_"] pname}";
hash = "sha256-retnbxjdjo+NeA1B0+jpM9kToAX/Rh0ze0yNF9AfDiU=";
};
# If enabled, it will attempt to run '__init__.py, failing by trying to write
# at "/homeless-shelter" as HOME
doCheck = false;
meta = {
homepage = "https://github.com/nvllsvm/base16-shell-preview";
description = "Browse and preview Base16 Shell themes in your terminal";
mainProgram = "base16-shell-preview";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ AndersonTorres ];
};
}