Last active
May 25, 2017 22:46
-
-
Save Profpatsch/614ba1b27105443ef66fa84c4126bfd6 to your computer and use it in GitHub Desktop.
keysigning nixpkgs
This file contains 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
{ buildPythonApplication, pythonPackages, fetchFromGitHub | |
, avahi, dbus, gtk3, gobjectIntrospection }: | |
buildPythonApplication rec { | |
name = "gnome-keysign-${version}"; | |
version = "0.9"; | |
src = fetchFromGitHub { | |
owner = "gnome-keysign"; | |
repo = "gnome-keysign"; | |
rev = version; | |
sha256 = "16bssdlhhb76x8b398l66wsjfnsqb3dy50izm21y9kl29b4kgg60"; | |
}; | |
postPatch = '' | |
# monkeysign is not needed | |
sed -ie "s/^.*monkeysign.*$//" setup.py | |
''; | |
propagatedBuildInputs = [ | |
]; | |
buildInputs = [ | |
pythonPackages.pygobject3 | |
pythonPackages.requests pythonPackages.qrcode | |
(gobjectIntrospection.overrideAttrs (old: { | |
setupHook = ./intro-setup-hook.sh; | |
}) ) | |
]; | |
meta = {}; | |
} | |
This file contains 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
make_gobject_introspection_find_gir_files() { | |
echo FINDING GIR FILES | |
# required for .typelib files, eg mypaint git version | |
if [ -d "$1/lib/girepository-1.0" ]; then | |
addToSearchPath GI_TYPELIB_PATH $1/lib/girepository-1.0 | |
fi | |
# XDG_DATA_DIRS: required for .gir files? | |
if [ -d "$1/share" ]; then | |
addToSearchPath XDG_DATA_DIRS $1/share | |
fi | |
} | |
envHooks+=(make_gobject_introspection_find_gir_files) | |
_multioutMoveGlibGir() { | |
echo MOVING GIR FILES | |
moveToOutput share/gir-1.0 "${!outputDev}" | |
} | |
preFixupHooks+=(_multioutMoveGlibGir) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment