Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

fatsort: add version number (close #7025)

Website monitor.nixos.org reported it as out of date when in reality it
just had no version number.
@vcunat refactored meta a bit.

authored by = and committed by Vladimír Čunát 6dc86cea 5b0310ec

+9 -6
+9 -6
pkgs/tools/filesystems/fatsort/default.nix
··· 1 1 {stdenv, fetchurl, help2man}: 2 2 3 - stdenv.mkDerivation { 4 - name = "fatsort"; 3 + stdenv.mkDerivation rec { 4 + version = "1.3.365"; 5 + name = "fatsort-${version}"; 6 + 5 7 src = fetchurl { 6 - url = mirror://sourceforge/fatsort/fatsort-1.3.365.tar.gz; 8 + url = "mirror://sourceforge/fatsort/${name}.tar.gz"; 7 9 sha256 = "0g9zn2ns86g7zmy0y8hw1w1zhnd51hy8yl6kflyhxs49n5sc7b3p"; 8 10 }; 9 11 ··· 11 13 12 14 buildInputs = [ help2man ]; 13 15 14 - meta = { 16 + meta = with stdenv.lib; { 15 17 homepage = http://fatsort.sourceforge.net/; 16 18 description = "Sorts FAT partition table, for devices that don't do sorting of files."; 17 - maintainers = [ stdenv.lib.maintainers.kovirobi ]; 18 - license = stdenv.lib.licenses.gpl2; 19 + maintainers = [ maintainers.kovirobi ]; 20 + license = licenses.gpl2; 21 + inherit version; 19 22 }; 20 23 }