1 { lib, stdenv, fetchFromGitHub, fetchpatch, python3, wafHook }:
3 stdenv.mkDerivation rec {
5 version = "unstable-2018-01-23";
7 src = fetchFromGitHub {
10 rev = "9ac31ffe2ed29453218aac89ae992abbd6e7cc69";
11 hash = "sha256-bAKPUj/EipZ98kHbZiFZZI3hLVMoQpCrYKMmznpSDhg=";
15 # Pull patch pending upstream inclusion for -fno-common toolchain support:
16 # https://github.com/ghedo/pflask/pull/30
18 name = "fno-common.patch";
19 url = "https://github.com/ghedo/pflask/commit/73ba32ec48e1e0e4a56b1bceed4635711526e079.patch";
20 hash = "sha256-KVuBS7LbYJQv6NXljpSiGGja7ar7W6A6SKzkEjB1B6U=";
24 nativeBuildInputs = [ python3 wafHook ];
28 cp build/pflask $out/bin
32 description = "Lightweight process containers for Linux";
33 mainProgram = "pflask";
34 homepage = "https://ghedo.github.io/pflask/";
35 license = lib.licenses.bsd2;
36 platforms = lib.platforms.linux;