Initial commit

This commit is contained in:
ef 2024-11-08 17:18:15 +01:00
commit a17c369a02
3 changed files with 56 additions and 0 deletions

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
*.swp
result

27
flake.lock Normal file
View file

@ -0,0 +1,27 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1730785428,
"narHash": "sha256-Zwl8YgTVJTEum+L+0zVAWvXAGbWAuXHax3KzuejaDyo=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "4aa36568d413aca0ea84a1684d2d46f55dbabad7",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

27
flake.nix Normal file
View file

@ -0,0 +1,27 @@
{
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;
};
}