Skip to content

Instantly share code, notes, and snippets.

@infinisil
Created April 27, 2017 19:48
Show Gist options
  • Save infinisil/8fbf26a43c1a574aceeafc4ee31350aa to your computer and use it in GitHub Desktop.
Save infinisil/8fbf26a43c1a574aceeafc4ee31350aa to your computer and use it in GitHub Desktop.
{ stdenv, makeWrapper, pythonPackages }:
let
pkgs = import <nixpkgs> {};
in
with pythonPackages; buildPythonApplication rec {
name = "scyther-${version}";
version = "1.1.3";
src = pkgs.fetchzip {
url = "https://www.cs.ox.ac.uk/people/cas.cremers/downloads/scyther/scyther-linux-v${version}.tgz";
sha256 = "129sm9l2lawdpaw82a21958ni4a8vhn2fjvh3v5gilqz8li59bv5";
};
buildInputs = with pkgs; [
python27
wxPython
graphviz
];
format = "other";
installPhase = ''
mkdir -p "$out/src"
mv * "$out/src"
makeWrapper "$out/src/scyther-gui.py" "$out/bin/scyther"
'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment