From 523985d8f5e75da1ca45c9fbbf9c2e6de8d5aca6 Mon Sep 17 00:00:00 2001 From: anirudhb Date: Sun, 17 Oct 2021 12:03:55 -0700 Subject: [PATCH] flake: init --- flake.lock | 43 +++++++++++++++++++++++++++++++++++++++++++ flake.nix | 25 +++++++++++++++++++++++++ 2 files changed, 68 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..2015a0b --- /dev/null +++ b/flake.lock @@ -0,0 +1,43 @@ +{ + "nodes": { + "flake-utils": { + "locked": { + "lastModified": 1631561581, + "narHash": "sha256-3VQMV5zvxaVLvqqUrNz3iJelLw30mIVSfZmAaauM3dA=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "7e5bf3925f6fbdfaf50a2a7ca0be2879c4261d19", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1633422745, + "narHash": "sha256-gA6Ok64nPbkjHk3Oanq4641EeYkjcKhisDF9wBjLxEk=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "8e1eab9eae4278c9bb1dcae426848a581943db5a", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixpkgs-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..73cfa84 --- /dev/null +++ b/flake.nix @@ -0,0 +1,25 @@ +{ + description = "Encode in a character set of your choice"; + + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; + flake-utils.url = "github:numtide/flake-utils"; + }; + + outputs = { self, nixpkgs, flake-utils }: flake-utils.lib.eachDefaultSystem (system: let + pkgs = nixpkgs.legacyPackages.${system}; + in rec { + packages.aces = pkgs.buildGoModule { + name = "aces"; + src = ./.; + vendorSha256 = null; + meta = with pkgs.lib; { + description = "Encode in a character set of your choice"; + homepage = "https://github.com/quackduck/aces"; + license = licenses.mit; + platforms = platforms.linux ++ platforms.darwin; + }; + }; + defaultPackage = packages.aces; + }); +}