Skip to content

Commit

Permalink
birdfont: fix build on non-nixos/debian systems
Browse files Browse the repository at this point in the history
to do this we need to prevent platform.version() from using uname to
discover this is a debian kernel and try dpkg nonsense
  • Loading branch information
risicle authored and Jon committed Sep 20, 2020
1 parent 781b870 commit 0b67d9e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkgs/tools/misc/birdfont/default.nix
Expand Up @@ -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";

Expand Down

0 comments on commit 0b67d9e

Please sign in to comment.