mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-11 18:32:23 +08:00
poliedros: init at 1.0.1
This commit is contained in:
60
pkgs/by-name/po/poliedros/package.nix
Normal file
60
pkgs/by-name/po/poliedros/package.nix
Normal file
@@ -0,0 +1,60 @@
|
||||
{
|
||||
lib,
|
||||
python3Packages,
|
||||
fetchFromGitHub,
|
||||
ninja,
|
||||
meson,
|
||||
pkg-config,
|
||||
wrapGAppsHook4,
|
||||
glib,
|
||||
desktop-file-utils,
|
||||
appstream-glib,
|
||||
gobject-introspection,
|
||||
libadwaita,
|
||||
nix-update-script,
|
||||
}:
|
||||
let
|
||||
version = "1.0.1";
|
||||
in
|
||||
python3Packages.buildPythonApplication {
|
||||
pname = "poliedros";
|
||||
inherit version;
|
||||
pyproject = false;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "kriptolix";
|
||||
repo = "Poliedros";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-1lYEsfyl6ckH1TmMLRP+flnm77INiA8ntnGVWnwpLvs=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
meson
|
||||
ninja
|
||||
pkg-config
|
||||
wrapGAppsHook4
|
||||
glib
|
||||
desktop-file-utils
|
||||
appstream-glib
|
||||
gobject-introspection
|
||||
];
|
||||
|
||||
pythonPath = [ python3Packages.pygobject3 ];
|
||||
|
||||
buildInputs = [ libadwaita ];
|
||||
|
||||
dontWrapGApps = true;
|
||||
|
||||
makeWrapperArgs = [ "\${gappsWrapperArgs[@]}" ];
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
description = "Multi-type dice roller";
|
||||
homepage = "https://github.com/kriptolix/Poliedros";
|
||||
changelog = "https://github.com/kriptolix/Poliedros/releases/tag/v${version}";
|
||||
license = lib.licenses.gpl3Plus;
|
||||
mainProgram = "poliedros";
|
||||
maintainers = [ lib.maintainers.awwpotato ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user