mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-24 16:18:44 +08:00
21 lines
416 B
Nix
21 lines
416 B
Nix
{ lib, stdenv, fetchFromGitHub }: stdenv.mkDerivation rec
|
|
{
|
|
pname = "nameof";
|
|
version = "0.10.3";
|
|
src = fetchFromGitHub
|
|
{
|
|
owner = "Neargye";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "eHG0Y/BQGbwTrBHjq9SeSiIXaVqWp7PxIq7vCIECYPk=";
|
|
};
|
|
phases = [ "installPhase" ];
|
|
installPhase =
|
|
''
|
|
runHook preInstall
|
|
mkdir -p $out
|
|
cp -r $src/include $out
|
|
runHook postInstall
|
|
'';
|
|
}
|