at 23.11-beta 38 lines 1.1 kB view raw
1{ lib, stdenv, fetchFromGitHub, fetchpatch, python3, wafHook }: 2 3stdenv.mkDerivation rec { 4 pname = "pflask"; 5 version = "unstable-2018-01-23"; 6 7 src = fetchFromGitHub { 8 owner = "ghedo"; 9 repo = pname; 10 rev = "9ac31ffe2ed29453218aac89ae992abbd6e7cc69"; 11 hash = "sha256-bAKPUj/EipZ98kHbZiFZZI3hLVMoQpCrYKMmznpSDhg="; 12 }; 13 14 patches = [ 15 # Pull patch pending upstream inclusion for -fno-common toolchain support: 16 # https://github.com/ghedo/pflask/pull/30 17 (fetchpatch { 18 name = "fno-common.patch"; 19 url = "https://github.com/ghedo/pflask/commit/73ba32ec48e1e0e4a56b1bceed4635711526e079.patch"; 20 hash = "sha256-KVuBS7LbYJQv6NXljpSiGGja7ar7W6A6SKzkEjB1B6U="; 21 }) 22 ]; 23 24 nativeBuildInputs = [ python3 wafHook ]; 25 26 postInstall = '' 27 mkdir -p $out/bin 28 cp build/pflask $out/bin 29 ''; 30 31 meta = { 32 description = "Lightweight process containers for Linux"; 33 homepage = "https://ghedo.github.io/pflask/"; 34 license = lib.licenses.bsd2; 35 platforms = lib.platforms.linux; 36 maintainers = with lib.maintainers; [ ]; 37 }; 38}