mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-10-25 12:23:52 -04:00
b70077f551
Precompiled version only supports linux64, git version should also support darwin
34 lines
1.1 KiB
Nix
34 lines
1.1 KiB
Nix
# This file was generated by https://github.com/kamilchm/go2nix v1.2.0
|
|
{ stdenv, buildGoPackage, fetchgit, fetchhg, fetchbzr, fetchsvn }:
|
|
|
|
buildGoPackage rec {
|
|
name = "browserpass-unstable-${version}";
|
|
version = "HEAD";
|
|
rev = "HEAD";
|
|
|
|
goPackagePath = "github.com/dannyvankooten/browserpass";
|
|
|
|
src = fetchgit {
|
|
inherit rev;
|
|
url = "https://github.com/dannyvankooten/browserpass";
|
|
};
|
|
|
|
postInstall = ''
|
|
host_file="$bin/bin/browserpass"
|
|
mkdir -p "$bin/etc"
|
|
|
|
sed -e "s!%%replace%%!$host_file!" go/src/${goPackagePath}/chrome/host.json > chrome-host.json
|
|
sed -e "s!%%replace%%!$host_file!" go/src/${goPackagePath}/firefox/host.json > firefox-host.json
|
|
|
|
install -D chrome-host.json $bin/etc/chrome-host.json
|
|
install -D firefox-host.json $bin/etc/firefox-host.json
|
|
'';
|
|
|
|
meta = {
|
|
description = "A Chrome & Firefox extension for zx2c4's pass";
|
|
longDescription = "";
|
|
homepage = "https://github.com/dannyvankooten/browserpass";
|
|
license = stdenv.lib.licenses.mit;
|
|
platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.darwin;
|
|
};
|
|
} |