-
-
Notifications
You must be signed in to change notification settings - Fork 15.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Ivy Fan-Chiang <[email protected]>
- Loading branch information
1 parent
3f514ca
commit 73afd2e
Showing
1 changed file
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
{ | ||
lib, | ||
stdenv, | ||
fetchFromGitHub, | ||
makeDesktopItem, | ||
libsForQt5, | ||
freetype, | ||
graphite2, | ||
icu, | ||
krb5, | ||
systemdLibs, | ||
imagemagick, | ||
}: | ||
|
||
stdenv.mkDerivation (finalAttrs: { | ||
pname = "detect-it-easy"; | ||
version = "3.09"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "horsicq"; | ||
repo = "DIE-engine"; | ||
rev = finalAttrs.version; | ||
fetchSubmodules = true; | ||
hash = "sha256-A9YZBlGf3j+uSefPiDhrS1Qtu6vaLm4Yodt7BioGD2Q="; | ||
}; | ||
|
||
buildInputs = [ | ||
libsForQt5.qtbase | ||
libsForQt5.qtscript | ||
libsForQt5.qtsvg | ||
graphite2 | ||
freetype | ||
icu | ||
krb5 | ||
systemdLibs | ||
]; | ||
nativeBuildInputs = [ | ||
libsForQt5.wrapQtAppsHook | ||
libsForQt5.qmake | ||
imagemagick | ||
]; | ||
|
||
enableParallelBuilding = true; | ||
|
||
# work around wrongly created dirs in `install.sh` | ||
# https://github.com/horsicq/DIE-engine/issues/110 | ||
preInstall = '' | ||
mkdir -p $out/bin | ||
mkdir -p $out/share/applications | ||
mkdir -p $out/share/icons | ||
''; | ||
|
||
meta = { | ||
description = "Program for determining types of files for Windows, Linux and MacOS."; | ||
mainProgram = "die"; | ||
homepage = "https://github.com/horsicq/Detect-It-Easy"; | ||
maintainers = with lib.maintainers; [ ivyfanchiang ]; | ||
platforms = [ "x86_64-linux" ]; | ||
license = lib.licenses.mit; | ||
}; | ||
}) |