Unverified Commit 9a727d49 authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

pflask: fix build (#354944)

parents dc2fb220 797b0cd5
Loading
Loading
Loading
Loading
+28 −6
Original line number Diff line number Diff line
{ lib, stdenv, fetchFromGitHub, fetchpatch, python3, wafHook }:
{
  lib,
  stdenv,
  fetchFromGitHub,
  fetchpatch,
  python3,
  wafHook,
  waf,
}:

stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
  pname = "pflask";
  version = "unstable-2018-01-23";

  src = fetchFromGitHub {
    owner = "ghedo";
    repo = pname;
    repo = "pflask";
    rev = "9ac31ffe2ed29453218aac89ae992abbd6e7cc69";
    hash = "sha256-bAKPUj/EipZ98kHbZiFZZI3hLVMoQpCrYKMmznpSDhg=";
  };
@@ -21,7 +29,21 @@ stdenv.mkDerivation rec {
    })
  ];

  nativeBuildInputs = [ python3 wafHook ];
  waf-version = "2.0.27";

  nativeBuildInputs = [
    python3
    (wafHook.override {
      waf = waf.overrideAttrs (old: {
        version = finalAttrs.waf-version;
        src = fetchFromGitHub {
          inherit (old.src) owner repo;
          rev = "waf-${finalAttrs.waf-version}";
          hash = "sha256-GeEoD5CHubwR4ndGk7J7czEf0hWtPQr88TqJDPqeK0s=";
        };
      });
    })
  ];

  postInstall = ''
    mkdir -p $out/bin
@@ -34,6 +56,6 @@ stdenv.mkDerivation rec {
    homepage = "https://ghedo.github.io/pflask/";
    license = lib.licenses.bsd2;
    platforms = lib.platforms.linux;
    maintainers = [ ];
    maintainers = with lib.maintainers; [ bot-wxt1221 ];
  };
}
})