Skip to content

Instantly share code, notes, and snippets.

@siraben
Last active December 30, 2018 07:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save siraben/1cb0bfdb82909ba23940d7019d92e834 to your computer and use it in GitHub Desktop.
Save siraben/1cb0bfdb82909ba23940d7019d92e834 to your computer and use it in GitHub Desktop.
Building scas with Nix
with import <nixpkgs> {};
lib.fix (self: {
z80e = stdenv.mkDerivation {
name = "z80e";
src = fetchurl {
url = "https://github.com/KnightOS/z80e/archive/0.4.0.tar.gz";
sha256 = "b8940393bfff843ef26b2f43770a9d7e8cb0601f67804571b238bbca52919e7d";
};
buildInputs = [ self.scas cmake readline ];
cmakeFlags = [ "-DCMAKE_BUILD_TYPE=Release" ];
};
scas = stdenv.mkDerivation {
name = "scas";
src = fetchurl {
url = "https://github.com/KnightOS/scas/archive/0.3.3.tar.gz";
sha256 = "11072245e09129d283d0f749a511c04930536e96ce05065da03fd70047fb0c10";
};
hardeningDisable = [ "format" ];
nativeBuildInputs = [ cmake ];
patchPhase = "patchShebangs generate-tables.sh";
cmakeFlags = [ "-DCMAKE_BUILD_TYPE=Release" ];
};
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment