mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
paps: 0.7.1 -> 0.8.0, switch to meson
This commit is contained in:
parent
e61241410d
commit
158f81a325
1 changed files with 33 additions and 18 deletions
|
@ -2,42 +2,57 @@
|
||||||
lib,
|
lib,
|
||||||
stdenv,
|
stdenv,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
autoconf,
|
fetchpatch,
|
||||||
automake,
|
meson,
|
||||||
|
ninja,
|
||||||
pkg-config,
|
pkg-config,
|
||||||
intltool,
|
fmt,
|
||||||
|
glib,
|
||||||
pango,
|
pango,
|
||||||
|
versionCheckHook,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "paps";
|
pname = "paps";
|
||||||
version = "0.7.1";
|
version = "0.8.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "dov";
|
owner = "dov";
|
||||||
repo = "paps";
|
repo = "paps";
|
||||||
rev = "v${version}";
|
rev = "v${finalAttrs.version}";
|
||||||
sha256 = "129wpm2ayxs6qfh2761d4x9c034ivb2bcmmcnl56qs4448qb9495";
|
hash = "sha256-bNF/kZl/fGAT+He9kMHYj5ERhJwCJJABjhV3H+bs3D0=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# remove when 0.8.1 is released
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/dov/paps/commit/e9270aaac5e0b8018a6fad9a562ee48e7b2c3113.patch";
|
||||||
|
name = "fix-g_utf8_next_char-cast";
|
||||||
|
hash = "sha256-fedkyjd8cGFUuUQCbGii7wfMCmK6vye/1/vHWuJiJI4=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
autoconf
|
meson
|
||||||
automake
|
ninja
|
||||||
pkg-config
|
pkg-config
|
||||||
intltool
|
|
||||||
];
|
];
|
||||||
buildInputs = [ pango ];
|
buildInputs = [
|
||||||
|
fmt
|
||||||
|
glib
|
||||||
|
pango
|
||||||
|
];
|
||||||
|
|
||||||
preConfigure = ''
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
||||||
./autogen.sh
|
versionCheckProgramArg = "--version";
|
||||||
'';
|
doInstallCheck = true;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = {
|
||||||
description = "Pango to PostScript converter";
|
description = "Pango to PostScript converter";
|
||||||
homepage = "https://github.com/dov/paps";
|
homepage = "https://github.com/dov/paps";
|
||||||
license = licenses.lgpl2;
|
license = lib.licenses.lgpl2;
|
||||||
maintainers = [ ];
|
maintainers = [ ];
|
||||||
platforms = platforms.linux;
|
platforms = lib.platforms.linux;
|
||||||
mainProgram = "paps";
|
mainProgram = "paps";
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue