nixpkgs/pkgs/applications/misc/konsave/default.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

29 lines
722 B
Nix

{ lib, python3Packages, fetchPypi }:
python3Packages.buildPythonApplication rec {
pname = "konsave";
version = "2.2.0";
src = fetchPypi {
inherit version;
pname = "Konsave";
hash = "sha256-tWarqT2jFgCuSsa2NwMHRaR3/wj0khiRHidvRNMwM8M=";
};
nativeBuildInputs = with python3Packages; [ setuptools-scm ];
propagatedBuildInputs = with python3Packages; [ pyyaml setuptools ];
preCheck = ''
export HOME=$(mktemp -d)
'';
meta = with lib; {
description = "Save Linux Customization";
mainProgram = "konsave";
maintainers = with maintainers; [ MoritzBoehme ];
homepage = "https://github.com/Prayag2/konsave";
license = licenses.gpl3;
platforms = platforms.linux;
};
}