Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 stdenv,
4 fetchFromGitLab,
5 blueprint-compiler,
6 cargo,
7 desktop-file-utils,
8 meson,
9 ninja,
10 pkg-config,
11 rustPlatform,
12 rustc,
13 wrapGAppsHook4,
14 cairo,
15 dbus,
16 gdk-pixbuf,
17 glib,
18 gtk4,
19 libadwaita,
20 openssl,
21 pango,
22 nix-update-script,
23}:
24
25stdenv.mkDerivation (finalAttrs: {
26 pname = "impression";
27 version = "3.4.0";
28
29 src = fetchFromGitLab {
30 owner = "adhami3310";
31 repo = "Impression";
32 tag = "v${finalAttrs.version}";
33 hash = "sha256-YNRj44bgZfJYMBPI3q9OnWFaG6x1xez8LZM1sIti5mQ=";
34 };
35
36 cargoDeps = rustPlatform.fetchCargoVendor {
37 inherit (finalAttrs) pname version src;
38 hash = "sha256-uK5kPPBBa5hI4RHj1RRohur0jzkjwePafY6E9U9vEFk=";
39 };
40
41 nativeBuildInputs = [
42 blueprint-compiler
43 cargo
44 desktop-file-utils
45 meson
46 ninja
47 pkg-config
48 rustPlatform.cargoSetupHook
49 rustc
50 wrapGAppsHook4
51 ];
52
53 buildInputs = [
54 cairo
55 dbus
56 gdk-pixbuf
57 glib
58 gtk4
59 libadwaita
60 openssl
61 pango
62 ];
63
64 passthru = {
65 updateScript = nix-update-script { };
66 };
67
68 meta = {
69 description = "Straight-forward and modern application to create bootable drives";
70 homepage = "https://gitlab.com/adhami3310/Impression";
71 license = lib.licenses.gpl3Only;
72 mainProgram = "impression";
73 maintainers = with lib.maintainers; [ dotlambda ];
74 teams = [ lib.teams.gnome-circle ];
75 platforms = lib.platforms.linux;
76 };
77})