Skip to content

Instantly share code, notes, and snippets.

@cleverca22
Forked from infinisil/scyther.nix
Created June 22, 2017 00:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save cleverca22/cc2b075ba1fb318bb60ff30fc7710472 to your computer and use it in GitHub Desktop.
Save cleverca22/cc2b075ba1fb318bb60ff30fc7710472 to your computer and use it in GitHub Desktop.
let
pkgs = import <nixpkgs> {};
in
pkgs.pkgsi686Linux.stdenv.mkDerivation rec {
name = "scyther-${version}";
version = "1.1.3";
src = pkgs.fetchFromGitHub {
owner = "cascremers";
repo = "scyther";
rev = "v${version}";
sha256 = "0rb4ha5bnjxnwj4f3hciq7kyj96fhw14hqbwl5kr9cdw8q62mx0h";
};
preConfigure = ''
set -x
cd src
ls
'';
dontUseCmakeBuildDir = true;
cmakeFlags = [ "-DCMAKE_BUILD_TYPE:STRING=Release" ];
buildInputs = with pkgs.pkgsi686Linux; [
cmake
flex
bison
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment