nixpkgs/pkgs/development/libraries/libcangjie/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
1.2 KiB
Nix
Raw Normal View History

2022-02-10 05:55:31 +00:00
{ lib, stdenv, autoconf, automake, libtool, m4, fetchurl, bash, pkg-config, sqlite }:
2014-01-30 14:38:34 +00:00
stdenv.mkDerivation rec {
pname = "libcangjie";
version = "1.4_rev_${rev}";
rev = "a73c1d8783f7b6526fd9b2cc44a669ffa5518d3d";
2014-01-30 14:38:34 +00:00
2022-02-10 05:55:31 +00:00
# fetchFromGitLab isn't working for some reason
src = fetchurl {
url = "https://gitlab.freedesktop.org/cangjie/libcangjie/-/archive/a73c1d8783f7b6526fd9b2cc44a669ffa5518d3d/libcangjie-a73c1d8783f7b6526fd9b2cc44a669ffa5518d3d.tar.gz";
sha256 = "sha256-j5IQ0hBefoF8p966YrfZgYCw7ht5twJhYi4l0NneukQ=";
2014-01-30 14:38:34 +00:00
};
nativeBuildInputs = [ pkg-config autoconf automake ];
buildInputs = [ libtool m4 sqlite ];
2014-01-30 14:38:34 +00:00
configureScript = "./autogen.sh";
2014-01-30 14:38:34 +00:00
preConfigure = ''
find . -name '*.sh' -exec sed -e 's@#!/bin/bash@${bash}/bin/bash@' -i '{}' ';'
'';
doCheck = true;
meta = {
description = "A C library implementing the Cangjie input method";
longDescription = ''
libcangjie is a library implementing the Cangjie input method.
'';
homepage = "https://gitlab.freedesktop.org/cangjie/libcangjie";
license = lib.licenses.lgpl3Plus;
2014-01-30 14:38:34 +00:00
maintainers = [ lib.maintainers.linquize ];
platforms = lib.platforms.all;
2014-01-30 14:38:34 +00:00
};
}