Updates flake hash and adds overlay to flake

This commit is contained in:
solomon 2022-09-26 23:33:55 -07:00 committed by Maas Lalani
parent a48b71e580
commit 9cfd2ff75e
3 changed files with 49 additions and 21 deletions

7
default.nix Normal file
View File

@ -0,0 +1,7 @@
{ pkgs }:
pkgs.buildGoModule {
name = "gum";
src = ./.;
vendorSha256="rMqhYZMa0+5F3X4WDm4jE6IwlzOugqm65SAP38bdQx8=";
}

View File

@ -1,21 +1,39 @@
{
"nodes": {
"nixpkgs": {
"flake-utils": {
"locked": {
"lastModified": 1660639432,
"narHash": "sha256-2WDiboOCfB0LhvnDVMXOAr8ZLDfm3WdO54CkoDPwN1A=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "6c6409e965a6c883677be7b9d87a95fab6c3472e",
"lastModified": 1659877975,
"narHash": "sha256-zllb8aq3YO3h8B/U0/J1WBgAL8EX5yWf5pMj3G0NAmc=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "c0e246b9b83f637f4681389ecabcb2681b4f3af0",
"type": "github"
},
"original": {
"id": "nixpkgs",
"type": "indirect"
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1664107978,
"narHash": "sha256-31I9XnIjXkUa62BM1Zr/ylKMf9eVO5PtoX2mGpmB7/U=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "72783a2d0dbbf030bff1537873dd5b85b3fb332f",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-22.05",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs"
}
}

View File

@ -1,16 +1,19 @@
{
outputs = {self, nixpkgs, ...}:
let
system="x86_64-linux";
pkgs=import nixpkgs {inherit system;};
in
{
packages.${system}.default = pkgs.buildGoModule {
name = "gum";
src = self;
vendorSha256="vvNoO5eABGVwvAzK33uPelmo3BKxfqiYgEXZI7kgeSo=";
};
};
description = "A tool for glamorous shell scripts";
inputs = {
nixpkgs.url = github:nixos/nixpkgs/nixos-22.05;
flake-utils.url = github:numtide/flake-utils;
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let pkgs = import nixpkgs { inherit system; }; in
rec {
packages.default = import ./default.nix { inherit pkgs; };
}) // {
overlays.default = final: prev: {
gum = import ./default.nix { pkgs = final; };
};
};
}