Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 34 lines 698 B view raw
1{ 2 stdenv, 3 lib, 4 fetchFromGitHub, 5}: 6 7stdenv.mkDerivation rec { 8 pname = "disfetch"; 9 version = "3.7"; 10 11 src = fetchFromGitHub { 12 owner = "q60"; 13 repo = "disfetch"; 14 rev = version; 15 sha256 = "sha256-xzOE+Pnx0qb3B9vWWrF5Q0nhUo0QYBUO6j6al8N3deY="; 16 }; 17 18 dontBuild = true; 19 20 installPhase = '' 21 runHook preInstall 22 install -Dm755 -t $out/bin disfetch 23 runHook postInstall 24 ''; 25 26 meta = with lib; { 27 description = "Yet another *nix distro fetching program, but less complex"; 28 homepage = "https://github.com/q60/disfetch"; 29 license = licenses.mit; 30 platforms = platforms.all; 31 maintainers = with maintainers; [ vel ]; 32 mainProgram = "disfetch"; 33 }; 34}