nix-python-lorem/flake.nix

28 lines
661 B
Nix
Raw Normal View History

2024-11-08 16:18:15 +00:00
{
description = "python-lorem python package";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
};
outputs = { self, nixpkgs }: {
packages.x86_64-linux.lorem = let
pkgs = import nixpkgs { system = "x86_64-linux"; };
in
pkgs.python3Packages.buildPythonPackage rec {
pname = "python-lorem";
version = "1.3.0.post3";
src = pkgs.fetchFromGitHub {
owner = "JarryShaw";
repo = "lorem";
rev = "v${version}";
hash = "sha256-H43DujOJxUefYEHC5QuTtNksph67TGV76OIa/2xkq08=";
};
};
packages.x86_64-linux.default = self.packages.x86_64-linux.lorem;
};
}