ksnip: Build from source
This commit is contained in:
parent
5f54cb62e1
commit
4f1e2dbc73
33
pkgs/development/libraries/kColorPicker/default.nix
Normal file
33
pkgs/development/libraries/kColorPicker/default.nix
Normal file
@ -0,0 +1,33 @@
|
||||
{ stdenv
|
||||
, lib
|
||||
, cmake
|
||||
, fetchFromGitHub
|
||||
, qtbase
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "kColorPicker";
|
||||
version = "0.1.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ksnip";
|
||||
repo = "kColorPicker";
|
||||
rev = "v${version}";
|
||||
sha256 = "1167xwk75yiz697vddbz3lq42l7ckhyl2cvigy4m05qgg9693ksd";
|
||||
};
|
||||
|
||||
dontWrapQtApps = true;
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
qtbase
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/ksnip/kImageAnnotator";
|
||||
description = "Tool for annotating images";
|
||||
license = licenses.lgpl3;
|
||||
maintainers = with maintainers; [ x3ro ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
39
pkgs/development/libraries/kImageAnnotator/default.nix
Normal file
39
pkgs/development/libraries/kImageAnnotator/default.nix
Normal file
@ -0,0 +1,39 @@
|
||||
{ stdenv
|
||||
, lib
|
||||
, cmake
|
||||
, fetchFromGitHub
|
||||
, kColorPicker
|
||||
, qtbase
|
||||
, qtsvg
|
||||
, qttranslations
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "kImageAnnotator";
|
||||
version = "0.5.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ksnip";
|
||||
repo = "kImageAnnotator";
|
||||
rev = "v${version}";
|
||||
sha256 = "07m3il928gwzzab349grpaksqqv4n7r6mn317sx2jly0x0bpv0rh";
|
||||
};
|
||||
|
||||
dontWrapQtApps = true;
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
kColorPicker
|
||||
qtbase
|
||||
qtsvg
|
||||
qttranslations
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/ksnip/kImageAnnotator";
|
||||
description = "Tool for annotating images";
|
||||
license = licenses.lgpl3;
|
||||
maintainers = with maintainers; [ x3ro ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
@ -1,10 +1,12 @@
|
||||
{ stdenv
|
||||
, lib
|
||||
, autoPatchelfHook
|
||||
, wrapQtAppsHook
|
||||
, fetchurl
|
||||
, dpkg
|
||||
, qtbase
|
||||
, cmake
|
||||
, extra-cmake-modules
|
||||
, fetchFromGitHub
|
||||
, kColorPicker
|
||||
, kImageAnnotator
|
||||
, qtsvg
|
||||
, qttranslations
|
||||
, qtx11extras
|
||||
}:
|
||||
|
||||
@ -12,33 +14,27 @@ stdenv.mkDerivation rec {
|
||||
pname = "ksnip";
|
||||
version = "1.9.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/ksnip/ksnip/releases/download/v${version}/ksnip-${version}-continuous.deb";
|
||||
sha256 = "0wabyhb6751jlbrr0872ks2klb6570yfjczn6fjb1albavsk8mml";
|
||||
src = fetchFromGitHub {
|
||||
owner = "ksnip";
|
||||
repo = "ksnip";
|
||||
rev = "v${version}";
|
||||
sha256 = "1izsk586n9fbm0di0hj6pxs7r0a6w554gpad1ghf247icr0pfc1l";
|
||||
};
|
||||
|
||||
sourceRoot = ".";
|
||||
unpackCmd = "dpkg-deb -x $src .";
|
||||
|
||||
dontConfigure = true;
|
||||
dontBuild = true;
|
||||
|
||||
buildInputs = [
|
||||
qtbase
|
||||
qtx11extras
|
||||
];
|
||||
dontWrapQtApps = true;
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoPatchelfHook
|
||||
wrapQtAppsHook
|
||||
dpkg
|
||||
cmake
|
||||
extra-cmake-modules
|
||||
qttranslations
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
mv usr $out/
|
||||
ln -s $out/usr/bin/ksnip $out/bin/ksnip
|
||||
'';
|
||||
buildInputs = [
|
||||
kColorPicker
|
||||
kImageAnnotator
|
||||
qtsvg
|
||||
qtx11extras
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/ksnip/ksnip";
|
||||
|
@ -16466,6 +16466,10 @@ with pkgs;
|
||||
|
||||
judy = callPackage ../development/libraries/judy { };
|
||||
|
||||
kColorPicker = libsForQt5.callPackage ../development/libraries/kColorPicker { };
|
||||
|
||||
kImageAnnotator = libsForQt5.callPackage ../development/libraries/kImageAnnotator { };
|
||||
|
||||
kddockwidgets = libsForQt5.callPackage ../development/libraries/kddockwidgets { };
|
||||
|
||||
keybinder = callPackage ../development/libraries/keybinder {
|
||||
|
Loading…
Reference in New Issue
Block a user