From a3051a3c295b8e6adf7c36b59f78436665826fe9 Mon Sep 17 00:00:00 2001 From: lumpsoid Date: Mon, 26 Aug 2024 20:17:32 +0200 Subject: [PATCH] init --- .gitignore | 1 + flake.lock | 27 +++++++++++++++++++++++++++ flake.nix | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 78 insertions(+) create mode 100644 .gitignore create mode 100644 flake.lock create mode 100644 flake.nix diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b2be92b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +result diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..48828c7 --- /dev/null +++ b/flake.lock @@ -0,0 +1,27 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1724479785, + "narHash": "sha256-pP3Azj5d6M5nmG68Fu4JqZmdGt4S4vqI5f8te+E/FTw=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "d0e1602ddde669d5beb01aec49d71a51937ed7be", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..e3c6cf6 --- /dev/null +++ b/flake.nix @@ -0,0 +1,50 @@ +{ + description = "Burrito guild wars 2 overlay"; + + inputs = { + nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; + }; + + outputs = { self, nixpkgs, ... }: + let + system = "x86_64-linux"; + pkgs = nixpkgs.legacyPackages.${system}; + in + { + + packages.${system}.default = pkgs.stdenv.mkDerivation { + name = "burrito-gw2"; + + buildInputs = with pkgs; [ + ]; + + # will fetch github source code + # src = pkgs.fetchFromGitHub { + # owner = "AsherGlick"; + # repo = "Burrito"; + # # to find out rev view tags on github + # # also can check yourself with + # # https://github.com/AsherGlick/Burrito/archive/refs/tags/alpha-1.4.zip + # rev = "alpha-1.4"; + # # to find sha256 + # # nix-prefetch-url --unpack https://github.com/AsherGlick/Burrito/archive/refs/tags/alpha-1.4.zip --type sha256 + # sha256 = "164wjr7y339s67fk1b3kyz4jdx0j64qx77mkzz09wdizi7idphf3"; + # }; + src = pkgs.fetchzip { + url = "https://github.com/AsherGlick/Burrito/releases/download/alpha-1.4/Burrito_Linux.zip"; + # because zip don't have a root directory + stripRoot=false; + # nix-prefetch-url --unpack --type sha256 + sha256 = "0a9f8dby8b3pn36nz0plf2kyjijlr0f6zc7vb8ym044ivrq97ss9"; + }; + + # dummy + # to see whats I'm getting + installPhase = '' + mkdir -p $out/bin + cp -r $src $out/bin + ''; + }; + + }; +}