Created
August 14, 2025 18:57
-
-
Save orzklv/dc2815021253f62a6657a7fd4b608cd4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
stdenv, | |
lib, | |
libiconv, | |
fetchFromGitHub, | |
gcc, | |
llvmPackages, | |
appstream, | |
appstream-glib, | |
cargo, | |
clippy, | |
desktop-file-utils, | |
gettext, | |
git, | |
meson, | |
ninja, | |
pkg-config, | |
polkit, | |
rustc, | |
rustPlatform, | |
wrapGAppsHook4, | |
gdk-pixbuf, | |
glib, | |
gnome-desktop, | |
adwaita-icon-theme, | |
gtk4, | |
libadwaita, | |
libgweather, | |
openssl, | |
parted, | |
vte-gtk4, | |
}: let | |
getLibFolder = pkg: "${pkg}/lib"; | |
in | |
stdenv.mkDerivation rec { | |
pname = "e-imzo-manager"; | |
version = "0.1.1"; | |
src = fetchFromGitHub { | |
owner = "xinux-org"; | |
repo = "e-imzo"; | |
rev = version; | |
hash = "256-uDaqkz2VDvqTgi+k8EGGKjLkjoH93xXHQcgUc1NVo30="; | |
}; | |
cargoDeps = rustPlatform.fetchCargoVendor { | |
inherit pname version src; | |
hash = "sha256-rulWG4L/uN6+JBk+SzC0y57Pdw5N0Q1dJlpXGVo+vbQ="; | |
}; | |
nativeBuildInputs = [ | |
appstream | |
appstream-glib | |
cargo | |
clippy | |
desktop-file-utils | |
gettext | |
git | |
meson | |
ninja | |
pkg-config | |
polkit | |
rustc | |
rustPlatform.cargoSetupHook | |
wrapGAppsHook4 | |
]; | |
buildInputs = [ | |
desktop-file-utils | |
gdk-pixbuf | |
glib | |
gnome-desktop | |
adwaita-icon-theme | |
gtk4 | |
libadwaita | |
libgweather | |
openssl | |
parted | |
rustPlatform.bindgenHook | |
vte-gtk4 | |
]; | |
# Compiler LD variables | |
NIX_LDFLAGS = "-L${(getLibFolder libiconv)}"; | |
LD_LIBRARY_PATH = lib.makeLibraryPath [ | |
gcc | |
llvmPackages.llvm | |
]; | |
meta = with lib; { | |
homepage = "https://github.com/xinux-org/e-imzo"; | |
description = "A GTK application for managing E-IMZO keys"; | |
license = with lib.licenses; [asl20 mit]; | |
platforms = platforms.linux; | |
teams = [ lib.teams.uzinfocom ]; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment