freesweep: small cleanup

authored by Daniel Nagy and committed by Bjørn Forsman 28e6c4ce f89c8281

+5 -7
+5 -7
pkgs/games/freesweep/default.nix
··· 1 - { fetchFromGitHub, fetchpatch, ncurses, lib, stdenv, 2 - updateAutotoolsGnuConfigScriptsHook }: 1 + { fetchFromGitHub, fetchpatch, ncurses, lib, stdenv 2 + , updateAutotoolsGnuConfigScriptsHook, installShellFiles }: 3 3 4 4 stdenv.mkDerivation rec { 5 5 pname = "freesweep"; ··· 12 12 hash = "sha256-iuu81yHbNrjdPsimBrPK58PJ0d8i3ySM7rFUG/d8NJM"; 13 13 }; 14 14 15 - nativeBuildInputs = [ updateAutotoolsGnuConfigScriptsHook ]; 15 + nativeBuildInputs = [ updateAutotoolsGnuConfigScriptsHook installShellFiles ]; 16 16 buildInputs = [ ncurses ]; 17 17 18 - preConfigure = '' 19 - configureFlags="$configureFlags --with-prefsdir=$out/share" 20 - ''; 18 + configureFlags = [ "--with-prefsdir=$out/share" ]; 21 19 22 20 enableParallelBuilding = true; 23 21 ··· 25 23 runHook preInstall 26 24 install -D -m 0555 freesweep $out/bin/freesweep 27 25 install -D -m 0444 sweeprc $out/share/sweeprc 28 - install -D -m 0444 freesweep.6 $out/share/man/man6/freesweep.6 26 + installManPage freesweep.6 29 27 runHook postInstall 30 28 ''; 31 29