diff options
author | Ivan Timokhin <dev@ivan.timokhin.name> | 2020-04-04 19:16:34 +0300 |
---|---|---|
committer | Ivan Timokhin <dev@ivan.timokhin.name> | 2020-04-04 19:17:32 +0300 |
commit | 9c7dc00719c9414ea3a2b04a77da250dd25694e7 (patch) | |
tree | 292c077ea81f4fb2fae6e93d7c1eb96dfdf66958 /pkgs/data/fonts/junicode | |
parent | 63a2dca669cd86181d03fa52f5724ae88dddf757 (diff) |
junicode: split name into pname and version
Diffstat (limited to 'pkgs/data/fonts/junicode')
-rw-r--r-- | pkgs/data/fonts/junicode/default.nix | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/pkgs/data/fonts/junicode/default.nix b/pkgs/data/fonts/junicode/default.nix index 950a909235f3..1e1341932f56 100644 --- a/pkgs/data/fonts/junicode/default.nix +++ b/pkgs/data/fonts/junicode/default.nix @@ -1,9 +1,12 @@ { lib, fetchzip }: -fetchzip { - name = "junicode-1.002"; +let + pname = "junicode"; + version = "1.002"; +in fetchzip { + name = "${pname}-${version}"; - url = mirror://sourceforge/junicode/junicode/junicode-1.002/junicode-1.002.zip; + url = "mirror://sourceforge/junicode/junicode/junicode-${version}/junicode-${version}.zip"; postFetch = '' mkdir -p $out/share/fonts |