Skip to content

Commit

Permalink
spasm-ng: 2020-08-03 -> 2022-07-03 (#332844)
Browse files Browse the repository at this point in the history
  • Loading branch information
smancill committed Aug 29, 2024
2 parents d8c6bdd + ecd4a41 commit b8d0f54
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions pkgs/development/compilers/spasm-ng/default.nix
Original file line number Diff line number Diff line change
@@ -1,25 +1,34 @@
{ lib, stdenv, fetchFromGitHub, gcc, gmp, openssl, zlib }:
{ lib, stdenv, fetchFromGitHub, makeWrapper, gmp, gcc, openssl, zlib }:

stdenv.mkDerivation rec {
pname = "spasm-ng";

version = "unstable-2020-08-03";
version = "unstable-2022-07-05";

src = fetchFromGitHub {
owner = "alberthdev";
repo = "spasm-ng";
rev = "221898beff2442f459b80ab89c8e1035db97868e";
sha256 = "0xspxmp2fir604b4xsk4hi1gjv61rnq2ypppr7cj981jlhicmvjj";
rev = "5f0786d38f064835be674d4b7df42969967bb73c";
sha256 = "sha256-j7Z3oI+J0wZF4EG5OMMjuDe2o69KKGuJvfyHNPTLrXM=";
};

nativeBuildInputs = [ gcc ];

# 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; {
Expand Down

0 comments on commit b8d0f54

Please sign in to comment.