iosevka-bin: Use iosevka's meta
The two packages have the same metadata, except for the maintainers.
This commit is contained in:
parent
f838052d4f
commit
988f0cf3c5
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, lib, fetchurl, unzip
|
{ stdenv, lib, fetchurl, iosevka, unzip
|
||||||
, variant ? ""
|
, variant ? ""
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -29,16 +29,10 @@ in stdenv.mkDerivation rec {
|
|||||||
unzip -d $out/share/fonts/truetype $src
|
unzip -d $out/share/fonts/truetype $src
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = iosevka.meta // {
|
||||||
homepage = "https://be5invis.github.io/Iosevka/";
|
maintainers = with lib.maintainers; [
|
||||||
downloadPage = "https://github.com/be5invis/Iosevka/releases";
|
cstrahan
|
||||||
description = ''
|
];
|
||||||
Slender monospace sans-serif and slab-serif typeface inspired by Pragmata
|
|
||||||
Pro, M+ and PF DIN Mono, designed to be the ideal font for programming.
|
|
||||||
'';
|
|
||||||
license = licenses.ofl;
|
|
||||||
platforms = platforms.all;
|
|
||||||
maintainers = [ maintainers.cstrahan ];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
passthru.updateScript = ./update.sh;
|
passthru.updateScript = ./update.sh;
|
||||||
|
@ -1,11 +1,12 @@
|
|||||||
#! /usr/bin/env nix-shell
|
#! /usr/bin/env nix-shell
|
||||||
#! nix-shell -i bash -p curl jq
|
#! nix-shell -i bash -p curl jq
|
||||||
|
|
||||||
set -e
|
set -euo pipefail
|
||||||
|
cd "$(dirname "${BASH_SOURCE[0]}")"
|
||||||
|
|
||||||
release=$(curl -s https://api.github.com/repos/be5invis/Iosevka/releases/latest)
|
release=$(curl -s https://api.github.com/repos/be5invis/Iosevka/releases/latest)
|
||||||
|
|
||||||
oldVersion=$(nix-instantiate --eval -E 'with import ./. {}; lib.getVersion iosevka-bin' | tr -d '"')
|
oldVersion=$(nix-instantiate --eval -E 'with import ../../../.. {}; lib.getVersion iosevka-bin' | tr -d '"')
|
||||||
version=$(echo "$release" | jq -r .tag_name | tr -d v)
|
version=$(echo "$release" | jq -r .tag_name | tr -d v)
|
||||||
|
|
||||||
if test "$oldVersion" = "$version"; then
|
if test "$oldVersion" = "$version"; then
|
||||||
@ -13,8 +14,7 @@ if test "$oldVersion" = "$version"; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
file=$(nix-instantiate --eval -A iosevka-bin.meta.position | sed -r 's/^"(.*):[0-9]+"$/\1/')
|
sed -i "s/$oldVersion/$version/" bin.nix
|
||||||
sed -i "s/$oldVersion/$version/" "$file"
|
|
||||||
|
|
||||||
{
|
{
|
||||||
echo '# This file was autogenerated. DO NOT EDIT!'
|
echo '# This file was autogenerated. DO NOT EDIT!'
|
||||||
@ -25,4 +25,4 @@ sed -i "s/$oldVersion/$version/" "$file"
|
|||||||
$(nix-prefetch-url "https://github.com/be5invis/Iosevka/releases/download/v$version/$asset")
|
$(nix-prefetch-url "https://github.com/be5invis/Iosevka/releases/download/v$version/$asset")
|
||||||
done
|
done
|
||||||
echo '}'
|
echo '}'
|
||||||
} >$(dirname "$file")/variants.nix
|
} >variants.nix
|
||||||
|
Loading…
Reference in New Issue
Block a user