Skip to content

Instantly share code, notes, and snippets.

@infinisil
Created June 22, 2017 00:04
Show Gist options
  • Save infinisil/f436c34458f3083a1e67f342237f985b to your computer and use it in GitHub Desktop.
Save infinisil/f436c34458f3083a1e67f342237f985b to your computer and use it in GitHub Desktop.
let
pkgs = import <nixpkgs> {};
in
pkgs.stdenv.mkDerivation rec {
name = "scyther-${version}";
version = "1.1.3";
src = pkgs.fetchFromGitHub {
owner = "cascremers";
repo = "scyther";
rev = "v${version}";
sha256 = "0rb4ha5bnjxnwj4f3hciq7kyj96fhw14hqbwl5kr9cdw8q62mx0h";
};
postUnpack = "cd src";
buildPhase = ''
CMFLAGS="-D CMAKE_BUILD_TYPE:STRING=Release"
cmake $CMFLAGS -D TARGETOS=Unix && make
'';
buildInputs = with pkgs; [
cmake
flex
bison
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment