From 983f3a86ab32ff9303350d81ea3fcd3139c9ecca Mon Sep 17 00:00:00 2001 From: xenia Date: Wed, 27 Nov 2024 23:08:49 -0500 Subject: [PATCH] add flake --- flake.lock | 75 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ flake.nix | 14 ++++++++++ 2 files changed, 89 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..5783e37 --- /dev/null +++ b/flake.lock @@ -0,0 +1,75 @@ +{ + "nodes": { + "lix": { + "flake": false, + "locked": { + "lastModified": 1729298361, + "narHash": "sha256-hiGtfzxFkDc9TSYsb96Whg0vnqBVV7CUxyscZNhed0U=", + "rev": "ad9d06f7838a25beec425ff406fe68721fef73be", + "type": "tarball", + "url": "https://git.lix.systems/api/v1/repos/lix-project/lix/archive/ad9d06f7838a25beec425ff406fe68721fef73be.tar.gz?rev=ad9d06f7838a25beec425ff406fe68721fef73be" + }, + "original": { + "type": "tarball", + "url": "https://git.lix.systems/lix-project/lix/archive/2.91.1.tar.gz" + } + }, + "lix-module": { + "flake": false, + "locked": { + "lastModified": 1732605668, + "narHash": "sha256-DN5/166jhiiAW0Uw6nueXaGTueVxhfZISAkoxasmz/g=", + "rev": "f19bd752910bbe3a861c9cad269bd078689d50fe", + "type": "tarball", + "url": "https://git.lix.systems/api/v1/repos/lix-project/nixos-module/archive/f19bd752910bbe3a861c9cad269bd078689d50fe.tar.gz?rev=f19bd752910bbe3a861c9cad269bd078689d50fe" + }, + "original": { + "type": "tarball", + "url": "https://git.lix.systems/lix-project/nixos-module/archive/2.91.1-2.tar.gz" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1732521221, + "narHash": "sha256-2ThgXBUXAE1oFsVATK1ZX9IjPcS4nKFOAjhPNKuiMn0=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "4633a7c72337ea8fd23a4f2ba3972865e3ec685d", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs-unstable": { + "inputs": { + "lix": "lix", + "lix-module": "lix-module", + "nixpkgs": "nixpkgs" + }, + "locked": { + "lastModified": 1732766621, + "narHash": "sha256-E60j+iRua77fyppYID9862orlAl2WuRmfuzV2+ETmGM=", + "ref": "main", + "rev": "fdcb5d11f801ba15dbbcca33eb066cb957c283dd", + "revCount": 78, + "type": "git", + "url": "https://git.lain.faith/haskal/dragnpkgs.git" + }, + "original": { + "id": "nixpkgs-unstable", + "type": "indirect" + } + }, + "root": { + "inputs": { + "nixpkgs-unstable": "nixpkgs-unstable" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..4ca7230 --- /dev/null +++ b/flake.nix @@ -0,0 +1,14 @@ +{ + description = "Development flake for zbasefind"; + + outputs = { self, nixpkgs-unstable } @ inputs: nixpkgs-unstable.lib.mkFlake { + packages.zbasefind = { rustPlatform, zbasefind }: zbasefind.overrideAttrs (prev: { + name = "zbasefind"; + src = self; + + cargoDeps = rustPlatform.importCargoLock { + lockFile = ./Cargo.lock; + }; + }); + }; +}