From a5dd212e4c1f300b0769aa16b71da23e08061842 Mon Sep 17 00:00:00 2001 From: quapka Date: Tue, 6 Aug 2024 13:52:02 +0200 Subject: Build script for fetching releases with Nix --- flake.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/flake.nix b/flake.nix index d44126e..b8bc49d 100644 --- a/flake.nix +++ b/flake.nix @@ -280,6 +280,26 @@ cryptopp = pkgs.callPackage ./nix/cryptopp_pkg_versions.nix { inherit buildECTesterStandalone; }; openssl = pkgs.callPackage ./nix/openssl_pkg_versions.nix { inherit buildECTesterStandalone; }; boringssl = pkgs.callPackage ./nix/boringssl_pkg_versions.nix { inherit buildECTesterStandalone; }; + + fetchReleases = with pkgs.python3Packages; buildPythonApplication { + pname = "fetchReleases"; + version = "0.1.0"; + format = "other"; + + propagatedBuildInputs = [ + jinja2 + requests + beautifulsoup4 + ]; + + src = ./fetchReleases.py; + dontUnpack = true; + installPhase = '' + install -Dm755 $src $out/bin/$pname + ''; + + }; + }; devShells.default = with pkgs; mkShell rec { nativeBuildInputs = [ -- cgit v1.3.1