nixpkgs/pkgs/by-name/co/colm/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
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.
2024-11-09 20:04:51 +08:00

36 lines
943 B
Nix

{ lib, stdenv, fetchurl, makeWrapper, gcc, asciidoc, autoreconfHook }:
stdenv.mkDerivation rec {
pname = "colm";
version = "0.13.0.7";
src = fetchurl {
url = "https://www.colm.net/files/colm/${pname}-${version}.tar.gz";
sha256 = "0f76iri173l2wja2v7qrwmf958cqwh5g9x4bhj2z8wknmlla6gz4";
};
patches = [ ./cross-compile.patch ];
nativeBuildInputs = [ makeWrapper asciidoc autoreconfHook ];
env = lib.optionalAttrs stdenv.cc.isGNU {
NIX_CFLAGS_COMPILE = "-Wno-error=int-conversion";
};
doCheck = true;
postInstall = ''
wrapProgram $out/bin/colm \
--prefix PATH ":" ${gcc}/bin
'';
meta = with lib; {
description = "Programming language for the analysis and transformation of computer languages";
mainProgram = "colm";
homepage = "http://www.colm.net/open-source/colm";
license = licenses.gpl2;
platforms = platforms.unix;
maintainers = with maintainers; [ pSub ];
};
}