From 0b67d9e87aea54ea13b4f5031a5b58676834ff4a Mon Sep 17 00:00:00 2001 From: Robert Scott Date: Sat, 19 Sep 2020 22:48:51 +0100 Subject: [PATCH] birdfont: fix build on non-nixos/debian systems to do this we need to prevent platform.version() from using uname to discover this is a debian kernel and try dpkg nonsense --- pkgs/tools/misc/birdfont/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/misc/birdfont/default.nix b/pkgs/tools/misc/birdfont/default.nix index bdf68d708a5..7cec0cab996 100644 --- a/pkgs/tools/misc/birdfont/default.nix +++ b/pkgs/tools/misc/birdfont/default.nix @@ -14,7 +14,12 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ python3 pkgconfig vala_0_44 gobject-introspection wrapGAppsHook ]; buildInputs = [ xmlbird libgee cairo gdk-pixbuf glib gtk3 webkitgtk libnotify sqlite gsettings-desktop-schemas ]; - postPatch = "patchShebangs ."; + postPatch = '' + substituteInPlace install.py \ + --replace 'platform.version()' '"Nix"' + + patchShebangs . + ''; buildPhase = "./build.py";