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.
43 lines
1.1 KiB
Nix
43 lines
1.1 KiB
Nix
{ lib, stdenv, fetchFromGitHub, makeWrapper, gmp, gcc, openssl, zlib }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "spasm-ng";
|
|
|
|
version = "unstable-2022-07-05";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "alberthdev";
|
|
repo = "spasm-ng";
|
|
rev = "5f0786d38f064835be674d4b7df42969967bb73c";
|
|
sha256 = "sha256-j7Z3oI+J0wZF4EG5OMMjuDe2o69KKGuJvfyHNPTLrXM=";
|
|
};
|
|
|
|
# GCC is needed for Darwin
|
|
nativeBuildInputs = [ makeWrapper gcc ];
|
|
buildInputs = [ gmp openssl zlib ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -Dm755 spasm -t $out/bin
|
|
install -Dm555 inc/*.inc -t $out/include
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
postFixup = ''
|
|
wrapProgram $out/bin/spasm --add-flags "-I $out/include"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/alberthdev/spasm-ng";
|
|
description = "Z80 assembler with extra features to support development for TI calculators";
|
|
mainProgram = "spasm";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = with maintainers; [ siraben ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|