aboutsummaryrefslogtreecommitdiff
path: root/tools/snap-app.nix
blob: c845d1f81ea37a309cfe8ebd531f1ecca26236b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{stdenv, fetchFromGitHub, zlib}:

stdenv.mkDerivation rec {
  name = "snap-git";
  src = fetchFromGitHub {
    owner = "amplab";
    repo = "snap";
    rev = "669a341cfa5c3e0a80098bf5aa51e3332f868d2b";
    sha256 = "1810d8wn88wbagip7hlnwwg7z6jqyiyfnnvdiir06s3rrmn95mjh";
  };
  buildInputs = [ zlib ];
  postConfigure = ''
    sed -i 's/-Wno-format/-Wformat/g' Makefile
  '';
  installPhase = ''
    mkdir -p $out/bin
    cp snap-aligner $out/bin
  '';
}