More moving out of overlays

Moved homebrew installer package out of overlays
Removed ITG specific Python packages entirely
This commit is contained in:
Greg Hellings
2024-10-11 13:07:41 -05:00
parent 6a3f482792
commit 54dfebe7f7
7 changed files with 21 additions and 134 deletions
-5
View File
@@ -11,11 +11,6 @@ let
}; };
py = nix23.python311.withPackages ( py = nix23.python311.withPackages (
p: with p; [ p: with p; [
django
djangorestframework
django-rapyd-modernauth
environs
mysqlclient
pyyaml pyyaml
ruamel-yaml ruamel-yaml
tox tox
-4
View File
@@ -31,9 +31,6 @@ rec {
cp = python-final.callPackage; cp = python-final.callPackage;
in in
{ {
django-rapyd-modernauth = cp ./django-rapyd-modernauth.nix { };
graypy = cp ./graypy.nix { };
itg-django-utils = cp ./itg-django-utils.nix { };
xonsh-apipenv = cp ./xonsh-apipenv.nix { }; xonsh-apipenv = cp ./xonsh-apipenv.nix { };
} }
) )
@@ -43,7 +40,6 @@ rec {
enwiki-dump = prev.callPackage ./enwiki-dump.nix { }; enwiki-dump = prev.callPackage ./enwiki-dump.nix { };
# Overrides of packages # Overrides of packages
brew = prev.callPackage ./homebrew.nix { };
copier = ( copier = (
if is2405 then if is2405 then
prev.copier.overridePythonAttrs (_: { prev.copier.overridePythonAttrs (_: {
-43
View File
@@ -1,43 +0,0 @@
{ lib
, buildPythonPackage
, fetchPypi
, click
, django
, python-dotenv
, pytz
, setuptools
, sqlparse
, zipp
}:
buildPythonPackage rec {
pname = "django-rapyd-modernauth";
version = "0.0.4";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-kDZjI32LcKsmLI38ruINKOUfi6lWTIqXF5qIQHi0LeQ=";
};
meta = with lib; {
description = "A Django application that provides a custom User model where the username is the email address.";
homepage = "https://github.com/karthicraghupathi/django_rapyd_modernauth";
license = licenses.afl20;
maintainers = [ ];
};
doCheck = false;
buildInputs = [
click
django
python-dotenv
pytz
setuptools
sqlparse
zipp
];
nativeBuildInputs = [
];
}
-34
View File
@@ -1,34 +0,0 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, amqplib
, mock
, pytestCheckHook
, requests
,
}:
buildPythonPackage rec {
pname = "graypy";
version = "2.1.0";
src = fetchFromGitHub {
owner = "severb";
repo = "graypy";
rev = "2.1.0";
hash = "sha256-y1HbJEpqnAgOeB+zXKy3iUT6Lpv0bufjL7+jWUSAjFs=";
};
nativeCheckInputs = [
amqplib
mock
pytestCheckHook
requests
];
meta = with lib; {
description = "Python logging handlers that send messages in the Graylog Extended Log Format (GELF).";
homepage = "https://github.com/severb/graypy";
license = licenses.bsd3;
};
}
-34
View File
@@ -1,34 +0,0 @@
{ lib
, buildPythonPackage
, fetchurl
, django
, djangorestframework
, graypy
, setuptools
,
}:
buildPythonPackage rec {
pname = "itg-django-utils";
version = "0.1.11";
src = fetchurl {
url = "https://pypi.ivrtechnology.com/packages/itg-django-utils-0.1.12.tar.gz";
hash = "sha256-LbOl4L4UZbRTlLuBL4L3ser6+WDuP3R5a03EIh1xSK8=";
};
propagatedBuildInputs = [
django
djangorestframework
graypy
setuptools
];
meta = with lib; {
description = "ITG specific stuff";
homepage = "http://www.ivrtechnology.com";
maintainers = [ ];
};
doCheck = false;
}
+1
View File
@@ -9,6 +9,7 @@ in
#iso = top.self.nixosConfigurations.iso.config.system.build.isoImage; #iso = top.self.nixosConfigurations.iso.config.system.build.isoImage;
#iso-beta = self.nixosConfigurations.iso-beta.config.system.build.isoImage; #iso-beta = self.nixosConfigurations.iso-beta.config.system.build.isoImage;
aacs = c ./aacs.nix { }; aacs = c ./aacs.nix { };
brew = c ./homebrew.nix { };
create_ssl = c ./create_ssl.nix { }; create_ssl = c ./create_ssl.nix { };
inject-darwin = c ./inject-darwin.nix { }; inject-darwin = c ./inject-darwin.nix { };
inject = c ./inject.nix { }; inject = c ./inject.nix { };
+20 -14
View File
@@ -1,18 +1,19 @@
{ lib {
, pkgs lib,
, stdenv fetchFromGitHub,
, bash stdenv,
, curl bash,
, git curl,
, ruby git,
, ... ruby,
...
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "homebrew-installer"; pname = "homebrew-installer";
version = "20230531"; version = "20230531";
src = pkgs.fetchFromGitHub { src = fetchFromGitHub {
owner = "Homebrew"; owner = "Homebrew";
repo = "install"; repo = "install";
rev = "716a1d024f32890ef75ea82c18a769abc24e9475"; rev = "716a1d024f32890ef75ea82c18a769abc24e9475";
@@ -27,16 +28,21 @@ stdenv.mkDerivation rec {
]; ];
installPhase = '' installPhase = ''
mkdir -p $out/bin/ mkdir -p $out/bin/
cp ${src}/install.sh $out/bin/install-homebrew.sh cp ${src}/install.sh $out/bin/install-homebrew.sh
cp ${src}/uninstall.sh $out/bin/uninstall-homebrew.sh cp ${src}/uninstall.sh $out/bin/uninstall-homebrew.sh
''; '';
meta = with lib; { meta = with lib; {
description = "Runs the homebrew installer"; description = "Runs the homebrew installer";
homepage = "https://github.com/Homebrew/"; homepage = "https://github.com/Homebrew/";
license = licenses.bsd2; license = licenses.bsd2;
platforms = [ "aarch64-darwin" "x86_64-darwin" "x86_64-linux" "aarch64-linux" ]; platforms = [
"aarch64-darwin"
"x86_64-darwin"
"x86_64-linux"
"aarch64-linux"
];
maintainers = [ maintainers.greg ]; maintainers = [ maintainers.greg ];
}; };
} }