Gimme drift
This commit is contained in:
parent
ef0213fb6d
commit
a96879c99b
2 changed files with 47 additions and 0 deletions
13
flake.nix
13
flake.nix
|
|
@ -19,6 +19,14 @@
|
|||
url = "github:nix-community/NixOS-WSL/main";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
# drift = {
|
||||
# url = "github:phlx0/drift";
|
||||
# inputs = {
|
||||
# nixpkgs.follows = "nixpkgs";
|
||||
# flake-utils.follows = "flake-utils";
|
||||
# };
|
||||
# };
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, update, unstable, home-manager, nixos-hardware, emacs-overlay, ... }@inputs:
|
||||
|
|
@ -148,6 +156,11 @@
|
|||
extraSpecialArgs = { inherit inputs; };
|
||||
modules = [
|
||||
./home/users/work.nix
|
||||
{
|
||||
home.packages = [
|
||||
(pkgs.callPackage ./packages/drift.nix {})
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
|
|||
34
packages/drift.nix
Normal file
34
packages/drift.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{
|
||||
pkgs,
|
||||
fetchFromGitHub
|
||||
}:
|
||||
pkgs.buildGoModule rec {
|
||||
pname = "drift";
|
||||
version = "dev";
|
||||
src = fetchFromGitHub {
|
||||
owner = "phlx0";
|
||||
repo = "drift";
|
||||
rev = "main";
|
||||
hash = "sha256-QfxT7fhYeu70ZJnbJ3/LaBPgBzHbjwhQ0bPIMeR46/o=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-FsNa9qp2MnPk1onv/O13mFi+82yP7D4LdILZsNzHs+4=";
|
||||
|
||||
# CGO_ENABLED = 0;
|
||||
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
"-X main.version=${version}"
|
||||
"-X main.commit=none"
|
||||
"-X main.date=unknown"
|
||||
];
|
||||
|
||||
meta = with pkgs.lib; {
|
||||
description = "Terminal screensaver and ambient visualiser";
|
||||
homepage = "https://github.com/phlx0/drift";
|
||||
license = licenses.mit;
|
||||
maintainers = [ ];
|
||||
mainProgram = "drift";
|
||||
};
|
||||
}
|
||||
Loading…
Reference in a new issue