-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdefault.nix
More file actions
45 lines (37 loc) · 1.03 KB
/
Copy pathdefault.nix
File metadata and controls
45 lines (37 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{ pkgs ? import <nixpkgs> {} }:
pkgs.python3Packages.buildPythonApplication rec {
pname = "anime-fetch";
version = "0.0.0.0";
format = "cmake";
src = ./.;
nativeBuildInputs = [
pkgs.qt6.wrapQtAppsHook
pkgs.qt6.qtbase
pkgs.qt6.qtbase.dev
pkgs.qt6.qttools
pkgs.bash
pkgs.coreutils
pkgs.gnused
];
propagatedBuildInputs = [
pkgs.qt6.qtbase
];
postInstall = ''
# Desktop Entry & Mime
install -Dm644 "packages/anime-fetch-gui.desktop" "$out/share/applications/anime-fetch-gui.desktop"
# Docs
install -Dm644 "LICENSE.md" -t "$out/share/licenses/${pname}/"
install -Dm644 "README.md" "code-of-conduct.md" -t "$out/share/doc/${pname}/"
'';
dontCheckRuntimeDeps = true;
dontWrapQtApps = true;
preFixup = ''
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
'';
meta = with pkgs.lib; {
description = "A neofetch-inspired utility that fetch your system info with a OS-Tan";
license = licenses.gpl3;
platforms = platforms.linux;
mainProgram = "anime-fetch";
};
}