mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-05 17:56:46 +01:00
b37741f840
Provides fixes for a number of shellcheck warnings/errors.
31 lines
674 B
Nix
31 lines
674 B
Nix
{ stdenv
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "bashcards";
|
|
version = "0.1.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rpearce";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "1rpqrh0022sbrjvd55a0jvpdqhhka5msf8dsz6adbbmxy3xzgdid";
|
|
};
|
|
|
|
dontBuild = true;
|
|
installPhase = ''
|
|
mkdir -p $out/bin $out/share/man/man8
|
|
cp bashcards.8 $out/share/man/man8/
|
|
cp bashcards $out/bin/
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Practice flashcards in bash";
|
|
homepage = "https://github.com/rpearce/bashcards/";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ rpearce ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|