mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-17 19:23:50 +00:00
60 lines
1.2 KiB
Nix
60 lines
1.2 KiB
Nix
{ lib
|
|
, python3Packages
|
|
, fetchFromGitHub
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, gobject-introspection
|
|
, wrapGAppsHook4
|
|
, desktop-file-utils
|
|
, libadwaita
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "ascii-draw";
|
|
version = "0.3.4";
|
|
pyproject = false;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Nokse22";
|
|
repo = "ascii-draw";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-S5tFK+mJeWtkdS2WjE+lZ2Gfg4N1S0a29AbbcGeKSD0=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
gobject-introspection
|
|
wrapGAppsHook4
|
|
desktop-file-utils
|
|
];
|
|
|
|
buildInputs = [
|
|
libadwaita
|
|
];
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
pygobject3
|
|
pyfiglet
|
|
emoji
|
|
];
|
|
|
|
dontWrapGApps = true;
|
|
|
|
preFixup = ''
|
|
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
|
'';
|
|
|
|
meta = {
|
|
description = "An app to draw diagrams or anything using only ASCII";
|
|
homepage = "https://github.com/Nokse22/ascii-draw";
|
|
license = lib.licenses.gpl3Plus;
|
|
mainProgram = "ascii-draw";
|
|
maintainers = with lib.maintainers; [ aleksana ];
|
|
# gnulib bindtextdomain is missing on various other unix platforms
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|