Commit 872e40e1b643
Changed files (5)
fish/nix-aliases.fish
@@ -5,3 +5,7 @@ end
function wakeonlan
nix run nixpkgs.python36Packages.wakeonlan -c wakeonlan $argv
end
+
+function op
+ nix run -f ~/.config/nixpkgs/channels.nix unstable.1password -c op $argv
+end
overlays/sbr.nix
@@ -12,9 +12,6 @@ self: super:
envbox = import ../pkgs/envbox {
inherit (super) stdenv lib buildGoPackage fetchFromGitHub;
};
- op = import ../pkgs/op {
- inherit (super) stdenv lib fetchurl patchelf unzip file;
- };
prm = import ../pkgs/prm {
inherit (super) stdenv lib buildGoPackage fetchgit;
};
pkgs/op/default.nix
@@ -1,36 +0,0 @@
-{ stdenv, lib, fetchurl, patchelf, unzip, file }:
-
-stdenv.mkDerivation rec {
- name = "op-${version}";
- version = "0.5.1";
-
- src = if stdenv.system == "i686-linux" then
- fetchurl {
- url = "https://cache.agilebits.com/dist/1P/op/pkg/v${version}/op_linux_386_v${version}.zip";
- sha256 = "011s77krmp2fj3889fyiwhx3f9854yykd1i34y9pa8gy2hgxkh85";
- }
- else if stdenv.system == "x86_64-linux" then
- fetchurl {
- url = "https://cache.agilebits.com/dist/1P/op/pkg/v${version}/op_linux_amd64_v${version}.zip";
- sha256 = "18yp1ridj9v9x54jyz8yyjvnhcv6gz5bjqjv4sl8dqiy6bli4wzv";
- }
- else throw "platform ${stdenv.system} not supported!";
-
- buildInputs = [ patchelf unzip file ];
- buildCommand = ''
- unpackFile $src
- mkdir -p $out/bin
- cp -a ./op $out/bin/op.wrapped
- chmod +x $out/bin/op.wrapped
- echo "#!/usr/bin/env bash" > $out/bin/op
- echo $(< $NIX_CC/nix-support/dynamic-linker) $out/bin/op.wrapped \"\$@\" >> $out/bin/op
- chmod +x $out/bin/op
- '';
-
- meta = {
- description = "1password CLI";
- homepage = "https://1password.com/";
- license = lib.licenses.unfree;
- platforms = lib.platforms.linux;
- };
-}
pkgs/default.nix
@@ -15,9 +15,6 @@ in rec {
envbox = import ./envbox {
inherit (pkgs) stdenv lib buildGoPackage fetchFromGitHub;
};
- op = import ./op {
- inherit (pkgs) stdenv lib fetchurl patchelf unzip file;
- };
prm = import ./prm {
inherit (pkgs) stdenv lib fetchgit;
};
hokkaido.nix
@@ -12,7 +12,6 @@
./dev.haskell.nix
];
home.packages = with pkgs; [
- op
vscode
];
}