Compare commits
No commits in common. "828a26c33da87dabc5ca15f78e166ac15d8dd039" and "22521bcc05a248f9608771fa0b026451539f8a75" have entirely different histories.
828a26c33d
...
22521bcc05
|
@ -24,10 +24,4 @@ in rec {
|
||||||
|
|
||||||
vivaldi = callPackage ./pkgs/vivaldi { };
|
vivaldi = callPackage ./pkgs/vivaldi { };
|
||||||
|
|
||||||
} // optionalAttrs (builtins.elem pkgs.system pkgs.lib.platforms.linux) rec {
|
|
||||||
|
|
||||||
xmm7360-pci = callPackage ./pkgs/xmm7360-pci { kernel = pkgs.linux; };
|
|
||||||
|
|
||||||
xmm7360-pci-tools = callPackage ./pkgs/xmm7360-pci/tools.nix { inherit xmm7360-pci; };
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,11 +44,6 @@
|
||||||
ryzen_smu
|
ryzen_smu
|
||||||
vivaldi
|
vivaldi
|
||||||
;
|
;
|
||||||
} // prev.lib.optionalAttrs (builtins.elem prev.system prev.lib.platforms.linux) rec {
|
|
||||||
inherit (localPkgs)
|
|
||||||
xmm7360-pci
|
|
||||||
xmm7360-pci-tools
|
|
||||||
;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -8,7 +8,7 @@ let
|
||||||
package = callPackageWith pkgs ../../pkgs/navidrome-bin { };
|
package = callPackageWith pkgs ../../pkgs/navidrome-bin { };
|
||||||
settingsFormat = pkgs.formats.json {};
|
settingsFormat = pkgs.formats.json {};
|
||||||
|
|
||||||
in lib.optionalAttrs (lib.versionOlder lib.version "21.11pre") {
|
in {
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
services.navidrome = {
|
services.navidrome = {
|
||||||
|
|
|
@ -20,13 +20,13 @@ let
|
||||||
|
|
||||||
in package.override rec {
|
in package.override rec {
|
||||||
name = "snipe-it";
|
name = "snipe-it";
|
||||||
version = "5.2.0";
|
version = "5.1.8";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "snipe";
|
owner = "snipe";
|
||||||
repo = "snipe-it";
|
repo = "snipe-it";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-LT1JVHwmprLS52+OWgnddTKam5dEHDSuyHKxFG9WadM=";
|
sha256 = "sha256-4WOBk7DyCRQ03wCcGpThfrnqP03dzqN2EhYnKndrCbs=";
|
||||||
};
|
};
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
|
@ -1,33 +0,0 @@
|
||||||
{ lib, fetchFromGitHub, kernel }:
|
|
||||||
|
|
||||||
kernel.stdenv.mkDerivation rec {
|
|
||||||
pname = "xmm7360-pci";
|
|
||||||
version = "unstable-20210802";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "xmm7360";
|
|
||||||
repo = pname;
|
|
||||||
rev = "b28714b6fb73887ecd5c0c25ffc0613d6eab6533";
|
|
||||||
sha256 = "sha256-wNSQZvPL297pTAVT9Hj4IgcsHSc7KVNe7K0raS0bObg=";
|
|
||||||
};
|
|
||||||
|
|
||||||
nativeBuildInputs = kernel.moduleBuildDependencies;
|
|
||||||
|
|
||||||
patches = [ ./fix.patch ];
|
|
||||||
|
|
||||||
makeFlags = [
|
|
||||||
"KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
|
|
||||||
];
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
install -m0644 -D xmm7360.ko $out/lib/modules/${kernel.modDirVersion}/misc/xmm7360.ko
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "PCI driver for Fibocom L850-GL modem base on Intel XMM7360 modem";
|
|
||||||
homepage = src.meta.homepage;
|
|
||||||
license = licenses.gpl2;
|
|
||||||
maintainers = with maintainers; [ aw ];
|
|
||||||
platforms = platforms.linux;
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,13 +0,0 @@
|
||||||
diff --git a/xmm7360.c b/xmm7360.c
|
|
||||||
index ccd149d..acc7fea 100644
|
|
||||||
--- a/xmm7360.c
|
|
||||||
+++ b/xmm7360.c
|
|
||||||
@@ -1272,7 +1272,7 @@ static int xmm7360_tty_write(struct tty_struct *tty,
|
|
||||||
return written;
|
|
||||||
}
|
|
||||||
|
|
||||||
-static int xmm7360_tty_write_room(struct tty_struct *tty)
|
|
||||||
+static unsigned int xmm7360_tty_write_room(struct tty_struct *tty)
|
|
||||||
{
|
|
||||||
struct queue_pair *qp = tty->driver_data;
|
|
||||||
if (!xmm7360_qp_can_write(qp))
|
|
|
@ -1,46 +0,0 @@
|
||||||
{ lib, stdenv, fetchFromGitHub, xmm7360-pci, python3Packages, makeWrapper }:
|
|
||||||
|
|
||||||
let
|
|
||||||
inherit (xmm7360-pci) pname version src;
|
|
||||||
|
|
||||||
pythonPath = with python3Packages; makePythonPath [
|
|
||||||
python
|
|
||||||
configargparse
|
|
||||||
dbus-python
|
|
||||||
pyroute2
|
|
||||||
];
|
|
||||||
|
|
||||||
in stdenv.mkDerivation {
|
|
||||||
pname = "${pname}-tools";
|
|
||||||
inherit version src;
|
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
|
||||||
|
|
||||||
buildInputs = [ python3Packages.python ];
|
|
||||||
|
|
||||||
dontBuild = true;
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
runHook preInstall
|
|
||||||
|
|
||||||
mkdir -p $out/bin $out/lib
|
|
||||||
cp -a rpc/* $out/lib
|
|
||||||
|
|
||||||
pushd $out/lib
|
|
||||||
find . -executable -type f | while read file; do
|
|
||||||
makeWrapper ${python3Packages.python.interpreter} $out/bin/''${file%.py} \
|
|
||||||
--add-flags "$out/lib/''${file}" \
|
|
||||||
--prefix NIX_PYTHONPATH : "${pythonPath}"
|
|
||||||
done
|
|
||||||
|
|
||||||
runHook postInstall
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = xmm7360-pci.meta.description + " (tools)";
|
|
||||||
homepage = src.meta.homepage;
|
|
||||||
license = licenses.gpl2;
|
|
||||||
maintainers = with maintainers; [ aw ];
|
|
||||||
platforms = platforms.linux;
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Reference in New Issue