From 2b0cc596d574b47b6c434624851f9bf79012a2ef Mon Sep 17 00:00:00 2001 From: derped Date: Sat, 23 Nov 2024 23:38:22 +0100 Subject: [PATCH] Add flake file. --- flake.lock | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ flake.nix | 24 ++++++++++++++++++++++ 2 files changed, 84 insertions(+) create mode 100644 flake.lock create mode 100644 flake.nix diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..e9eb4b9 --- /dev/null +++ b/flake.lock @@ -0,0 +1,60 @@ +{ + "nodes": { + "flake-utils": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1732400914, + "narHash": "sha256-uusz8QE+ejYx0q+O6SyJbed3bwKmJbIkVm6q3SaO3tM=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "0c4555b60e2b7a388d2996dc067f6ea5e350d06c", + "type": "github" + }, + "original": { + "owner": "NixOS", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": "nixpkgs" + } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..d36e695 --- /dev/null +++ b/flake.nix @@ -0,0 +1,24 @@ +{ + description = "fck - a file checking utility wrapper written in python"; + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs"; + flake-utils.url = "github:numtide/flake-utils"; + }; + outputs = + { + self, + nixpkgs, + flake-utils, + }: + flake-utils.lib.eachDefaultSystem ( + system: + let + pkgs = nixpkgs.legacyPackages."${system}"; + in + { + # https://github.com/NixOS/rfcs/pull/166 + formatter = pkgs.nixfmt-rfc-style; + packages.fck = pkgs.python311Packages.callPackage ./default.nix { }; + } + ); +}