pkgs: remove unnecessary packages

keep-around/cdb4b33ce92bf83e6bf336678bacead0ce4bb5ef
hexchen 2020-11-29 02:30:46 +00:00
parent 109a425304
commit 187c3bb983
2 changed files with 1 additions and 38 deletions

View File

@ -4,18 +4,13 @@ let
pkgs = import nixpkgs {};
callPackage = pkgs.lib.callPackageWith (pkgs // newpkgs);
shelfieSrc = fetchGit {
url = "https://github.com/spacekookie/shelfie";
rev = "fb09d6d9ff94ea0679cf6406a3153735d49f38cd";
};
wasiSrc = fetchGit {
url = "https://gitlab.infra4future.de/wasi/wasi-rust";
rev = "356dbc23a3683d134f13156af71baeaa06fb80d1";
};
newpkgs = {
fb_exporter = callPackage ./fb_exporter {};
shelfie = import shelfieSrc { inherit shelfieSrc; pkgs = pkgs // newpkgs; };
# package = callPackage ./package {};
wasi = import wasiSrc { inherit wasiSrc; pkgs = pkgs // newpkgs; };
};

View File

@ -1,32 +0,0 @@
{
pkgs ? import <nixpkgs> {}
}:
with pkgs;
stdenv.mkDerivation {
pname = "fb_exporter";
version = "0.1.0";
src = fetchgit {
url = "https://cgit.ctu.cx/fritzbox-exporter";
rev = "fc7cb10f4673107c050b6d342e55b8838fe3a424";
sha256 = "168r93l5sqvn6wp7jdyw1g9jz613iwd11pg4zrsnlmr6n466hqh8";
};
nativeBuildInputs = [ nim ];
buildInputs = [ pcre openssl ];
buildPhase = ''
runHook preBuild
nim c -d:release --nimcache:$PWD src/fb_exporter.nim
runHook postBuild
'';
installPhase = ''
runHook preInstall
install -Dm755 src/fb_exporter $out/bin/fb_exporter
runHook postInstall
'';
fixupPhase = ''
runHook preFixup
patchelf --set-rpath ${lib.makeLibraryPath [ pcre openssl ]} $out/bin/fb_exporter
runHook postFixup
'';
}