lsd2dsl: 0.5.2 → 0.5.4
This commit is contained in:
parent
eeef9a1793
commit
41e124f033
1 changed files with 15 additions and 5 deletions
|
@ -1,23 +1,33 @@
|
||||||
{ stdenv, mkDerivation, lib, fetchFromGitHub, cmake
|
{ lib, stdenv, mkDerivation, fetchFromGitHub
|
||||||
|
, makeDesktopItem, copyDesktopItems, cmake
|
||||||
, boost, libvorbis, libsndfile, minizip, gtest, qtwebkit }:
|
, boost, libvorbis, libsndfile, minizip, gtest, qtwebkit }:
|
||||||
|
|
||||||
mkDerivation rec {
|
mkDerivation rec {
|
||||||
pname = "lsd2dsl";
|
pname = "lsd2dsl";
|
||||||
version = "0.5.2";
|
version = "0.5.4";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "nongeneric";
|
owner = "nongeneric";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0s0la6zkg584is93p4nj1ha3pbnvadq84zgsv8nym3r35n7k8czi";
|
sha256 = "sha256-PLgfsVVrNBTxI4J0ukEOFRoBkbmB55/sLNn5KyiHeAc=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake ];
|
nativeBuildInputs = [ cmake ] ++ lib.optional stdenv.isLinux copyDesktopItems;
|
||||||
|
|
||||||
buildInputs = [ boost libvorbis libsndfile minizip gtest qtwebkit ];
|
buildInputs = [ boost libvorbis libsndfile minizip gtest qtwebkit ];
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = "-Wno-error=unused-result -Wno-error=missing-braces";
|
NIX_CFLAGS_COMPILE = "-Wno-error=unused-result -Wno-error=missing-braces";
|
||||||
|
|
||||||
|
desktopItems = lib.singleton (makeDesktopItem {
|
||||||
|
name = "lsd2dsl";
|
||||||
|
exec = "lsd2dsl-qtgui";
|
||||||
|
desktopName = "lsd2dsl";
|
||||||
|
genericName = "lsd2dsl";
|
||||||
|
comment = meta.description;
|
||||||
|
categories = "Dictionary;FileTools;Qt;";
|
||||||
|
});
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
install -Dm755 console/lsd2dsl gui/lsd2dsl-qtgui -t $out/bin
|
install -Dm755 console/lsd2dsl gui/lsd2dsl-qtgui -t $out/bin
|
||||||
'' + lib.optionalString stdenv.isDarwin ''
|
'' + lib.optionalString stdenv.isDarwin ''
|
||||||
|
@ -33,6 +43,6 @@ mkDerivation rec {
|
||||||
'';
|
'';
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ sikmir ];
|
maintainers = with maintainers; [ sikmir ];
|
||||||
platforms = with platforms; linux ++ darwin;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue