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

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

34 lines
872 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, unzip, txt2tags }:
2015-09-01 10:23:11 +00:00
stdenv.mkDerivation rec {
pname = "libixp";
version = "unstable-2022-04-04";
2015-09-01 10:23:11 +00:00
src = fetchFromGitHub {
owner = "0intro";
repo = "libixp";
rev = "ca2acb2988e4f040022f0e2094c69ab65fa6ec53";
hash = "sha256-S25DmXJ7fN0gXLV0IzUdz8hXPTYEHmaSG7Mnli6GQVc=";
2015-09-01 10:23:11 +00:00
};
2022-09-02 04:05:53 +00:00
postPatch = lib.optionalString stdenv.cc.isClang ''
substituteInPlace mk/ixp.mk \
--replace "©" "C "
'';
postConfigure = ''
2015-09-01 10:23:11 +00:00
sed -i -e "s|^PREFIX.*=.*$|PREFIX = $out|" config.mk
'';
nativeBuildInputs = [ unzip ];
buildInputs = [ txt2tags ];
2015-09-01 10:23:11 +00:00
meta = {
homepage = "https://github.com/0intro/libixp";
2015-09-01 10:23:11 +00:00
description = "Portable, simple C-language 9P client and server libary";
maintainers = with lib.maintainers; [ kovirobi ];
license = lib.licenses.mit;
platforms = with lib.platforms; unix;
2015-09-01 10:23:11 +00:00
};
}