mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-14 15:36:47 +03:00
gnu-cobol: init at 2.0rc-2
This commit is contained in:
parent
e7322f1fdf
commit
bd03033b49
35
pkgs/development/compilers/gnu-cobol/default.nix
Normal file
35
pkgs/development/compilers/gnu-cobol/default.nix
Normal file
@ -0,0 +1,35 @@
|
||||
{ stdenv, fetchurl, gcc, makeWrapper
|
||||
, db, gmp, ncurses }:
|
||||
|
||||
let version = {
|
||||
maj = "2.0";
|
||||
min = "rc-2";
|
||||
};
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
name = "gnu-cobol-${version.maj}${version.min}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://sourceforge.com/projects/open-cobol/files/gnu-cobol/${version.maj}/gnu-cobol-${version.maj}_${version.min}.tar.gz";
|
||||
sha256 = "1pj7mjnp3l76zvzrh1xa6d4kw3jkvzqh39sbf02kiinq4y65s7zj";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
buildInputs = [ db gmp ncurses ];
|
||||
|
||||
postInstall = with stdenv.lib; ''
|
||||
wrapProgram "$out/bin/cobc" \
|
||||
--prefix PATH ':' "${gcc}/bin" \
|
||||
--prefix NIX_LDFLAGS ' ' "'$NIX_LDFLAGS'" \
|
||||
--prefix NIX_CFLAGS_COMPILE ' ' "'$NIX_CFLAGS_COMPILE'"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "An open-source COBOL compiler";
|
||||
homepage = http://sourceforge.net/projects/open-cobol/;
|
||||
license = licenses.gpl3;
|
||||
maintainers = with maintainers; [ ericsagnes ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
@ -2039,6 +2039,8 @@ with pkgs;
|
||||
|
||||
gnuapl = callPackage ../development/interpreters/gnu-apl { };
|
||||
|
||||
gnu-cobol = callPackage ../development/compilers/gnu-cobol { };
|
||||
|
||||
gnufdisk = callPackage ../tools/system/fdisk {
|
||||
guile = guile_1_8;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user