commit
28641f51dc
@ -0,0 +1,9 @@ |
||||
{ lib, moduleType, ... }: |
||||
let inherit (lib) mkOption types; |
||||
in |
||||
{ |
||||
options.variants = mkOption { |
||||
type = types.lazyAttrsOf moduleType; |
||||
default = {}; |
||||
}; |
||||
} |
@ -0,0 +1,22 @@ |
||||
{ config, lib, ... }: |
||||
let inherit (lib) types mkOption attrNames; |
||||
in |
||||
{ |
||||
options = { |
||||
attrs = mkOption { type = types.attrsOf lib.types.int; }; |
||||
result = mkOption { }; |
||||
resultFoo = mkOption { }; |
||||
resultFooBar = mkOption { }; |
||||
resultFooFoo = mkOption { }; |
||||
}; |
||||
config = { |
||||
attrs.a = 1; |
||||
variants.foo.attrs.b = 1; |
||||
variants.bar.attrs.y = 1; |
||||
variants.foo.variants.bar.attrs.z = 1; |
||||
variants.foo.variants.foo.attrs.c = 3; |
||||
resultFoo = lib.concatMapStringsSep " " toString (attrNames config.variants.foo.attrs); |
||||
resultFooBar = lib.concatMapStringsSep " " toString (attrNames config.variants.foo.variants.bar.attrs); |
||||
resultFooFoo = lib.concatMapStringsSep " " toString (attrNames config.variants.foo.variants.foo.attrs); |
||||
}; |
||||
} |
@ -0,0 +1,55 @@ |
||||
{ lib, stdenv, fetchurl, dpkg, autoPatchelfHook, makeWrapper |
||||
, gtk3-x11 }: |
||||
|
||||
stdenv.mkDerivation rec { |
||||
pname = "pixeluvo"; |
||||
version = "1.6.0-2"; |
||||
|
||||
src = fetchurl { |
||||
url = "http://www.pixeluvo.com/downloads/${pname}_${version}_amd64.deb"; |
||||
sha256 = "sha256-QYSuD6o3kHg0DrFihYEcf9e3b8U1bu4Zf78+Akmm8yo="; |
||||
}; |
||||
|
||||
nativeBuildInputs = [ |
||||
dpkg |
||||
makeWrapper |
||||
autoPatchelfHook |
||||
]; |
||||
|
||||
buildInputs = [ |
||||
gtk3-x11 |
||||
stdenv.cc.cc |
||||
]; |
||||
|
||||
libPath = lib.makeLibraryPath buildInputs; |
||||
|
||||
dontBuild = true; |
||||
dontConfigure = true; |
||||
|
||||
unpackPhase = '' |
||||
dpkg-deb -x ${src} ./ |
||||
''; |
||||
|
||||
installPhase = '' |
||||
runHook preInstall |
||||
|
||||
mv usr $out |
||||
mv opt $out |
||||
install -Dm644 $out/opt/pixeluvo/pixeluvo.png -t $out/share/pixmaps/ |
||||
|
||||
substituteInPlace $out/share/applications/pixeluvo.desktop \ |
||||
--replace '/opt/pixeluvo/pixeluvo.png' pixeluvo |
||||
|
||||
makeWrapper $out/opt/pixeluvo/bin/Pixeluvo64 $out/bin/pixeluvo \ |
||||
--prefix LD_LIBRARY_PATH : ${libPath} |
||||
|
||||
runHook postInstall |
||||
''; |
||||
|
||||
meta = with lib; { |
||||
description = "A Beautifully Designed Image and Photo Editor for Windows and Linux"; |
||||
homepage = "http://www.pixeluvo.com/"; |
||||
license = licenses.unfree; |
||||
maintainers = with maintainers; [ wolfangaukang ]; |
||||
}; |
||||
} |
@ -0,0 +1,50 @@ |
||||
{ lib, stdenv, fetchurl, dpkg, autoPatchelfHook, makeWrapper, electron |
||||
, alsa-lib, gtk3, libxshmfence, mesa, nss }: |
||||
|
||||
stdenv.mkDerivation rec { |
||||
pname = "thedesk"; |
||||
version = "22.3.1"; |
||||
|
||||
src = fetchurl { |
||||
url = "https://github.com/cutls/TheDesk/releases/download/v${version}/${pname}_${version}_amd64.deb"; |
||||
sha256 = "sha256-5KB88zMgwfObgmcMTe6R+oG48qLHrMht6vM1EvI+QFY="; |
||||
}; |
||||
|
||||
nativeBuildInputs = [ |
||||
dpkg |
||||
autoPatchelfHook |
||||
makeWrapper |
||||
]; |
||||
|
||||
buildInputs = [ alsa-lib gtk3 libxshmfence mesa nss ]; |
||||
|
||||
dontBuild = true; |
||||
dontConfigure = true; |
||||
|
||||
unpackPhase = '' |
||||
dpkg-deb -x ${src} ./ |
||||
''; |
||||
|
||||
installPhase = '' |
||||
runHook preInstall |
||||
|
||||
mv usr $out |
||||
mv opt $out |
||||
|
||||
substituteInPlace $out/share/applications/thedesk.desktop \ |
||||
--replace '/opt/TheDesk' $out/bin |
||||
|
||||
makeWrapper ${electron}/bin/electron $out/bin/thedesk \ |
||||
--add-flags $out/opt/TheDesk/resources/app.asar |
||||
|
||||
runHook postInstall |
||||
''; |
||||
|
||||
meta = with lib; { |
||||
description = "Mastodon/Misskey Client for PC"; |
||||
homepage = "https://thedesk.top"; |
||||
license = licenses.gpl3Only; |
||||
maintainers = with maintainers; [ wolfangaukang ]; |
||||
platforms = [ "x86_64-linux" ]; |
||||
}; |
||||
} |
@ -0,0 +1,56 @@ |
||||
{ lib |
||||
, stdenv |
||||
, buildGoModule |
||||
, fetchFromGitHub |
||||
, makeWrapper |
||||
, kubectl |
||||
}: |
||||
|
||||
buildGoModule rec { |
||||
pname = "arkade"; |
||||
version = "0.8.9"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "alexellis"; |
||||
repo = "arkade"; |
||||
rev = version; |
||||
sha256 = "0jv6pip3ywx8bx7m25fby6kl5irnjxvlpss2wkm615gv9ari21aq"; |
||||
}; |
||||
|
||||
CGO_ENABLED = 0; |
||||
|
||||
vendorSha256 = "05zdd5c2x4k4myxmgj32md8wq08i543l8q81rabqgyd3r9nwv4lx"; |
||||
|
||||
# Exclude pkg/get: tests downloading of binaries which fail when sandbox=true |
||||
subPackages = [ |
||||
"." |
||||
"cmd" |
||||
"pkg/apps" |
||||
"pkg/archive" |
||||
"pkg/config" |
||||
"pkg/env" |
||||
"pkg/helm" |
||||
"pkg/k8s" |
||||
"pkg/types" |
||||
]; |
||||
|
||||
ldflags = [ |
||||
"-s" "-w" |
||||
"-X github.com/alexellis/arkade/cmd.GitCommit=ref/tags/${version}" |
||||
"-X github.com/alexellis/arkade/cmd.Version=${version}" |
||||
]; |
||||
|
||||
buildInputs = [ makeWrapper ]; |
||||
|
||||
postInstall = '' |
||||
wrapProgram "$out/bin/arkade" \ |
||||
--prefix PATH : ${lib.makeBinPath [ kubectl ]} |
||||
''; |
||||
|
||||
meta = with lib; { |
||||
homepage = "https://github.com/alexellis/arkade"; |
||||
description = "Open Source Kubernetes Marketplace"; |
||||
license = licenses.mit; |
||||
maintainers = with maintainers; [ welteki ]; |
||||
}; |
||||
} |
@ -0,0 +1,56 @@ |
||||
{ lib, buildGoModule, fetchFromGitHub }: |
||||
|
||||
buildGoModule rec { |
||||
pname = "driftctl"; |
||||
version = "0.15.0"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "cloudskiff"; |
||||
repo = "driftctl"; |
||||
rev = "v${version}"; |
||||
sha256 = "sha256-rWC4jqquVWJmHV/dnH+DsxlNiAY01xnq9z0/owS4Yis="; |
||||
}; |
||||
|
||||
vendorSha256 = "sha256-d8vASP8KnUeUkaHRU8kCE7FCt2QLGu5ET5BN3GM2O9c="; |
||||
|
||||
postUnpack = '' |
||||
# Without this, tests fail to locate aws/3.19.0.json |
||||
for prefix in / \ |
||||
/pkg \ |
||||
/pkg/analyser \ |
||||
/pkg/alerter \ |
||||
/pkg/remote \ |
||||
/pkg/middlewares \ |
||||
/pkg/cmd/scan/output \ |
||||
/pkg/iac/terraform/state \ |
||||
/pkg/iac/supplier ; do |
||||
mkdir -p ./source/$prefix/github.com/cloudskiff |
||||
ln -sf $PWD/source ./source/$prefix/github.com/cloudskiff/driftctl |
||||
done |
||||
|
||||
# Disable check for latest version and telemetry, which are opt-out. |
||||
# Making it out-in is quite a job, and why bother? |
||||
find -name '*.go' \ |
||||
| xargs sed -i 's,https://2lvzgmrf2e.execute-api.eu-west-3.amazonaws.com/,https://0.0.0.0/,g' |
||||
|
||||
# and remove corresponding flags from --help, so things look tidy. |
||||
find -name driftctl.go | \ |
||||
xargs sed -i -e '/("no-version-check"/ d' -e '/("disable-telemetry"/ d' |
||||
|
||||
# Presumably it can be done with ldflags, but I failed to find incantation |
||||
# that would work, we here we go old-school. |
||||
find -name version.go | xargs sed -i -e 's/"dev"/"${version}"/' |
||||
find -name build.go | xargs sed -i -e 's/"dev"/"release"/' |
||||
|
||||
# Fix the tests that checks for dev-dev. |
||||
find -name version_test.go | xargs sed -i -e 's/"dev-dev/"${version}/' |
||||
find -name driftctl_test.go | xargs sed -i -e 's/"dev-dev/"${version}/' |
||||
''; |
||||
|
||||
meta = with lib; { |
||||
description = "Tool to track infrastructure drift"; |
||||
homepage = "https://github.com/cloudskiff/driftctl"; |
||||
license = licenses.asl20; |
||||
maintainers = with maintainers; [ kaction ]; |
||||
}; |
||||
} |
@ -0,0 +1,54 @@ |
||||
{ stdenv, lib, fetchurl, unzip, makeDesktopItem, copyDesktopItems |
||||
, makeWrapper, electron }: |
||||
|
||||
stdenv.mkDerivation rec { |
||||
pname = "indigenous-desktop"; |
||||
version = "1.3.0"; |
||||
|
||||
src = fetchurl { |
||||
url = "https://github.com/marksuth/indigenous-desktop/releases/download/v${version}/indigenous-linux-x64-${version}.zip"; |
||||
sha256 = "sha256-1nqj9N5RQE0PogJSULu75CTVLHeQsHIimtFXSCP6SPA="; |
||||
}; |
||||
|
||||
nativeBuildInputs = [ |
||||
copyDesktopItems |
||||
makeWrapper |
||||
unzip |
||||
]; |
||||
|
||||
desktopItems = [ |
||||
(makeDesktopItem { |
||||
name = pname; |
||||
exec = "indigenous-desktop"; |
||||
icon = "indigenous-desktop"; |
||||
comment = meta.description; |
||||
desktopName = "Indigenous"; |
||||
genericName = "Feed Reader"; |
||||
}) |
||||
]; |
||||
|
||||
dontConfigure = true; |
||||
dontBuild = true; |
||||
|
||||
installPhase = '' |
||||
runHook preInstall |
||||
|
||||
mkdir -p $out/opt/indigenous $out/share/indigenous $out/share/pixmaps |
||||
cp -r ./ $out/opt/indigenous |
||||
mv $out/opt/indigenous/{locales,resources} $out/share/indigenous |
||||
mv $out/share/indigenous/resources/app/images/icon.png $out/share/pixmaps/indigenous-desktop.png |
||||
|
||||
makeWrapper ${electron}/bin/electron $out/bin/indigenous-desktop \ |
||||
--add-flags $out/share/indigenous/resources/app |
||||
|
||||
runHook postInstall |
||||
''; |
||||
|
||||
meta = with lib; { |
||||
description = "IndieWeb app with extensions for sharing to/reading from micropub endpoints"; |
||||
homepage = "https://indigenous.realize.be/indigenous-desktop"; |
||||
license = licenses.gpl3Only; |
||||
maintainers = with maintainers; [ wolfangaukang ]; |
||||
platforms = [ "x86_64-linux" ]; |
||||
}; |
||||
} |
@ -0,0 +1,21 @@ |
||||
{ lib, buildGoModule, fetchFromGitHub }: |
||||
|
||||
buildGoModule { |
||||
pname = "duckling-proxy"; |
||||
version = "2021-07-23-unstable"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "LukeEmmet"; |
||||
repo = "duckling-proxy"; |
||||
rev = "e2bfd73a60d7afa43f13a9d420d514131fee8fd1"; |
||||
sha256 = "134hnfa4f5sb1z1j5684wmqzascsrlagx8z36i1470yggb00j4hr"; |
||||
}; |
||||
vendorSha256 = "0wxk1a5gn9a7q2kgq11a783rl5cziipzhndgp71i365y3p1ssqyf"; |
||||
|
||||
meta = with lib; { |
||||
description = "Gemini proxy to access the Small Web"; |
||||
homepage = "https://github.com/LukeEmmet/duckling-proxy"; |
||||
license = licenses.mit; |
||||
maintainers = with maintainers; [ kaction ]; |
||||
}; |
||||
} |
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,31 @@ |
||||
{ stdenv |
||||
, fetchFromGitHub |
||||
, cmake |
||||
, lib |
||||
}: |
||||
|
||||
stdenv.mkDerivation rec { |
||||
pname = "stderred"; |
||||
version = "unstable-2021-04-28"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "sickill"; |
||||
repo = "stderred"; |
||||
rev = "b2238f7c72afb89ca9aaa2944d7f4db8141057ea"; |
||||
sha256 = "sha256-k/EA327AsRHgUYu7QqSF5yzOyO6h5XcE9Uv4l1VcIPI="; |
||||
}; |
||||
|
||||
nativeBuildInputs = [ |
||||
cmake |
||||
]; |
||||
|
||||
sourceRoot = "${src.name}/src"; |
||||
|
||||
meta = with lib; { |
||||
description = "stderr in red"; |
||||
homepage = "https://github.com/sickill/stderred"; |
||||
license = licenses.mit; |
||||
maintainers = with maintainers; [ vojta001 ]; |
||||
platforms = platforms.unix; |
||||
}; |
||||
} |
Loading…
Reference in new issue