Skip to content

Commit

Permalink
carburetor: init at 5.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mksafavi committed Dec 22, 2024
1 parent d810ba6 commit 9a96ceb
Showing 1 changed file with 76 additions and 0 deletions.
76 changes: 76 additions & 0 deletions pkgs/by-name/ca/carburetor/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
{
lib,
fetchFromGitLab,
fetchpatch2,
python3Packages,
appstream,
desktop-file-utils,
gobject-introspection,
pkg-config,
meson,
wrapGAppsHook4,
libadwaita,
tractor,
}:
let
# This package should be updated together with pkgs/by-name/tr/tractor/package.nix
version = "5.0.0";
in
python3Packages.buildPythonApplication {

pname = "carburetor";
inherit version;

pyproject = false;

src = fetchFromGitLab {
domain = "framagit.org";
owner = "tractor";
repo = "carburetor";
rev = version;
hash = "sha256-Z67bqjogPz5sz6JwM68z1jsaqvRBAOMDeBLcyLo+QLY=";
};

patches = [
(fetchpatch2 {
url = "https://framagit.org/tractor/carburetor/-/commit/620b70288942497abc20ad26c043b593f66e9e3b.diff";
hash = "sha256-oFKLjvu+fwgyU4FIUb2K8jwXOP34P3pEazOhofwveJw=";
})
];

build-system = [
meson
python3Packages.meson-python
];

nativeBuildInputs = [
appstream
desktop-file-utils
gobject-introspection
pkg-config
wrapGAppsHook4
];

buildInputs = [ libadwaita ];

dependencies = [
python3Packages.pycountry
python3Packages.pygobject3
tractor
];

dontWrapGApps = true;

preFixup = ''
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';

meta = {
homepage = "https://framagit.org/tractor/carburetor";
description = "Graphical settings app for Tractor in GTK";
license = lib.licenses.gpl3Plus;
platforms = lib.platforms.linux;
mainProgram = "carburetor";
maintainers = with lib.maintainers; [ mksafavi ];
};
}

0 comments on commit 9a96ceb

Please sign in to comment.