python312Packages.vdf: avoid using pname for src.repo
[NixPkgs.git] / pkgs / os-specific / linux / pflask / default.nix
blob53ed1e5a342ca7b59faa9740f3e7d2382054b3ba
1 { lib, stdenv, fetchFromGitHub, fetchpatch, python3, wafHook }:
3 stdenv.mkDerivation rec {
4   pname = "pflask";
5   version = "unstable-2018-01-23";
7   src = fetchFromGitHub {
8     owner = "ghedo";
9     repo = pname;
10     rev = "9ac31ffe2ed29453218aac89ae992abbd6e7cc69";
11     hash = "sha256-bAKPUj/EipZ98kHbZiFZZI3hLVMoQpCrYKMmznpSDhg=";
12   };
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   ];
24   nativeBuildInputs = [ python3 wafHook ];
26   postInstall = ''
27     mkdir -p $out/bin
28     cp build/pflask $out/bin
29   '';
31   meta = {
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;
37     maintainers = [ ];
38   };