From 80b204a3beb775595491b37430a430d1de59693a Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 3 Oct 2020 14:12:04 +0200 Subject: tv override: customize input-fonts --- tv/5pkgs/override/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tv/5pkgs/override') diff --git a/tv/5pkgs/override/default.nix b/tv/5pkgs/override/default.nix index 99c1b3e..789a3cf 100644 --- a/tv/5pkgs/override/default.nix +++ b/tv/5pkgs/override/default.nix @@ -1,5 +1,15 @@ with import ; self: super: { + input-fonts = super.input-fonts.overrideAttrs (old: rec { + src = self.fetchurl { + url = "http://xu.r/~tv/mirrors/input-fonts/Input-Font-2.zip"; + sha256 = "1vvipqcflz4ximy7xpqy9idrdpq3a0c490hp5137r2dq03h865y0"; + }; + outputHash = null; + outputHashAlgo = null; + outputHashMode = null; + }); + rxvt_unicode = self.callPackage ./rxvt_unicode.nix { rxvt_unicode = super.rxvt_unicode; }; -- cgit v1.2.3 From bda23fd3cbcc6b8cacb7418b57b156631f23b662 Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 15 Oct 2020 14:24:58 +0200 Subject: tv nix-prefetch-github: init at 3.0 --- tv/5pkgs/override/default.nix | 3 ++ tv/5pkgs/override/nix-prefetch-github.nix | 47 +++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 tv/5pkgs/override/nix-prefetch-github.nix (limited to 'tv/5pkgs/override') diff --git a/tv/5pkgs/override/default.nix b/tv/5pkgs/override/default.nix index 789a3cf..d18d665 100644 --- a/tv/5pkgs/override/default.nix +++ b/tv/5pkgs/override/default.nix @@ -10,6 +10,9 @@ self: super: { outputHashMode = null; }); + nix-prefetch-github = + self.python3Packages.callPackage ./nix-prefetch-github.nix {}; + rxvt_unicode = self.callPackage ./rxvt_unicode.nix { rxvt_unicode = super.rxvt_unicode; }; diff --git a/tv/5pkgs/override/nix-prefetch-github.nix b/tv/5pkgs/override/nix-prefetch-github.nix new file mode 100644 index 0000000..67873f9 --- /dev/null +++ b/tv/5pkgs/override/nix-prefetch-github.nix @@ -0,0 +1,47 @@ +{ fetchPypi +, lib +, buildPythonPackage +, pythonOlder +, attrs +, click +, effect +, jinja2 +, git +, pytestCheckHook +, pytest-black +, pytestcov +, pytest-isort +}: + +buildPythonPackage rec { + pname = "nix-prefetch-github"; + version = "3.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "sha256-EN+EbVXUaf+id5UsK4EBm/9k9FYaH79g08kblvW60XA="; + }; + + propagatedBuildInputs = [ + attrs + click + effect + jinja2 + ]; + + checkInputs = [ pytestCheckHook pytest-black pytestcov pytest-isort git ]; + checkPhase = '' + pytest -m 'not network' + ''; + + # latest version of isort will cause tests to fail + # ignore tests which are impure + disabledTests = [ "isort" "life" "outputs" "fetch_submodules" ]; + + meta = with lib; { + description = "Prefetch sources from github"; + homepage = "https://github.com/seppeljordan/nix-prefetch-github"; + license = licenses.gpl3; + maintainers = with maintainers; [ seppeljordan ]; + }; +} -- cgit v1.2.3