diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-06-14 17:51:26 +0300 |
---|---|---|
committer | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-06-14 17:51:26 +0300 |
commit | 60772dfe01b0aacbe1546e627be5bd9e121572a3 (patch) | |
tree | 14086e3b45370c7dced9dbbbed96e74f00fb78ce /pkgs/applications/graphics/comical/default.nix | |
parent | 04cc54c2311a81a357711289c73a60a22b0b90d2 (diff) |
comical: refactor
Diffstat (limited to 'pkgs/applications/graphics/comical/default.nix')
-rw-r--r-- | pkgs/applications/graphics/comical/default.nix | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/pkgs/applications/graphics/comical/default.nix b/pkgs/applications/graphics/comical/default.nix index 00733e8a603b9..208c0ea821cd1 100644 --- a/pkgs/applications/graphics/comical/default.nix +++ b/pkgs/applications/graphics/comical/default.nix @@ -1,4 +1,11 @@ -{ lib, stdenv, fetchurl, wxGTK32, util-linux, zlib, Cocoa }: +{ lib +, stdenv +, fetchurl +, hexdump +, wxGTK32 +, zlib +, Cocoa +}: stdenv.mkDerivation rec { pname = "comical"; @@ -6,14 +13,19 @@ stdenv.mkDerivation rec { src = fetchurl { url = "mirror://sourceforge/comical/comical-${version}.tar.gz"; - sha256 = "0b6527cc06b25a937041f1eb248d0fd881cf055362097036b939817f785ab85e"; + hash = "sha256-C2UnzAayWpNwQfHrJI0P2IHPBVNiCXA2uTmBf3hauF4="; }; - patches = [ ./wxgtk-3.2.patch ]; + patches = [ + ./wxgtk-3.2.patch + ]; + + nativeBuildInputs = [ + hexdump + ]; buildInputs = [ wxGTK32 - util-linux zlib ] ++ lib.optionals stdenv.isDarwin [ Cocoa @@ -25,7 +37,9 @@ stdenv.mkDerivation rec { "CXX=${stdenv.cc.targetPrefix}c++" ]; - preInstall = "mkdir -pv $out/bin"; + preInstall = '' + mkdir -p $out/bin + ''; meta = { description = "Viewer of CBR and CBZ files, often used to store scanned comics"; |