Merge pull request #138534 from Stunkymonkey/os-specific-github

This commit is contained in:
Sandro 2021-09-23 11:22:12 +02:00 committed by GitHub
commit e04c24ca02
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 57 additions and 35 deletions

View file

@ -1,11 +1,14 @@
{ lib, stdenv, fetchurl, pkg-config, autoreconfHook, fuse }:
{ lib, stdenv, fetchFromGitHub, pkg-config, autoreconfHook, fuse }:
stdenv.mkDerivation {
name = "afuse-0.4.1";
stdenv.mkDerivation rec {
pname = "afuse-0.4.1";
version = "0.4.1";
src = fetchurl {
url = "https://github.com/pcarrier/afuse/archive/v0.4.1.tar.gz";
sha256 = "1sfhicmxppkvdd4z9klfn63snb71gr9hff6xij1gzk94xg6m0ycc";
src = fetchFromGitHub {
owner = "pcarrier";
repo = "afuse";
rev = "v${version}";
hash = "sha256-JivJ/xRxUiR0Mnm41T0514kF+T7ePeGpk4IHhWApKBo=";
};
nativeBuildInputs = [ autoreconfHook pkg-config ];

View file

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, fetchpatch, kernel, runtimeShell }:
{ lib, stdenv, fetchFromGitHub, fetchpatch, kernel, runtimeShell }:
let
baseName = "bbswitch";
@ -10,9 +10,11 @@ in
stdenv.mkDerivation {
inherit name;
src = fetchurl {
url = "https://github.com/Bumblebee-Project/${baseName}/archive/v${version}.tar.gz";
sha256 = "0xql1nv8dafnrcg54f3jsi3ny3cd2ca9iv73pxpgxd2gfczvvjkn";
src = fetchFromGitHub {
owner = "Bumblebee-Project";
repo = "bbswitch";
rev = "v${version}";
hash = "sha256-FHC8myKnouNDERVds2QCJj1ZstjHrOzFpb+FDiSBjL4=";
};
patches = [

View file

@ -1,12 +1,14 @@
{ stdenv, lib, fetchurl, autoreconfHook, pam, qrencode }:
{ stdenv, lib, fetchFromGitHub, autoreconfHook, pam, qrencode }:
stdenv.mkDerivation rec {
pname = "google-authenticator-libpam";
version = "1.09";
src = fetchurl {
url = "https://github.com/google/google-authenticator-libpam/archive/${version}.tar.gz";
sha256 = "0dyhgizl2jcrnfn5sxipxawqrbr6qgjh7aggw8fz3hix861pj7db";
src = fetchFromGitHub {
owner = "google";
repo = "google-authenticator-libpam";
rev = version;
hash = "sha256-DS0h6FWMNKnSSj039bH6iyWrERa5M7LBSkbyig6pyxY=";
};
nativeBuildInputs = [ autoreconfHook ];

View file

@ -1,5 +1,12 @@
{ lib, stdenv, fetchzip, bison, flex, which, perl
, sensord ? false, rrdtool ? null
{ lib
, stdenv
, fetchFromGitHub
, bison
, flex
, which
, perl
, sensord ? false
, rrdtool ? null
}:
assert sensord -> rrdtool != null;
@ -7,16 +14,18 @@ assert sensord -> rrdtool != null;
stdenv.mkDerivation rec {
pname = "lm-sensors";
version = "3.6.0";
dashedVersion = lib.replaceStrings ["."] ["-"] version;
dashedVersion = lib.replaceStrings [ "." ] [ "-" ] version;
src = fetchzip {
url = "https://github.com/lm-sensors/lm-sensors/archive/V${dashedVersion}.tar.gz";
sha256 = "1ipf6wjx037sqyhy0r5jh4983h216anq9l68ckn2x5c3qc4wfmzn";
src = fetchFromGitHub {
owner = "lm-sensors";
repo = "lm-sensors";
rev = "V${dashedVersion}";
hash = "sha256-9lfHCcODlS7sZMjQhK0yQcCBEoGyZOChx/oM0CU37sY=";
};
nativeBuildInputs = [ bison flex which ];
buildInputs = [ perl ]
++ lib.optional sensord rrdtool;
++ lib.optional sensord rrdtool;
makeFlags = [
"PREFIX=${placeholder "out"}"

View file

@ -1,13 +1,14 @@
{ lib, stdenv, fetchurl, python, wafHook }:
{ lib, stdenv, fetchFromGitHub, python, wafHook }:
stdenv.mkDerivation rec {
pname = "pflask";
version = "git-2015-12-17";
rev = "599418bb6453eaa0ccab493f9411f13726c1a636";
version = "unstable-2015-12-17";
src = fetchurl {
url = "https://github.com/ghedo/pflask/archive/${rev}.tar.gz";
sha256 = "2545fca37f9da484b46b6fb5e3a9bbba6526a9725189fe4af5227ef6e6fca440";
src = fetchFromGitHub {
owner = "ghedo";
repo = "pflask";
rev = "599418bb6453eaa0ccab493f9411f13726c1a636";
hash = "sha256-0RjitZd2JUK7WUEJuw4qhUx3joY5OI0Hh74mTzp7GmY=";
};
nativeBuildInputs = [ wafHook ];
@ -15,9 +16,9 @@ stdenv.mkDerivation rec {
meta = {
description = "Lightweight process containers for Linux";
homepage = "https://ghedo.github.io/pflask/";
license = lib.licenses.bsd2;
platforms = lib.platforms.linux;
homepage = "https://ghedo.github.io/pflask/";
license = lib.licenses.bsd2;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ ];
};
}

View file

@ -1,14 +1,19 @@
{ lib, stdenv, fetchurl
, kernel, klibc
{ lib
, stdenv
, fetchFromGitHub
, kernel
, klibc
}:
stdenv.mkDerivation rec {
name = "v86d-${version}-${kernel.version}";
version = "0.1.10";
src = fetchurl {
url = "https://github.com/mjanusz/v86d/archive/v86d-${version}.tar.gz";
sha256 = "1flnpp8rc945cxr6jr9dlm8mi8gr181zrp2say4269602s1a4ymg";
src = fetchFromGitHub {
owner = "mjanusz";
repo = "v86d";
rev = "v86d-${version}";
hash = "sha256-95LRzVbO/DyddmPwQNNQ290tasCGoQk7FDHlst6LkbA=";
};
patchPhase = ''