mirror of
https://github.com/nmattia/niv.git
synced 2024-09-18 19:07:19 +03:00
Upgrade termtosvg
This commit is contained in:
parent
d04a684419
commit
c95078ee41
14
default.nix
14
default.nix
@ -165,17 +165,15 @@ rec
|
|||||||
#!${pkgs.stdenv.shell}
|
#!${pkgs.stdenv.shell}
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
export PATH=${haskellPackages.niv}/bin:${pkgs.nix}/bin:$PATH
|
export PATH=${haskellPackages.niv}/bin:${pkgs.nix}/bin:$PATH
|
||||||
|
site=$PWD/site
|
||||||
|
|
||||||
hash=$(${pkgs.nix}/bin/nix-hash ''${BASH_SOURCE[0]})
|
|
||||||
pushd $(mktemp -d)
|
pushd $(mktemp -d)
|
||||||
(tail -f /dev/null || true) | ${pkgs.termtosvg}/bin/termtosvg \
|
${pkgs.termtosvg}/bin/termtosvg \
|
||||||
-g 82x26 -M 1500 -m 1500 -t window_frame \
|
-g 82x26 -M 500 -m 500 -t window_frame \
|
||||||
-c '${niv-svg-cmds}' niv.svg
|
-c '${niv-svg-cmds}' $site/niv.svg
|
||||||
${pkgs.gnused}/bin/sed -i "0,/terminal/{s/terminal/$hash/}" niv.svg
|
|
||||||
niv_svg=$(realpath niv.svg)
|
|
||||||
popd
|
|
||||||
|
|
||||||
cp $niv_svg site/niv.svg
|
echo done rendering
|
||||||
|
popd
|
||||||
'';
|
'';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -2,8 +2,12 @@
|
|||||||
import sources.nixpkgs
|
import sources.nixpkgs
|
||||||
{ overlays =
|
{ overlays =
|
||||||
[ (_: pkgs:
|
[ (_: pkgs:
|
||||||
|
{ inherit sources; }
|
||||||
|
)
|
||||||
|
(_: pkgs:
|
||||||
{ termtosvg = pkgs.callPackage ./termtosvg.nix {}; }
|
{ termtosvg = pkgs.callPackage ./termtosvg.nix {}; }
|
||||||
)
|
)
|
||||||
|
|
||||||
];
|
];
|
||||||
config = {};
|
config = {};
|
||||||
}
|
}
|
||||||
|
@ -1,23 +1,25 @@
|
|||||||
{
|
{
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"url": "https://github.com/NixOS/nixpkgs-channels/archive/8634c3b619909db7fc747faf8c03592986626e21.tar.gz",
|
|
||||||
"owner": "NixOS",
|
|
||||||
"branch": "nixos-19.03",
|
"branch": "nixos-19.03",
|
||||||
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz",
|
|
||||||
"repo": "nixpkgs-channels",
|
|
||||||
"type": "tarball",
|
|
||||||
"sha256": "0hcpy4q64vbqmlmnfcavfxilyygyzpwdsss8g3p73ikpic0j6ziq",
|
|
||||||
"description": "Nixpkgs/NixOS branches that track the Nixpkgs/NixOS channels",
|
"description": "Nixpkgs/NixOS branches that track the Nixpkgs/NixOS channels",
|
||||||
"rev": "8634c3b619909db7fc747faf8c03592986626e21"
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs-channels",
|
||||||
|
"rev": "8634c3b619909db7fc747faf8c03592986626e21",
|
||||||
|
"sha256": "0hcpy4q64vbqmlmnfcavfxilyygyzpwdsss8g3p73ikpic0j6ziq",
|
||||||
|
"type": "tarball",
|
||||||
|
"url": "https://github.com/NixOS/nixpkgs-channels/archive/8634c3b619909db7fc747faf8c03592986626e21.tar.gz",
|
||||||
|
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
|
||||||
},
|
},
|
||||||
"gitignore": {
|
"termtosvg": {
|
||||||
"url": "https://github.com/hercules-ci/gitignore/archive/4064e436313191f11969986e66b81cb6bb61bae6.tar.gz",
|
"branch": "develop",
|
||||||
"owner": "hercules-ci",
|
"description": "Record terminal sessions as SVG animations",
|
||||||
"branch": "master",
|
"homepage": "https://nbedos.github.io/termtosvg/",
|
||||||
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz",
|
"owner": "nbedos",
|
||||||
"repo": "gitignore",
|
"repo": "termtosvg",
|
||||||
"sha256": "0358wcmgmc5mx4xfr08fxra4k05zvl2qyaix4gdlm7iwcscz609a",
|
"rev": "525330d7d3d7f55b9ed2344140b9b320552a97a4",
|
||||||
"description": "Nix source function for gitignore that just works",
|
"sha256": "07y39kyabsz88vrf37chcb0d4s5d6knyg95xmq5787vp987f5ii0",
|
||||||
"rev": "4064e436313191f11969986e66b81cb6bb61bae6"
|
"type": "tarball",
|
||||||
|
"url": "https://github.com/nbedos/termtosvg/archive/525330d7d3d7f55b9ed2344140b9b320552a97a4.tar.gz",
|
||||||
|
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,21 +1,17 @@
|
|||||||
{ lib, python3Packages }:
|
{ sources, lib, python3Packages }:
|
||||||
|
|
||||||
python3Packages.buildPythonApplication rec {
|
python3Packages.buildPythonApplication rec {
|
||||||
pname = "termtosvg";
|
pname = "termtosvg";
|
||||||
version = "0.8.0";
|
version = "0.0.0";
|
||||||
|
|
||||||
src = python3Packages.fetchPypi {
|
src = sources.termtosvg;
|
||||||
inherit pname version;
|
|
||||||
sha256 = "e3a0a7bd511028c96d242525df807a23e6f22e55b111a7ee861f294a86224b0c";
|
|
||||||
};
|
|
||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
propagatedBuildInputs = with python3Packages; [ lxml pyte ];
|
propagatedBuildInputs = with python3Packages; [ lxml pyte ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = https://nbedos.github.io/termtosvg/;
|
inherit (sources.termtosvg) homepage description;
|
||||||
description = "Record terminal sessions as SVG animations";
|
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
maintainers = with maintainers; [ ma27 ];
|
maintainers = with maintainers; [ ma27 ];
|
||||||
};
|
};
|
||||||
|
52
site/niv.svg
52
site/niv.svg
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 6.9 KiB After Width: | Height: | Size: 16 KiB |
Loading…
Reference in New Issue
Block a user