-
Notifications
You must be signed in to change notification settings - Fork 31
/
default.nix
63 lines (56 loc) · 1.24 KB
/
default.nix
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{ pkgs ? import <nixpkgs> {} }:
pkgs.rustPlatform.buildRustPackage rec {
pname = "cartero";
version = "git";
src = ./.;
cargoLock.lockFile = ./Cargo.lock;
nativeBuildInputs = with pkgs; [
meson
ninja
cargo
rustc
pkg-config
blueprint-compiler
desktop-file-utils
gtk4
shared-mime-info
glib
wrapGAppsHook
hicolor-icon-theme
];
buildInputs = with pkgs; [
gtksourceview5
pango
gdk-pixbuf
openssl_3_3
graphene
libadwaita
];
desktopItems = with pkgs; [
(makeDesktopItem rec {
desktopName = "Cartero";
name = lib.toLower desktopName;
comment = "Make HTTP requests and test APIs";
exec = "cartero";
tryExec = exec;
icon = "es.danirod.Cartero.svg";
keywords = [ "Gnome" "GTK" "HTTP" "RESET" ];
categories = [ "GNOME" "GTK" "Network" "Development" ];
terminal = false;
type = "Application";
})
];
configurePhase = ''
runHook cargoSetupHook
runHook mesonConfigurePhase
'';
meta = with pkgs.lib; {
description = "Make HTTP requests and test APIs";
license = licenses.gpl3Only;
mainProgram = "cartero";
maintainers = with maintainers; [
danirod
alphatechnolog
];
};
}