Browse code
feat(nix): add packages
- Add alejandra to common.nix
- Add lpass derivation
Showing 5 changed files
- nix/common.nix
- nix/home-personal.nix
- nix/lpass-nix/darwin.nix
- nix/lpass-nix/default.nix
- nix/lpass-nix/result
... | ... |
@@ -1,8 +1,17 @@ |
1 | 1 |
{ |
2 | 2 |
pkgs, |
3 | 3 |
homeDirectory, |
4 |
-}: rec { |
|
4 |
+}: let |
|
5 |
+ alejandra = |
|
6 |
+ (import (builtins.fetchTarball { |
|
7 |
+ url = "https://github.com/kamadorueda/alejandra/tarball/1.1.0"; |
|
8 |
+ sha256 = "0r8d4pllz3rar5b8xlk332mm395nj6w1zh6dnpbz7156fii4lhdy"; |
|
9 |
+ })) |
|
10 |
+ # Pick one from: aarch64-darwin, aarch64-linux, i686-linux, x86_64-darwin, x86_64-linux |
|
11 |
+ ."${pkgs.system}"; |
|
12 |
+in rec { |
|
5 | 13 |
packages = [ |
14 |
+ alejandra |
|
6 | 15 |
pkgs.direnv |
7 | 16 |
pkgs.dtach |
8 | 17 |
pkgs.ecl |
... | ... |
@@ -16,6 +16,10 @@ |
16 | 16 |
}) {inherit pkgs;}) |
17 | 17 |
.outPath; |
18 | 18 |
|
19 |
+ # zsh = pkgs.zsh.overrideAttrs ({postInstall}: {postInstall = '' |
|
20 |
+ # make install.info install.html |
|
21 |
+ # '' + postInstall}) |
|
22 |
+ |
|
19 | 23 |
common_home = |
20 | 24 |
import "${dotfileDirectory}/nix/common.nix" {inherit homeDirectory pkgs;}; |
21 | 25 |
|
0 | 5 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,16 @@ |
1 |
+{ |
|
2 |
+ pkgs ? import <nixpkgs> {}, |
|
3 |
+ stdenv ? pkgs.stdenv, |
|
4 |
+}: |
|
5 |
+stdenv.mkDerivation { |
|
6 |
+ name = "lpass"; |
|
7 |
+ nativeBuildInputs = [pkgs.cmake pkgs.pkg-config]; |
|
8 |
+ buildInputs = [pkgs.libxml2 pkgs.openssl pkgs.curl]; |
|
9 |
+ CFLAGS = " -fcommon "; |
|
10 |
+ src = pkgs.fetchFromGitHub { |
|
11 |
+ owner = "lastpass"; |
|
12 |
+ repo = "lastpass-cli"; |
|
13 |
+ rev = "v1.3.3"; |
|
14 |
+ sha256 = "ChX6t62PdgveSyiJFhNr87TpF6XAsgipeo76JSd6Epk="; |
|
15 |
+ }; |
|
16 |
+} |