nixpkgs/pkgs/by-name/pf/pflask/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

62 lines
1.5 KiB
Nix
Raw Normal View History

2024-11-10 07:58:55 +00:00
{
lib,
stdenv,
fetchFromGitHub,
fetchpatch,
python3,
wafHook,
2024-11-10 08:00:44 +00:00
waf,
2024-11-10 07:58:55 +00:00
}:
2016-02-09 21:13:33 +00:00
2024-11-10 08:00:44 +00:00
stdenv.mkDerivation (finalAttrs: {
pname = "pflask";
2022-03-17 13:54:24 +00:00
version = "unstable-2018-01-23";
2016-02-09 21:13:33 +00:00
2021-09-19 15:07:48 +00:00
src = fetchFromGitHub {
owner = "ghedo";
2024-11-10 07:59:55 +00:00
repo = "pflask";
2022-03-17 13:54:24 +00:00
rev = "9ac31ffe2ed29453218aac89ae992abbd6e7cc69";
hash = "sha256-bAKPUj/EipZ98kHbZiFZZI3hLVMoQpCrYKMmznpSDhg=";
2016-02-09 21:13:33 +00:00
};
patches = [
# Pull patch pending upstream inclusion for -fno-common toolchain support:
# https://github.com/ghedo/pflask/pull/30
(fetchpatch {
name = "fno-common.patch";
url = "https://github.com/ghedo/pflask/commit/73ba32ec48e1e0e4a56b1bceed4635711526e079.patch";
hash = "sha256-KVuBS7LbYJQv6NXljpSiGGja7ar7W6A6SKzkEjB1B6U=";
})
];
2024-11-10 08:00:44 +00:00
waf-version = "2.0.27";
2024-11-10 07:58:55 +00:00
nativeBuildInputs = [
python3
2024-11-10 08:00:44 +00:00
(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=";
};
});
})
2024-11-10 07:58:55 +00:00
];
2022-03-17 13:54:24 +00:00
postInstall = ''
mkdir -p $out/bin
cp build/pflask $out/bin
'';
2016-02-09 21:13:33 +00:00
meta = {
description = "Lightweight process containers for Linux";
mainProgram = "pflask";
2021-09-19 15:07:48 +00:00
homepage = "https://ghedo.github.io/pflask/";
license = lib.licenses.bsd2;
platforms = lib.platforms.linux;
2024-11-10 07:59:55 +00:00
maintainers = with lib.maintainers; [ bot-wxt1221 ];
2016-02-09 21:13:33 +00:00
};
2024-11-10 07:59:55 +00:00
})