Merge pull request #111039 from 0x4A6F/master-firejail

firejail: 0.9.64 -> 0.9.64.2
This commit is contained in:
Michael Raskin 2021-02-02 22:15:03 +00:00 committed by GitHub
commit e83ab2e04d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 27 deletions

View file

@ -1,25 +1,18 @@
{lib, stdenv, fetchurl, fetchpatch, which, xdg-dbus-proxy, nixosTests}: { lib, stdenv, fetchFromGitHub, fetchpatch, which, xdg-dbus-proxy, nixosTests }:
let
s = # Generated upstream information stdenv.mkDerivation rec {
rec { pname = "firejail";
baseName="firejail"; version = "0.9.64.2";
version="0.9.64";
name="${baseName}-${version}"; src = fetchFromGitHub {
url="mirror://sourceforge/firejail/firejail/firejail-${version}.tar.xz"; owner = "netblue30";
sha256="1zgjwy2k57nx0r63fzr15gijah098ig0bll66jd615vc9q3snfz5"; repo = "firejail";
}; rev = version;
buildInputs = [ sha256 = "1adizsb7pxr101bvvd359hxympnv36rnikp78npdr5dcvwddv3dv";
which
];
in
stdenv.mkDerivation {
inherit (s) name version;
inherit buildInputs;
src = fetchurl {
inherit (s) url sha256;
name = "${s.name}.tar.bz2";
}; };
buildInputs = [ which ];
patches = [ patches = [
# Adds the /nix directory when using an overlay. # Adds the /nix directory when using an overlay.
# Required to run any programs under this mode. # Required to run any programs under this mode.
@ -79,12 +72,10 @@ stdenv.mkDerivation {
passthru.tests = nixosTests.firejail; passthru.tests = nixosTests.firejail;
meta = { meta = {
inherit (s) version;
description = "Namespace-based sandboxing tool for Linux"; description = "Namespace-based sandboxing tool for Linux";
license = lib.licenses.gpl2Plus ; license = lib.licenses.gpl2Plus;
maintainers = [lib.maintainers.raskin]; maintainers = [ lib.maintainers.raskin ];
platforms = lib.platforms.linux; platforms = lib.platforms.linux;
homepage = "https://firejail.wordpress.com/"; homepage = "https://firejail.wordpress.com/";
downloadPage = "https://sourceforge.net/projects/firejail/files/firejail/";
}; };
} }

View file

@ -1,3 +0,0 @@
url https://sourceforge.net/projects/firejail/files/firejail/
version_link '[-][0-9.]+[.]tar[.][a-z0-9]+/download$'
SF_redirect