571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
35 lines
899 B
Nix
35 lines
899 B
Nix
{ lib, stdenv, fetchFromGitHub, unzip, txt2tags }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libixp";
|
|
version = "unstable-2022-04-04";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "0intro";
|
|
repo = "libixp";
|
|
rev = "ca2acb2988e4f040022f0e2094c69ab65fa6ec53";
|
|
hash = "sha256-S25DmXJ7fN0gXLV0IzUdz8hXPTYEHmaSG7Mnli6GQVc=";
|
|
};
|
|
|
|
postPatch = lib.optionalString stdenv.cc.isClang ''
|
|
substituteInPlace mk/ixp.mk \
|
|
--replace "©" "C "
|
|
'';
|
|
|
|
postConfigure = ''
|
|
sed -i -e "s|^PREFIX.*=.*$|PREFIX = $out|" config.mk
|
|
'';
|
|
|
|
nativeBuildInputs = [ unzip ];
|
|
buildInputs = [ txt2tags ];
|
|
|
|
meta = {
|
|
homepage = "https://github.com/0intro/libixp";
|
|
description = "Portable, simple C-language 9P client and server library";
|
|
mainProgram = "ixpc";
|
|
maintainers = with lib.maintainers; [ kovirobi ];
|
|
license = lib.licenses.mit;
|
|
platforms = with lib.platforms; unix;
|
|
};
|
|
}
|