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.
46 lines
1.3 KiB
Nix
46 lines
1.3 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchurl
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gnu-cim";
|
|
version = "5.1";
|
|
|
|
outputs = ["out" "lib" "man" "info"];
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnu/cim/cim-${version}.tar.gz";
|
|
hash = "sha256-uQcXtm7EAFA73WnlN+i38+ip0QbDupoIoErlc2mgaak=";
|
|
};
|
|
|
|
postPatch = ''
|
|
for fname in lib/{simulation,simset}.c; do
|
|
substituteInPlace "$fname" \
|
|
--replace-fail \
|
|
'#include "../../lib/cim.h"' \
|
|
'#include "../lib/cim.h"'
|
|
done
|
|
'';
|
|
|
|
env.CFLAGS = lib.optionalString stdenv.cc.isClang "-Wno-return-type -Wno-error=implicit-function-declaration -Wno-error=implicit-int";
|
|
|
|
doCheck = true;
|
|
|
|
meta = with lib; {
|
|
description = "GNU compiler for the programming language Simula";
|
|
longDescription = ''
|
|
GNU Cim is a compiler for the programming language Simula.
|
|
It offers a class concept, separate compilation with full type checking,
|
|
interface to external C routines, an application package for process
|
|
simulation and a coroutine concept. Commonly used with the Demos for
|
|
discrete event modelling.
|
|
'';
|
|
homepage = "https://www.gnu.org/software/cim/";
|
|
license = licenses.gpl2;
|
|
platforms = platforms.all;
|
|
badPlatforms = [ "aarch64-darwin" ];
|
|
maintainers = with maintainers; [ pbsds ];
|
|
};
|
|
}
|