mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-24 16:18:44 +08:00
19 lines
400 B
Nix
19 lines
400 B
Nix
{ stdenv, fetchFromGitHub }: stdenv.mkDerivation
|
|
{
|
|
name = "date";
|
|
src = fetchFromGitHub
|
|
{
|
|
owner = "HowardHinnant";
|
|
repo = "date";
|
|
rev = "cc4685a21e4a4fdae707ad1233c61bbaff241f93";
|
|
sha256 = "KilhBEeLMvHtS76Gu0UhzE8lhS1+sCwQ1UL4pswKXTs=";
|
|
};
|
|
phases = [ "installPhase" ];
|
|
installPhase =
|
|
''
|
|
runHook preInstall
|
|
mkdir -p $out
|
|
cp -r $src/{include,src} $out
|
|
'';
|
|
}
|