spacepaste

  1.  
  2. with import <nixpkgs> {} ;
  3. #{ stdenv, fetchurl, pkgconfig, cmake, makeWrapper, qt5 }:
  4. with stdenv.lib;
  5. let
  6. version = "0.9.1";
  7. in stdenv.mkDerivation {
  8. name = "qcomicbook-${version}";
  9. src = fetchurl {
  10. url = "https://github.com/stolowski/QComicBook/archive/0.9.1.tar.gz";
  11. sha256 = "39bb6ba0e20569985c930b0e8bdb19ae9c5453f27e9f7c01c6d44f56fb204619";
  12. };
  13. nativeBuildInputs = [
  14. cmake pkgconfig
  15. ];
  16. buildInputs = [
  17. (with qt5; [qtbase qttools qtx11extras])
  18. poppler_qt5
  19. ];
  20. postInstall = ''
  21. substituteInPlace $out/share/applications/*.desktop \
  22. --replace "Exec=qcomicbook" "Exec=$out/bin/qcomicbook"
  23. '';
  24. }
  25.