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
This commit is contained in:
Robert Scott 2020-09-19 22:48:51 +01:00 committed by Jon
parent 781b870c91
commit 0b67d9e87a

View file

@ -14,7 +14,12 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ python3 pkgconfig vala_0_44 gobject-introspection wrapGAppsHook ]; nativeBuildInputs = [ python3 pkgconfig vala_0_44 gobject-introspection wrapGAppsHook ];
buildInputs = [ xmlbird libgee cairo gdk-pixbuf glib gtk3 webkitgtk libnotify sqlite gsettings-desktop-schemas ]; 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"; buildPhase = "./build.py";