Browse Source

pkgs added

dev_01_initial
Heiko Blobner 3 years ago
parent
commit
13764d56dd
  1. 4
      flake.nix
  2. 6
      pkgs/default.nix
  3. 23
      pkgs/speedtestpp/default.nix

4
flake.nix

@ -24,7 +24,7 @@
inherit (self) outputs; inherit (self) outputs;
lib = nixpkgs.lib // home-manager.lib; lib = nixpkgs.lib // home-manager.lib;
systems = [ "aarch64-linux" "i686-linux" "x86_64-linux" ]; systems = [ "aarch64-linux" "i686-linux" "x86_64-linux" ];
forEachSystem = f: lib.genAttrs systems (sys: f pkgs.${sys}); forEachSystem = f: lib.genAttrs systems (sys: f pkgsFor.${sys});
pkgsFor = nixpkgs.legacyPackages; pkgsFor = nixpkgs.legacyPackages;
in in
{ {
@ -53,7 +53,7 @@
homeConfigurations = { homeConfigurations = {
"hblobner@devvie" = lib.homeManagerConfiguration { "hblobner@devvie" = lib.homeManagerConfiguration {
modules = [ ./users/hblober@devvie.nix ]; modules = [ "./users/hblober@devvie.nix" ];
pkgs = pkgsFor.x86_64-linux; pkgs = pkgsFor.x86_64-linux;
extraSpecialArgs = { inherit inputs outputs; }; extraSpecialArgs = { inherit inputs outputs; };
}; };

6
pkgs/default.nix

@ -0,0 +1,6 @@
{ pkgs ? import <nixpkgs> { } }: rec {
# Packages with an actual source
speedtestpp = pkgs.callPackage ./speedtestpp { };
}

23
pkgs/speedtestpp/default.nix

@ -0,0 +1,23 @@
{ stdenv, lib, fetchFromGitHub, cmake, curl, openssl, libxml2 }:
stdenv.mkDerivation rec {
pname = "speedtestpp";
version = "2021-08-29";
src = fetchFromGitHub {
owner = "taganaka";
repo = "speedtest";
rev = "0f63cfbf7ce8d64ea803bf143b957eae76323405";
sha256 = "sha256-rGY0kK2OCZl+229/JERf2ghBSdvAedhVuL4SrVzYFmU=";
};
nativeBuildInputs = [ cmake curl openssl libxml2 ];
postInstall = ''
ln -s $out/bin/SpeedTest $out/bin/speedtestpp
'';
meta = with lib; {
description = "Unofficial speedtest.net cli using raw TCP for better accuracy";
homepage = "https://github.com/taganaka/SpeedTest";
license = licenses.mit;
platforms = platforms.linux;
};
}
Loading…
Cancel
Save