Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 650036f02225
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 101133deaeea
Choose a head ref
  • 1 commit
  • 3 files changed
  • 1 contributor

Commits on Nov 15, 2018

  1. fasm: init at 1.73.04 (#50378)

    orivej authored and orivej-nixos committed Nov 15, 2018
    Copy the full SHA
    101133d View commit details
Showing with 57 additions and 0 deletions.
  1. +24 −0 pkgs/development/compilers/fasm/bin.nix
  2. +28 −0 pkgs/development/compilers/fasm/default.nix
  3. +5 −0 pkgs/top-level/all-packages.nix
24 changes: 24 additions & 0 deletions pkgs/development/compilers/fasm/bin.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{ stdenvNoCC, lib, fetchurl }:

stdenvNoCC.mkDerivation rec {
name = "fasm-bin-${version}";

version = "1.73.04";

src = fetchurl {
url = "https://flatassembler.net/fasm-${version}.tgz";
sha256 = "0y0xkf9fzcm5gklhdi61wjpd1p8islpbcnkv5k16aqci3qsd0ia1";
};

installPhase = ''
install -D fasm${lib.optionalString stdenvNoCC.isx86_64 ".x64"} $out/bin/fasm
'';

meta = with lib; {
description = "x86(-64) macro assembler to binary, MZ, PE, COFF, and ELF";
homepage = https://flatassembler.net/download.php;
license = licenses.bsd2;
maintainers = with maintainers; [ orivej ];
platforms = [ "i686-linux" "x86_64-linux" ];
};
}
28 changes: 28 additions & 0 deletions pkgs/development/compilers/fasm/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{ stdenv, lib, fasm-bin, isx86_64 }:

stdenv.mkDerivation rec {
inherit (fasm-bin) version src meta;

name = "fasm-${version}";

nativeBuildInputs = [ fasm-bin ];

buildPhase = ''
fasm source/Linux${lib.optionalString isx86_64 "/x64"}/fasm.asm fasm
for tool in listing prepsrc symbols; do
fasm tools/libc/$tool.asm
cc -o tools/libc/fasm-$tool tools/libc/$tool.o
done
'';

outputs = [ "out" "doc" ];

installPhase = ''
install -Dt $out/bin fasm tools/libc/fasm-*
docs=$doc/share/doc/fasm
mkdir -p $docs
cp -r examples/ *.txt tools/fas.txt $docs
cp tools/readme.txt $docs/tools.txt
'';
}
5 changes: 5 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
@@ -6644,6 +6644,11 @@ with pkgs;

apache-flex-sdk = callPackage ../development/compilers/apache-flex-sdk { };

fasm = pkgsi686Linux.callPackage ../development/compilers/fasm {
inherit (stdenv) isx86_64;
};
fasm-bin = callPackage ../development/compilers/fasm/bin.nix { };

fpc = callPackage ../development/compilers/fpc { };

gambit = callPackage ../development/compilers/gambit { stdenv = gccStdenv; };