]> git.scottworley.com Git - srec/blob - default.nix
Timestamped output files
[srec] / default.nix
1 { pkgs ? import <nixpkgs> { }, lint ? false }:
2 pkgs.python3Packages.callPackage ({ autopep8, buildPythonPackage
3 , gobject-introspection, gtk4, lib, makeDesktopItem, mypy, pylint, pygobject3
4 , wrapGAppsHook4, }:
5 buildPythonPackage rec {
6 pname = "srec";
7 version = "1.0.2";
8
9 src = lib.cleanSource ./.;
10
11 doCheck = true;
12 checkPhase = "./test.sh";
13
14 nativeBuildInputs = [ gobject-introspection wrapGAppsHook4 ];
15 nativeCheckInputs = [ mypy ] ++ lib.optionals lint [ autopep8 pylint ];
16 buildInputs = [ gtk4 ];
17 pythonPath = [ pygobject3 ];
18
19 postInstall = ''
20 cp -r $desktopItem/share $out
21 '';
22
23 desktopItem = makeDesktopItem {
24 name = "SRec";
25 exec = "srec";
26 icon = ./srec.png;
27 comment = "Record video and audio";
28 desktopName = "SRec";
29 genericName = "Record Screen";
30 categories = [ "AudioVideo" "Video" ];
31 };
32
33 meta = {
34 description = "A simple GUI for screen recording";
35 homepage = "https://git.scottworley.com/srec";
36 license = pkgs.lib.licenses.gpl3;
37 maintainers = with pkgs.lib.maintainers; [ chkno ];
38 };
39
40 }) { }