Skip to content

Commit

Permalink
Add nix flake
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonodoom committed Aug 23, 2023
1 parent 550a17d commit 94d3412
Show file tree
Hide file tree
Showing 2 changed files with 107 additions and 0 deletions.
61 changes: 61 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

46 changes: 46 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
description = "Tool to simplify secure shell connections over AWS simple systems manager.";

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs?ref=nixpkgs-unstable";
utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, utils }: {
devShell = self.defaultPackage;
defaultPackage.x86_64-darwin =
with import nixpkgs { system = "x86_64-darwin"; };
let
awssh = pkgs.python310Packages.buildPythonPackage rec {
pname = "awssh";
version = "1.1.0";
doCheck = false;
propagatedBuildInputs = with pkgs.python310Packages; [
setuptools
wheel
boto3
docopt
schema
];
src = (pkgs.fetchFromGitHub {
owner = "cisagov";
repo = "awssh";
rev = "v1.1.0";
sha256 = "sha256-4b2VBFUQye4wTvuagPwEImLwkUO4Dk5hvOYW+eg8OGA=";
});};
in
pkgs.python310Packages.buildPythonPackage rec {
pname = "awssh";
version = "1.1.0";
src = ./.;
propagatedBuildInputs = with pkgs.python310Packages; [
wheel
setuptools
docopt
schema
boto3
];
};
};
}


0 comments on commit 94d3412

Please sign in to comment.