commit 12708216d172da2b198938f52f282124c5872efd Author: Khaïs COLIN Date: Tue Feb 11 19:25:58 2025 +0100 prysk: init at 0.20.0 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b2be92b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +result diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..688b61d --- /dev/null +++ b/flake.lock @@ -0,0 +1,26 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1739206421, + "narHash": "sha256-PwQASeL2cGVmrtQYlrBur0U20Xy07uSWVnFup2PHnDs=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "44534bc021b85c8d78e465021e21f33b856e2540", + "type": "github" + }, + "original": { + "id": "nixpkgs", + "ref": "nixos-24.11", + "type": "indirect" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..2a72e89 --- /dev/null +++ b/flake.nix @@ -0,0 +1,26 @@ +{ + description = "Prysk - test using snippets of interactive shell sessions"; + inputs = { + nixpkgs.url = "nixpkgs/nixos-24.11"; + }; + outputs = {nixpkgs, ...}: let + system = "x86_64-linux"; + pkgs = import nixpkgs {inherit system;}; + pname = "prysk"; + version = "0.20.0"; + format = "wheel"; + in { + packages.${system}.default = pkgs.python312Packages.buildPythonPackage { + inherit pname version format; + src = pkgs.python312Packages.fetchPypi rec { + inherit pname version format; + hash = "sha256-N1j1n+vh/ydxDIummo7a1CKGBQ0EHtjfUZ/Eu+6kETM="; + dist = python; + python = "py3"; + }; + propagatedBuildInputs = [ + pkgs.python312Packages.rich + ]; + }; + }; +}