mirror of
https://github.com/Garmelon/PFERD.git
synced 2026-04-12 23:45:05 +02:00
nix: update flake und remove black magic
This commit is contained in:
parent
a117126389
commit
79370e5f53
2 changed files with 8 additions and 10 deletions
10
flake.nix
10
flake.nix
|
|
@ -2,7 +2,7 @@
|
|||
description = "Tool for downloading course-related files from ILIAS";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05";
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs }:
|
||||
|
|
@ -14,12 +14,10 @@
|
|||
packages = forAllSystems (system:
|
||||
let pkgs = import nixpkgs { inherit system; };
|
||||
in
|
||||
rec {
|
||||
default = pkgs.python3Packages.buildPythonApplication rec {
|
||||
{
|
||||
default = pkgs.python3Packages.buildPythonApplication {
|
||||
pname = "pferd";
|
||||
# Performing black magic
|
||||
# Don't worry, I sacrificed enough goats for the next few years
|
||||
version = (pkgs.lib.importTOML ./PFERD/version.py).VERSION;
|
||||
version = (builtins.fromTOML (builtins.readFile ./PFERD/version.py)).VERSION;
|
||||
format = "pyproject";
|
||||
|
||||
src = ./.;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue